Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub KillIt()
' ' After you have copied a range(i.e., pivot table), this macro ' is used to paste it in inert form, for distribution ' to non-technical users. If Application.CutCopyMode = True Then With Selection .PasteSpecial Paste:=xlPasteValues .PasteSpecial Paste:=xlPasteFormats .PasteSpecial Paste:=xlPasteColumnWidths End With Else: MsgBox ("You have to copy, before you can paste") End If End Sub When I run this, even after copying a range, it still defaults to the ELSE section. The purpose of the macro, is to PASTE, and I want to make sure the user has copied something, before they run the macro. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to update a column in a work based on another work sheet | New Users to Excel | |||
how can i automatically generate work order numbers from work orde | Excel Discussion (Misc queries) | |||
flash object dont work in my excel work sheet | Excel Discussion (Misc queries) | |||
Counting dates in multiple work sheets and work books | Excel Discussion (Misc queries) | |||
Is there away to keep "auto save" from jumping to the first work sheet in the work book? | New Users to Excel |