Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi witek and Norman,
Thanks for your help. A combination of your ideas did in fact work. Declaring my input variable as a variant was what was required to handle someone closing the form by clicking a Cancel button or pressing the Escape key and for doing so with no date actually selected.. newbie AND < expert "witek" wrote: Dave Scott wrote: Is there a way to pass a parameter to a Userform (similar to openargs in an access form)? I have a calendar (Userform) that returns a date. I want the calendar to be initialized with the parameter date or with today's date if the parameter value is empty. Dave userform1 code ------------- public myInput as variant public myOutput as variant main module ------------- load userform1 userform1.myInput = "something" userform1.show a = userorm1.myOutput unload userform at the end of userform, when user clicks ok, you should hide userform (don't unload it). you can replace variables by properties defined by you. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to choose if I use a parameter or not in a parameter query | Excel Discussion (Misc queries) | |||
Format when sending a range as parameter to a custom function | Excel Programming | |||
Looping procedure calls userform; how to exit loop (via userform button)? | Excel Programming | |||
Sending Userform data to different sheets | Excel Programming | |||
Activating userform and filling it with data form row where userform is activate | Excel Programming |