Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
add the following line Application.CutCopyMode = False
On Oct 2, 11:55*am, Walter wrote: My code sends data from one tab over to a number of tabs. *After doing so I want it to return to the first tab and be ready for the user to press another button if needed. *But right now when I return the row that was copied still has the squiggly line around it. *I do not want the user to have to press the ESC key so how do I code that in VBA? Sub PushData_SupplierName() ' ' PushData Macro ' Push all data from Supp_Data tab to all tabs where this supplier appears * * Sheets("Supp_Data").Select * * Range("A_named_range").Select * * Selection.Copy * * 'Paste data from supplier on Supp_Data tab to tabs shown below * * * * Sheets("Cir_Conn").Select * * * * Range("C2").Select * * * * ActiveSheet.Paste * * * * Sheets("Backshells").Select * * * * Range("C2").Select * * * * ActiveSheet.Paste * * 'Return cursor to Supp_Data tab * * Sheets("Supp_Data").Select End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't Copy and Paste or Paste Special between Excel Workbooks | Excel Discussion (Misc queries) | |||
Automating copy/paste/paste special when row references change | Excel Programming | |||
help w/ generic copy & paste/paste special routine | Excel Programming | |||
Excel cut/Paste Problem: Year changes after data is copy and paste | Excel Discussion (Misc queries) | |||
Copy and Paste macro needs to paste to a changing cell reference | Excel Programming |