Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Q: how can I write this macro?
Hello,
I am trying to copy-paste a part of an excel file based on the selected cell and create another excel file and save it. Here is the scenario: 1. I clicked E18 (this is an example, it can be D18 or others) and run the macro 2. Macro should select E1-E18 (if D18, then D1-D18) and A1-B18 (so first two columns and selected column up to the row the cell selected) 3. copy selected area 4. Create a file test.xls 5. paste it into first cell (I assume this will combine all three columns together, so the data will be in A.B and C columns, not in A,B and E (or D)) 6. save file How can I do this? Thanks, Jim. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help with macro looping and color query function | Excel Discussion (Misc queries) | |||
How to write a macro to get the system time in excel 97 | Excel Discussion (Misc queries) | |||
how to write macro after autofilter is applied | Excel Worksheet Functions | |||
Date macro | Excel Discussion (Misc queries) | |||
How do I write a macro for... | Excel Discussion (Misc queries) |