Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
art art is offline
external usenet poster
 
Posts: 22
Default Streamline copying and pasting code

H
I would like to simplify this code to copy stuff from one worksheet to another. How can this be done

Worksheets(Wks).Select
Range("A5").Select
Selection.Copy
Worksheets("Printout").Select
Range("A6").Select
ActiveSheet.Paste

Also, is there a way to copy more than one item at a time, like the clipboard does

Thanks, and have a great day

Ar

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Streamline copying and pasting code

Worksheets(Wks).Range("A5").Copy Destination:= _
Worksheets("Printout").Range("A6")

or if you just want values

Worksheets("Printout").Range("A6").Value = _
Worksheets(Wks).Range("A5").Value


--
Regards,
Tom Ogilvy



"Art" wrote in message
...
Hi
I would like to simplify this code to copy stuff from one worksheet to

another. How can this be done?

Worksheets(Wks).Select
Range("A5").Select
Selection.Copy
Worksheets("Printout").Select
Range("A6").Select
ActiveSheet.Paste

Also, is there a way to copy more than one item at a time, like the

clipboard does?

Thanks, and have a great day.

Art



  #3   Report Post  
Posted to microsoft.public.excel.programming
art art is offline
external usenet poster
 
Posts: 22
Default Streamline copying and pasting code

Thanks Tom
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
Copying and Pasting Kokomo Excel Discussion (Misc queries) 1 November 20th 07 02:14 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Streamline macro code. Pete Excel Programming 1 April 21st 04 02:22 PM
Streamline PivotTable creation code Tod Excel Programming 1 February 9th 04 08:39 PM
Copying & Pasting Michael[_10_] Excel Programming 1 August 28th 03 11:00 AM


All times are GMT +1. The time now is 02:15 AM.

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

About Us

"It's about Microsoft Excel"