Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all. How can I have excel clear contents in the range E30:AE30, then
copy E15:AE15 and paste special values in E30:AE30 in two specific sheets in a workbook (sheet1, sheet2)? The clearing, copying and pasting I can get through the recorder, but how can I get the code to loop through the 2 sheets? Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Sub Macro1() Range("E30:AE30").Select Selection.ClearContents Range("E15:AE15").Select Selection.Copy Range("E30:AE30").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Sheets("Sheet2").Select Range("E30:AE30").Select Application.CutCopyMode = False Selection.ClearContents Range("E15:AE15").Select Selection.Copy Range("E30:AE30").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False End Sub "Steph" wrote: Hi all. How can I have excel clear contents in the range E30:AE30, then copy E15:AE15 and paste special values in E30:AE30 in two specific sheets in a workbook (sheet1, sheet2)? The clearing, copying and pasting I can get through the recorder, but how can I get the code to loop through the 2 sheets? Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF formula-simple question; simple operator | Excel Discussion (Misc queries) | |||
Simple problem, simple formula, no FUNCTION ! | Excel Worksheet Functions | |||
Simple Simple Excel usage question | Excel Discussion (Misc queries) | |||
Make it more simple or intuitive to do simple things | Charts and Charting in Excel | |||
simple question, hopefully a simple answer! | Excel Programming |