Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help with VBA Input Validation
Hi all,
I'm trying to get program a cell's input validation through vba. Specifically, I want .InputMessage to equal a variable, so I need something like this: dim FOO as string foo = "Yo" With Selection.Validation .... ..InputMessage = FOO .... .... End with This code does not work. Any ideas? Thanks in advance... Jim |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help with VBA Input Validation
The code you posted works great as is, did you try it while a cell with an
existing validation was selected ? HTH. Best wishes Harald "Jim" skrev i melding oups.com... Hi all, I'm trying to get program a cell's input validation through vba. Specifically, I want .InputMessage to equal a variable, so I need something like this: dim FOO as string foo = "Yo" With Selection.Validation ... .InputMessage = FOO ... ... End with This code does not work. Any ideas? Thanks in advance... Jim |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
What is input validation? | Excel Discussion (Misc queries) | |||
Validation Input Text | Excel Discussion (Misc queries) | |||
input masks and validation | Excel Discussion (Misc queries) | |||
Comments using Validation input | Excel Discussion (Misc queries) | |||
validation of input in textbox | Excel Programming |