LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with some VBA code to copy and paste on new worksheets


I am trying to write a macro to copy data from one sheet to individual
worksheets

The data is stock prices

Each stock has 2 columns worth: Date and Price

I wish to:
Copy the template tab to create a duplicate worksheet
copy column A and column B data
Paste into column A and B of the new duplicate worksheet
Name the worksheet with the data in Row1

and then do the same for the next set of data - in Column D and E

and then again for the next data in G and H

...etc potentially around 600 stocks

sample data attached



many thanks
Rob


+-------------------------------------------------------------------+
|Filename: sample data.xls |
|Download: http://www.thecodecage.com/forumz/attachment.php?attachmentid=110|
+-------------------------------------------------------------------+

--
gwatcheater
------------------------------------------------------------------------
gwatcheater's Profile: http://www.thecodecage.com/forumz/member.php?userid=235
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=86422

 
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 transpose paste across several worksheets JohnP Excel Programming 2 June 6th 07 02:37 PM
copy multiple worksheets of a workbook, and paste onto a Word document ( either create new doc file or paste onto an existing file.) I need this done by VBA, Excel Macro Steven Excel Programming 1 October 17th 05 08:56 AM
Copy and Paste between 2 worksheets with VBA Dave Y Excel Worksheet Functions 2 June 15th 05 03:47 PM
Copy Paste Special Value using Code over Several Worksheets John[_81_] Excel Programming 1 April 19th 04 12:09 PM
Copy/Paste to all Worksheets sharon Excel Programming 2 February 11th 04 04:42 PM


All times are GMT +1. The time now is 09:06 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"