Originally Posted by
Richard Buttrey
Hi,
untested but the general approach I'd use would be:
1. Create a loop counter upper value variable (say lCounter) and set the value to be
lCounter = Int(sws.Range("A2:A" & sws.Range("A" & Rows.Count).End(xlUp).Row).Rows.Count)/50000 + 1
2. Create a loop counter variable, say x
3. Within the loop i.e.
For x = 1 to lCounter
change the sr variable. e.g.
Set sr = sws.Range("A" & x * 50000 -49999 & ":A" & x * 50000)
Apologies! I am still a beginner in Excel programming but i tried to understand certain things that you tried to explain here. However i still believe that some changes are needed to be done to the below code, please guide me on the same:
Bookmarks