Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The macro below leaves two sheets with a highlighted column on
each.How do I do this copy/paste without selecting data leaving both sheets without any highlighted cells? Sub WriteMap() Dim MySheet As Variant Dim MyTarget As Variant MySheet = ActiveSheet.Name MyTarget = Range("A1").Value Range("S2:S293").Select Selection.Copy Sheets("Sheet1").Select Range("C" & MyTarget).Select Selection.PasteSpecial Paste:=xlValues Sheets(MySheet).Select End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I copy big ranges of cells without drag or copy/paste? | Excel Discussion (Misc queries) | |||
Copy and paste versus copy and insert copied cells | New Users to Excel | |||
Macro to copy highlighted cells to csv file | Excel Programming | |||
Copy/Paste how to avoid the copy of formula cells w/o calc values | Excel Discussion (Misc queries) | |||
Why dosen't my paste button come up highlighted? | Excel Discussion (Misc queries) |