Home |
Search |
Today's Posts |
#1
|
|||
|
|||
can this be done with a macro?
I have a user that has a worksheet in a workbook with a table of data. He
wants to create a macro button on that worksheet that takes the data from a certain range in the table and pastes it into the next available column on a separate worksheet in the same workbook... ie, paste into col. A the first time the 'submit' macro button is clicked, into col. B the next time, etc.. What is the best way to approach doing this and any help with macro syntax? thx |
#2
|
|||
|
|||
can this be done with a macro?
this can be done from anywhere in the workbook where sr is the named source
range Sub copyrangetocol() With Sheets("Sheet9") 'destination sheet x = .Cells(1, Columns.Count).End(xlToLeft).Column + 1 [sr].Copy .Columns(x) 'sr is a named range End With End Sub -- Don Guillett SalesAid Software "deo89" wrote in message ... I have a user that has a worksheet in a workbook with a table of data. He wants to create a macro button on that worksheet that takes the data from a certain range in the table and pastes it into the next available column on a separate worksheet in the same workbook... ie, paste into col. A the first time the 'submit' macro button is clicked, into col. B the next time, etc.. What is the best way to approach doing this and any help with macro syntax? thx |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Closing File Error | Excel Discussion (Misc queries) | |||
Make Alignment options under format cells available as shortcut | Excel Discussion (Misc queries) | |||
Help with macro looping and color query function | Excel Discussion (Misc queries) | |||
Playing a macro from another workbook | Excel Discussion (Misc queries) | |||
Date macro | Excel Discussion (Misc queries) |