Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Macro

Status
Not open for further replies.

bigb

Mechanical
Joined
Sep 17, 2002
Messages
12
Location
US
Hi
I need to write a macro to copy a range of cells in a range say "A1:J2000" in a worksheet and paste it to a new file in a particular folder in my desktop.
Could you tell me what command I need to use and How I do it?
Thanks!
BigB
 
Assuming EXCEL:

open the file

Start the "macro recorder"

Allways the same cells?:
Leave the "button" "relative reference" off

Relative to current positin?
set the "button" "relative reference" on

Do what you wish the macro to do and press "stop" when finished.

Open the VBA editor and edit anything you want (e.g. range or filename)

Best Regards

Morten
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top