Thread
:
Check if worksheet is before another
View Single Post
#
2
Posted to microsoft.public.excel.misc
Don Guillett
Posts: n/a
Check if worksheet is before another
This could be done with a macro using an inputbox asking for start and
asking for stop or even a formula using indirect. More detail would be
helpful
--
Don Guillett
SalesAid Software
wrote in message
ups.com...
Hey everyone,
I'm trying to write a macro that will generate a report of data entered
on various worksheets. I only want to generate the report, however, on
worksheets within a range of worksheets defined by the user. For
instance, if they say worksheet "Week 4" and "Week 8", it would
generate the report by pulling numbers from Week 4, 5, 6, 7, and 8.
I'm assuming that the only way this would even be possible is if the
worksheets are in sequential order. However, given the excel program I
have, it always adds new worksheets to the end so it should be a safe
assumption.
The point of the program is it is essentially a weekly timecard to keep
track of how much I work so I can bill my time appropriately. At the
end of each week, the user can hit a button to generate a new template
for the next week so users can save their time for their records. The
problem, however, it that the file size gets massive by just copying
and adding new spreadsheets each week. Ideally, I would be able to
generate this report would would display the time worked Sun- Saturday
each week (based on the different spreadsheets in the range) and then
I'll delete the original worksheets and give users the option to email
the report to themselves or save it as a seperate file.
Thanks!
Reply With Quote