Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello Programmers, This code takes data from selected cells on sheet 1, then tranfers them to a column starting with C on sheet2. How do I add to this code, so that the next time I hit the macro button, the data shifts over to column D, then E, etc... 'subroutine to transfer data to another sheet Sub TransferData() Application.ScreenUpdating = False Sheets("WorksheetCopy").Range("B1:B2").Copy Sheets("Worksheet Info").Range("D3").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Sheets("WorksheetCopy").Range("D31:D34").Copy Sheets("Worksheet Info").Range("D6").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Sheets("WorksheetCopy").Range("D36:D39").Copy Sheets("Worksheet Info").Range("D10").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Range("D23").Select Application.ScreenUpdating = True End Sub Thanks, EMoe -- EMoe ------------------------------------------------------------------------ EMoe's Profile: http://www.excelforum.com/member.php...o&userid=23183 View this thread: http://www.excelforum.com/showthread...hreadid=374920 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Shift + toolbar button action in Excel 2007 | Excel Discussion (Misc queries) | |||
Combination of shift with toolbar button. | Excel Discussion (Misc queries) | |||
When I hit shift + left click highlighted object stuck. | Excel Discussion (Misc queries) | |||
shift right 5 columns | Excel Worksheet Functions | |||
capture shift-double-click | Excel Programming |