![]() |
#7
|
|||
|
|||
![]()
Thanks for replying, doesn't the selections in red cover that.
Also I have added an option, to the right click event for the table, to run the macro. It does all do what I need but keeps coming back with - Code execution has been interrupted. after pressing continue it completes correctly, in VBA it errors after the first paste line, hitting F5 to continue works ok too. I have removed all worksheet events to see if they were causing it, but still fails. - the name of the sheet the Worksheet_Change event would be used on Sheets("Customer") - the column or range of cells the Worksheet_Change event would be restricted to With Sheets("Customer").Range("H4:H5000") - the location (ie: starting column) where Sheets("Customer").Range("I" & t & ":L" & t) would be copied to Sheets("Customer").Range("I" & t & ":L" & t).Copy Range("I" & ttt).PasteSpecial Paste:=xlPasteValues - the location (ie: starting column) where Sheets("Customer").Range("Y" & t & ":AH" & t) would be copied to Sheets("Customer").Range("Y" & ttt).Select Range("Y" & ttt).PasteSpecial Paste:=xlPasteValues |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
kevinbradley57 | Excel Programming | 11 | 07-25-2018 01:51 PM |
Looking to copy select cells in table using dropdown list to paste to new table in another worksheet | CaptainRetired | Excel Programming | 18 | 01-04-2018 07:22 PM |
![]() |
A_Lau | Drawing and Graphics | 3 | 12-19-2014 06:57 AM |
Can you copy & paste cells across worksheets and preserve reference to worksheet? | New Daddy | Excel | 2 | 11-27-2013 07:19 AM |
![]() |
tinfanide | Word | 6 | 03-06-2013 12:21 AM |