AnotherAlan
Technical User
Hi All,
Is it possible to use a variable within an Open statement to enable looping?
Basically, I have a number of log files from Backup Exec that I pull into Excel to retrieve job data e.t.c
Open "X:\WINTELbackups\Backup Logs\UKLDNSERV1\BEX60.txt" For Input As #1
What I would like to be able to do is create a loop around the UKLDNSERV* and/or the BEX* portion to avoid the currently manual intervention to change the log file name each time.
i.e for server in UKLDNSERV1 UKLDNSERV2 UKLDNSERV3;do
OPEN "The path to the log files\BEX*.txt"
<Process the info>
done
If this cannot be done at the server level, can it be done at the BEX file level?
Sorry if this is confusing. I worte the code to this a couple of years ago but moved into the unix world and away from VBA. I do remember having trouble getting it to work back then though. BUT, back then I didn't know about tek-tips!!!
All help appreciated.
Alan
Is it possible to use a variable within an Open statement to enable looping?
Basically, I have a number of log files from Backup Exec that I pull into Excel to retrieve job data e.t.c
Open "X:\WINTELbackups\Backup Logs\UKLDNSERV1\BEX60.txt" For Input As #1
What I would like to be able to do is create a loop around the UKLDNSERV* and/or the BEX* portion to avoid the currently manual intervention to change the log file name each time.
i.e for server in UKLDNSERV1 UKLDNSERV2 UKLDNSERV3;do
OPEN "The path to the log files\BEX*.txt"
<Process the info>
done
If this cannot be done at the server level, can it be done at the BEX file level?
Sorry if this is confusing. I worte the code to this a couple of years ago but moved into the unix world and away from VBA. I do remember having trouble getting it to work back then though. BUT, back then I didn't know about tek-tips!!!
All help appreciated.
Alan