LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Member
 
Posts: 40
Default Macro to pull/add data and populate new sheet

Hello,

I'm back (again). This may be challenging. I have a worksheet with a table (dates on one axis, products on another). On the last worksheet I have a command button. What I want the button to do is populate a new Excel sheet (in a new window) with all of the products – but with 6 months’ worth of data.

So, currently, the table looks like this (for example):

January 1 January 2 January 3 January 4
Product 1

Product 2

Product 3

Product 4

I want the command button to populate a new Excel with a list of the products (Product, 1, Product 2, etc.) but with the next columb of cells having 6 months’ worth of data – which means it will have to add up the columns with the dates (the dates are by day, so it’ll have to add up quite a few columns).

Is this even possible? I have the simple macro below, but it just populates a new excel without any of the data in it.

Sub Newbook12()
MyBook = ActiveWorkbook.Name
Workbooks.Add
ThatBook = ActiveWorkbook.Name
Workbooks(MyBook).Activate
End Sub
 
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
Automatically pull data from one file to populate a template jmootrey Excel Programming 1 January 15th 10 08:02 PM
Pull Data from one sheet to another Dax Arroway Excel Worksheet Functions 1 November 20th 08 02:44 AM
Macro to pull data with criterea for placement on a new sheet Trina Excel Discussion (Misc queries) 7 June 13th 08 11:00 PM
How do I use a formula on wk sheet 2 to pull data from wk sheet 1 WFG3000 Excel Discussion (Misc queries) 1 December 13th 07 06:58 AM
pull data from sheet two, then fill in the data to sheet one (part Jim Excel Worksheet Functions 3 December 11th 04 04:51 AM


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