Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Copy and Paste Macro - Simplifying

Thank you in advance for any help.

I wrote the following code:

Worksheets(1).Select
ActiveCell.Offset(0, -4).Copy
Worksheets(3).Select
ActiveCell.Offset(1, -1).PasteSpecial

Is there any way I could simplify this down to two lines?
I am using Excel 2000. Thanks.

Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Copy and Paste Macro - Simplifying

For example activecell cell is column E and row is row 1, and you want to
copy the content of A1 Sheet1, and paste it to Sheet3 A1:
Sheets(1).Cells(1, 1).Copy Destination:=Sheets(3).Cells(1, 1)
Actually just one line.

Swisse
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy and Paste Macro Schwimms Excel Discussion (Misc queries) 1 February 4th 09 05:10 PM
Using Macro to Copy/Paste LucyN Excel Discussion (Misc queries) 5 October 22nd 08 07:18 PM
Should I use a macro to copy and paste value? Rebecca Excel Worksheet Functions 0 April 6th 06 10:03 PM
how to count/sum by function/macro to get the number of record to do copy/paste in macro tango Excel Programming 1 October 15th 04 01:16 PM
Macro to Copy/Paste then Paste to Next Line tomkarakowski Excel Programming 1 May 28th 04 01:19 AM


All times are GMT +1. The time now is 07:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"