R
Rollin_Again
I have written a macro in Excel that pulls various information from
different reports on our network. The same macro is used to populate
data for both week-day reports as well as week-end reports. One of the
problems I am having is that the data for some days is stored in
different places than the other days and I need the macro to run
slightly different depending on what day it is. This is currently
accomplish with hard-coded "IF" statements that take into account the
actual calender date using *day(date)*. Based on what *day(date)*
returns, the code will execute one way or another.
Is there some function I can used to find out what day of the week
(Monday, Tues, etc) it currently is without having to take each of the
days of the month and match them to their respective days of the week
on a calender?
Rollin
different reports on our network. The same macro is used to populate
data for both week-day reports as well as week-end reports. One of the
problems I am having is that the data for some days is stored in
different places than the other days and I need the macro to run
slightly different depending on what day it is. This is currently
accomplish with hard-coded "IF" statements that take into account the
actual calender date using *day(date)*. Based on what *day(date)*
returns, the code will execute one way or another.
Is there some function I can used to find out what day of the week
(Monday, Tues, etc) it currently is without having to take each of the
days of the month and match them to their respective days of the week
on a calender?
Rollin