Home |
Search |
Today's Posts |
#3
![]() |
|||
|
|||
![]()
Hi Don ,
When I use for... each ws in worksheet, there is an error "Run time error 1004.No cells were found." at this code. Selection.SpecialCells(xlCellTypeBlanks).Select And it doesn't move to the next worksheet. Is there a way to make the macro run only on selected worksheets only (e.g WS1 to WS10, WS13 to WS 15 etc ....)?. Thank you. "Don Guillett" wrote: for each ws in worksheets your code next ws BTW. Your code could be more efficient by getting rid of selections. Example ======== Columns("s").Value = Columns("s").Value Columns("S:S").Select Selection.Copy Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=False Application.CutCopyMode = False ================== |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How To Refresh Chart Data Without Calculating The Worksheet | Charts and Charting in Excel | |||
graphs from multiple worksheet : query | Charts and Charting in Excel | |||
How do link to a remote worksheet using the path value in a field? | Links and Linking in Excel | |||
Worksheet name and Backward compatibility | Excel Discussion (Misc queries) | |||
Macro for Show/Hide Column | Excel Discussion (Misc queries) |