Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear Guru's,
What would be the better / correct approach???!!! See my code below. learning a lot through trail and error, I seem to be stuck again in the latter: I have a macro in which I filter data, after which I want to CopyPaste the data.value to the same sheet, overwriting what was there. I have: Range("A1").Select Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy Worksheets(sFileNameSource01 & lRecDate).AutoFilterMode = False Cells.Clear Range("A1").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False This gives me a 1004-error: PasteSpecial Method of Range class failed. What would be the better / correct approach???!!! TFH, AdP |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
filter results to userform-sheet | Excel Programming | |||
Save As - Can I use VBA? to stop XL Sheet overwrite | Excel Discussion (Misc queries) | |||
Why won't advanced filter return filter results? | Excel Worksheet Functions | |||
How do I link filter results into another sheet? | Excel Worksheet Functions | |||
Overwrite Master sheet when using merge macro | Excel Programming |