ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding list box (https://www.excelbanter.com/excel-programming/437712-adding-list-box.html)

Jodie

Adding list box
 
Is is possible to write a macro to create a list box that uses information
from a named range? The user would only be able to select one item from the
range.
--
Thank you, Jodie

JLGWhiz[_2_]

Adding list box
 
This will give you an idea:

http://www.ehow.com/how_2056378_crea...ual-basic.html


"Jodie" wrote in message
...
Is is possible to write a macro to create a list box that uses information
from a named range? The user would only be able to select one item from
the
range.
--
Thank you, Jodie




Neptune Dinosaur

Adding list box
 
If you are doing from a worksheet (as distinct from a user form) you can use
Excel's built-in Validation function (under Data Validation on the Data
menu). You use "List" in the "Allow" box and you name the Range in the
"Source" box, preceded by the "=" sign.


--
Time is just the thing that keeps everything from happening all at once


"Jodie" wrote:

Is is possible to write a macro to create a list box that uses information
from a named range? The user would only be able to select one item from the
range.
--
Thank you, Jodie


Jodie

Adding list box
 
Thank you Neptune. I was actually wanting to write this in code. I do have
my answer now though. Again, thanks for your help.
--
Thank you, Jodie


"Neptune Dinosaur" wrote:

If you are doing from a worksheet (as distinct from a user form) you can use
Excel's built-in Validation function (under Data Validation on the Data
menu). You use "List" in the "Allow" box and you name the Range in the
"Source" box, preceded by the "=" sign.


--
Time is just the thing that keeps everything from happening all at once


"Jodie" wrote:

Is is possible to write a macro to create a list box that uses information
from a named range? The user would only be able to select one item from the
range.
--
Thank you, Jodie


Jodie

Adding list box
 
Thanks, this looks useful.

--
Thank you, Jodie


"JLGWhiz" wrote:

This will give you an idea:

http://www.ehow.com/how_2056378_crea...ual-basic.html


"Jodie" wrote in message
...
Is is possible to write a macro to create a list box that uses information
from a named range? The user would only be able to select one item from
the
range.
--
Thank you, Jodie



.



All times are GMT +1. The time now is 05:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com