abutterworth
New Member
- Joined
- Jul 3, 2013
- Messages
- 1
Hi all,
I'm currently using Office 2003 to create a rolling forecast that can automatically update and populate. Because of my lack of vba knowledge I'm currently stuck on how to do a few things. I searched online how to copy multiple rows, and with it only specific columns, but could not find something that suited my templates need. Because my template references Cognos TM1, and has specific formulas, I need to copy certain columns out of my data sheet in order for this to run smoothly. I could use some help!
Little bit of background:
I have 3 tabs currently - The actual names of these tabs in my spreadsheet are in the ()'s
In Tab A, I have many different values that need to be printed, but they should only be printed if they fall between the date range.
In Tab B, I have a field starting at (A2:Pxxxxx ---- ***where xxxxx symbolizes the amount of rows with data that is found within the date ranges in Tab A) with some information/columns that are already filled in (these columns are consistent throughout- and WILL NOT change ever).
In Tab C - the range is (A2:N2), Columns A, B, F, G, H, I, J, K, L, N all will stay consistent, and just need to be copied over for the same amount of rows that Tab A copies over. They will paste into Tab B in the same cells that they are in their own template. There is no data in the template in cells C, D, E, M, O, P - all of these cells will be automatically populated by the information from Tab A when data is copied over to B.
Moving on to the data I need copied over to Tab B, FROM TAB A, if the row's date meets the criteria of falling between the date range.
So to give a brief overview. What I need is:
I would also like the macro to clear out all data on Tab B (except A1:P1) PRIOR to executing it. I plan on assigning this to a button, and my coworkers may not realize that there is prior data left on the sheet.
If you have any further questions please let me know. All help is greatly appreciated - I hope my explanation isn't too confusing.
Thanks!
As a heads up I posted this same question on stackoverflow and was voted down because I did not include my own code- the reason behind this is because I looked online for any help and did not find any information that (like I said) suited the template. If you want me to post what I have I can, but I can guarentee you that it will be a disaster and not benefit you whatsoever.
excel - Print dates between range - Stack Overflow
Thank you.
I'm currently using Office 2003 to create a rolling forecast that can automatically update and populate. Because of my lack of vba knowledge I'm currently stuck on how to do a few things. I searched online how to copy multiple rows, and with it only specific columns, but could not find something that suited my templates need. Because my template references Cognos TM1, and has specific formulas, I need to copy certain columns out of my data sheet in order for this to run smoothly. I could use some help!
Little bit of background:
I have 3 tabs currently - The actual names of these tabs in my spreadsheet are in the ()'s
- Tab A: Has the data (tab is named DBRW)
- Tab B: Where I want the data to print out (tab is named MRefo)
- Tab C: Has "template" (tab is named Template)
In Tab A, I have many different values that need to be printed, but they should only be printed if they fall between the date range.
- Date range: start yyyymm (E4), end yyyymm (E5)
- All of the data is found in the range (A11:I2026) (this will remain consistent- no data will be added)
- Column H has the yyyymm that is specific to that line, and needs to be tested against E4/E5 to make sure it falls on one of the yyyymm or in between the yyyymm's.
In Tab B, I have a field starting at (A2:Pxxxxx ---- ***where xxxxx symbolizes the amount of rows with data that is found within the date ranges in Tab A) with some information/columns that are already filled in (these columns are consistent throughout- and WILL NOT change ever).
In Tab C - the range is (A2:N2), Columns A, B, F, G, H, I, J, K, L, N all will stay consistent, and just need to be copied over for the same amount of rows that Tab A copies over. They will paste into Tab B in the same cells that they are in their own template. There is no data in the template in cells C, D, E, M, O, P - all of these cells will be automatically populated by the information from Tab A when data is copied over to B.
Moving on to the data I need copied over to Tab B, FROM TAB A, if the row's date meets the criteria of falling between the date range.
- Column F (Tab A) needs to be copied over to Column C (Tab B)
- Column G (Tab A) needs to be copied over to Column D (Tab B)
- Column E (Tab A) needs to be copied over to Column E (Tab B)
- Column C (Tab A) needs to be copied over to Column M (Tab B)
- Column A (Tab A) needs to be copied over to Column O (Tab B)
- Column I (Tab A) needs to be copied over to Column P (Tab B)
So to give a brief overview. What I need is:
- "Filter" rows in Tab A so that they meet the criteria of the date ranges
- Print these rows that meet criteria in Tab A into given columns in Tab B
- Consistent "template" data from Tab C, needs to be copied over to Tab B. (I'm not sure if this should be done before or after, in case it would overwrite data that Tab A transferred to Tab B.)
I would also like the macro to clear out all data on Tab B (except A1:P1) PRIOR to executing it. I plan on assigning this to a button, and my coworkers may not realize that there is prior data left on the sheet.
If you have any further questions please let me know. All help is greatly appreciated - I hope my explanation isn't too confusing.
Thanks!
As a heads up I posted this same question on stackoverflow and was voted down because I did not include my own code- the reason behind this is because I looked online for any help and did not find any information that (like I said) suited the template. If you want me to post what I have I can, but I can guarentee you that it will be a disaster and not benefit you whatsoever.
excel - Print dates between range - Stack Overflow
Thank you.