Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Sat, 30 Sep 2006, Chris wrote:
The following code will need to be performed on each tab except the Data tab: Range("C5:EK5").Select Application.CutCopyMode = False Selection.Copy Range("C6").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Range("C11:EK11").Select Application.CutCopyMode = False Selection.Copy Range("C12").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Range("C27:EK27").Select Application.CutCopyMode = False Selection.Copy Range("C28").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False When I see glurpy code like this I know it was recorded. I'd simplify it to: Range("C5:EK5").Copy Range("C6").PasteSpecial Paste:=xlPasteValues Range("C11:EK11").Copy Range("C12").PasteSpecial Paste:=xlPasteValues Range("C27:EK27").Copy Range("C28").PasteSpecial Paste:=xlPasteValues Application.CutCopyMode = False Much easier to read. Don <www.donwiss.com (e-mail link at home page bottom). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
tabs are missing even though 'tools-options-view-sheet tabs' ok? | Excel Worksheet Functions | |||
Select Various tabs using VBA | Excel Programming | |||
Excel - option to select the same header for mutliple tabs | Setting up and Configuration of Excel | |||
Need help with using VBA to select tabs in Excel | Excel Programming | |||
Select sheet tabs in workbook & save to separate workbook files | Excel Worksheet Functions |