Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I'm trying to loop this: copy each cell in column A that is selected, paste to Sheet2's A1, print. Loop until all selected cells are copied to Sheet2. How do u improve this code so that even if other users mistakenly highlight the entire row, the rng = selection.cells would only be the data within column A and not the entire row? Set rng = Selection.Cells For Each cell In rng cell.Copy Sheets("Sheet2").Select Range("A1").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True Next cell Thanks! Aria :) *** Sent via Developersdex http://www.developersdex.com *** |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel ignores LocaleID? | Excel Discussion (Misc queries) | |||
formula ignores last infor - please help | Excel Worksheet Functions | |||
Min Value using array ignores Zero | Excel Discussion (Misc queries) | |||
ignores hidden columns? | Excel Programming | |||
Excel ignores VBA commands | Excel Programming |