ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to create pick list in VBA (https://www.excelbanter.com/excel-programming/358972-how-create-pick-list-vba.html)

John[_119_]

How to create pick list in VBA
 
I want to create a pick list that can be opened by right clicking on
any cell in a worksheet.

Data-Validation will not work because the pick list range is in a
different worksheet.

How can I do this?

John W.


Tom Ogilvy

How to create pick list in VBA
 
insert =Name=Define

Name: PickList
Refersto: =Sheet2!$A$1:$A$20

then in Data =Validation,
Select list

in the source textbox use

=PickList

Include the "=" sign.

--
Regards,
Tom Ogilvy

"John" wrote in message
oups.com...
I want to create a pick list that can be opened by right clicking on
any cell in a worksheet.

Data-Validation will not work because the pick list range is in a
different worksheet.

How can I do this?

John W.





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

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