Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Advise, please, how to get the following macros working:
Advise, please, how to get the following macros working:
Sub Макрос1() For a = 1 To 1000 Step 15 Rows("a:a").Select Application.CutCopyMode = False Selection.Copy Rows("a+1:a+14").Select ActiveSheet.Paste Next End Sub Mission: to select every 15-th row, to copy and paste it to the following 15 rows. Trouble: it doesn't accept variables as numbers of rows. What should be syntax: Rows("a:a").Select ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
2007/macros not working | Excel Worksheet Functions | |||
Macros not working when file run on a Mac | Excel Discussion (Misc queries) | |||
Macros written in UK not working in US | Excel Discussion (Misc queries) | |||
Working with Macros - Help needed!!! | Excel Discussion (Misc queries) | |||
Shift key to disable macros not working | Excel Discussion (Misc queries) |