B
battists
Hi there. I'm involved in the maintenance of a human resource system.
was able to obtain from someone else an Excel spreadsheet that use
Macros to parse through some text files and return a chart of how man
users were logged into the system at any given time. (The macro
actually come up with a lot of other information that I don't need.)
The way it works today, you enter a date, and select a server from
drop-down list. Then you click a button that runs the macros an
generates an Excel spreadsheet for that day. This is very cumbersom
for me to use, since I have to run the program once for each serve
that I maintain, each day. If I fall a few days behind, that adds u
rapidly.
I'm looking for a way to re-write the macros so that instead, I coul
enter a start date and end date, and also a list of servers instead o
just one. Then, when I click the button, the program would loop throug
server #1 for each date in the range, creating one spreadsheet per day
Then, when it had finished going through the range of dates, it woul
go to the next server in the list, and repeat until complete.
Unfortunately, I only know enough VBA to understand what the macros ar
doing, and I know that the approach is everything in rewriting this.
Do you have any recommendations for how to approach this? at thi
point, I'm really most interested in an overall framework like "Use a
array for X, and then loop through something or other".
I'd be more than happy to post the code that's in the macros today, bu
I thought I'd start with the general topic first. Incidentally,
believe these macros were originally written back in Excel 97, but I'
now on Office 2003.
Thanks,
Stev
was able to obtain from someone else an Excel spreadsheet that use
Macros to parse through some text files and return a chart of how man
users were logged into the system at any given time. (The macro
actually come up with a lot of other information that I don't need.)
The way it works today, you enter a date, and select a server from
drop-down list. Then you click a button that runs the macros an
generates an Excel spreadsheet for that day. This is very cumbersom
for me to use, since I have to run the program once for each serve
that I maintain, each day. If I fall a few days behind, that adds u
rapidly.
I'm looking for a way to re-write the macros so that instead, I coul
enter a start date and end date, and also a list of servers instead o
just one. Then, when I click the button, the program would loop throug
server #1 for each date in the range, creating one spreadsheet per day
Then, when it had finished going through the range of dates, it woul
go to the next server in the list, and repeat until complete.
Unfortunately, I only know enough VBA to understand what the macros ar
doing, and I know that the approach is everything in rewriting this.
Do you have any recommendations for how to approach this? at thi
point, I'm really most interested in an overall framework like "Use a
array for X, and then loop through something or other".
I'd be more than happy to post the code that's in the macros today, bu
I thought I'd start with the general topic first. Incidentally,
believe these macros were originally written back in Excel 97, but I'
now on Office 2003.
Thanks,
Stev