R
Richard
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
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