H
Henry Stockbridge
Hello,
I have created a Userform that will automate the
building of 55 Excel workbooks. Instead of
hardcoding the variables in a VBA module,
I would like to store the values in an underlying
worksheet, (A1:C55) and loop through the values.
How would I do this?
The spreadsheet data would look like this...
A B C
1 North Area_01 IC_Regn_01
2 North Area_01 PI_Regn_01
3 South Area_02 IC_Regn_04
.... and would be called using something like
Dim x as Territory
Dim y as Area
Dim z as Region
Do Until ???
' Do something with x
' Do something with y
' Do something with z
Loop
Any help you can lend would be appreciated.
Henry
I have created a Userform that will automate the
building of 55 Excel workbooks. Instead of
hardcoding the variables in a VBA module,
I would like to store the values in an underlying
worksheet, (A1:C55) and loop through the values.
How would I do this?
The spreadsheet data would look like this...
A B C
1 North Area_01 IC_Regn_01
2 North Area_01 PI_Regn_01
3 South Area_02 IC_Regn_04
.... and would be called using something like
Dim x as Territory
Dim y as Area
Dim z as Region
Do Until ???
' Do something with x
' Do something with y
' Do something with z
Loop
Any help you can lend would be appreciated.
Henry