Tom,
Thanks for the speedy reply! I tried playing with the DataFilter options
and I get drop down boxes with alot of different values in them
corresponding to all of the data in the column. This may be because of the
way the sheet is formatted. It is like this:
01/06/06 01/13/06
YTD WKLY YTD WKLY
Actual Reconstruction 9990 1512 12520 1718
Actual Residential 1515 123 1695 687
Actual Commercial 1803 685 2106 543
....
The dates are in 2 merged cells that span the columns holding YTD and WKLY.
Hopefully this message will post looking something like the spreadsheet.
I was also playing around with having the user enter the start column and
end column of the data to be printed and using those to calculate the range.
I used this formula: =$E$2&"5:"&$G$2&"40" where E2 is where they enter the
start column and G2 is the end column. This gives me B5:I40 which I was
hoping to use in a macro to copy/paste the range. Am I on the right track
or just spinning my wheels?
Thanks,
Mike
"Tom Ogilvy" wrote in message
...
Since this is set up like a database table, it might be easier to select
the
data and do Date=filter=Autofilter in the menus. This will place
dropdowns in the top cell of the selection in each column. You can select
the dropdown for the date column and select custom. then specify the
range
of dates. Then print the sheet.
To remove the filter dropdowns to Data=Filter=Autofilter again. (or to
leave the dropdowns and show all the data do Data=Filter=Show All
If you actually want to copy the data, you can look at
Data=Filter=Advanced Filter and select the copy to option. You would
need
to set up a criteria range where the users put the criteria.
--
Regards,
Tom Ogilvy
"Mike Wasilewski" wrote:
I have a spreadsheet with weekly sales in which the first column has the
list of categories such as 'Residential', 'Commercial', Reconstruction',
etc.
column B and the columns beyond have a date for the heading such as
'1/06/06', '1/13/06', ... corresponding to each Friday for the year.
I am looking for a way to allow the user to easily print this for any
particular month without having to manually select the columns for that
month and pasting them into an area with a heading or onto another
worksheet.
I would like to create a macro that would take input as either the month
to
print or 'From Col' and 'To Col' that would copy and paste the data where
it
is needed so the user can print the report.
I am not familiar with VB and do not use Excel very often, but I am
familiar
with other programming languages. Any help from the Excel/VB gurus would
be
greatly appreciated.
Mike