Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Looping Code
I have that attached code that I want to run based and the number of cell m2.
So if cell m2 = 5 I would like the copy and insert to happen 4 times. This is for a custom form made by the end user. Any help would be great, I have never tried to loop the same code over again. Range("C15:K15").Select Selection.Copy Range("C15").Select Selection.Insert Shift:=xlDown (need this to happen # of times inidicated in cell m2) Tim Peter |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
looping code | Excel Programming | |||
Looping rather than code for each row | Excel Programming | |||
Code looping through files | Excel Programming | |||
Help with Looping Code | Excel Programming | |||
Code looping when it should not | Excel Programming |