Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I understand the reason for declaring variables, but get fed up with declaring them for each Sub in each module. Can I declare my vaiables in 'This Workbook' using public. Can I also 'publicly' declare what the vaiable refers to so that if I do the following Public TodaysDate As String that I could use TodaysDate = Worksheets("Dates").range("UpdateToday") TodaysDate = Format(TodaysDate, "dd-mmm-yy") in any module/sub. Unfortunately I have to work with dates that are strings and others that are dates in various formats. Thanks for any help / advice Richard |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
public variables | Excel Discussion (Misc queries) | |||
Public variables | Excel Discussion (Misc queries) | |||
Public Variables | Excel Programming | |||
Public Variables | Excel Programming | |||
Public Variables | Excel Programming |