#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default variables

i have a spreadsheet that has a button. when button is clicked a user form
pops up. in this user form the user is to insert a date into a text box. when
pressing a button on the user form, the date is to be checked. if it really
is a date then something will happen but if it is not the user shall be
notified by a message box. my problem is that i do not know how to declare
the variables so that the information retreĆ*ved from the text box is
avaliable to the sub that checks if date. i have tried to declare the
varaibles globally but i still dont manage. help!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default variables

Why use variables.

if isdate(userform1.Textbox1.Text) then


else


end if

--
Regards,
Tom Ogilvy


"april27" wrote:

i have a spreadsheet that has a button. when button is clicked a user form
pops up. in this user form the user is to insert a date into a text box. when
pressing a button on the user form, the date is to be checked. if it really
is a date then something will happen but if it is not the user shall be
notified by a message box. my problem is that i do not know how to declare
the variables so that the information retreĆ*ved from the text box is
avaliable to the sub that checks if date. i have tried to declare the
varaibles globally but i still dont manage. help!!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not at all clear on use of variables and/or object variables JMay-Rke Excel Discussion (Misc queries) 11 July 4th 08 06:36 PM
Three Variables George Excel Worksheet Functions 1 July 8th 06 07:47 PM
Variables Mike NG Excel Programming 7 June 4th 05 03:19 PM
Variables richie Excel Programming 1 October 16th 03 06:44 PM
variables jim c. Excel Programming 1 October 16th 03 01:31 PM


All times are GMT +1. The time now is 08:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"