Hi,
I need to access a text file using excel macro and match the line "Variable name : Fcst_Wk" and return the 4th line below it and assign it to a variable. i.e i need the line "Variable value : Wk2" and assign it to a variable. The content of the file is as below.
Variable name : CurrScenario
Server name : chnveltss04
Application name : Plan_UAT
Database name :
Variable value : LE_Wk1
Variable name : Fcst_Mth
Server name : chnveltss04
Application name : Plan_UAT
Database name :
Variable value : Jul
Variable name : Fcst_Wk
Server name : chnveltss04
Application name : Plan_UAT
Database name :
Variable value : Wk2
Variable name : NextScenario
Server name : chnveltss04
Application name : Plan_UAT
Database name :
Variable value : LE_Wk2
Appreciate your help.
Regards,
Ragav.
I need to access a text file using excel macro and match the line "Variable name : Fcst_Wk" and return the 4th line below it and assign it to a variable. i.e i need the line "Variable value : Wk2" and assign it to a variable. The content of the file is as below.
Variable name : CurrScenario
Server name : chnveltss04
Application name : Plan_UAT
Database name :
Variable value : LE_Wk1
Variable name : Fcst_Mth
Server name : chnveltss04
Application name : Plan_UAT
Database name :
Variable value : Jul
Variable name : Fcst_Wk
Server name : chnveltss04
Application name : Plan_UAT
Database name :
Variable value : Wk2
Variable name : NextScenario
Server name : chnveltss04
Application name : Plan_UAT
Database name :
Variable value : LE_Wk2
Appreciate your help.
Regards,
Ragav.