Avoid entering multiple start/end dates

unc2plo

Board Regular
Joined
Mar 18, 2002
Messages
148
I have a macro that runs series of queries that pull information from several tables into a final report. I need to be able to run the report for various time periods (This week, last week, lst month, last quarter, etc).

Since I am pulling teh data from several sources I have to enter teh start/end dates separately for each query that the macro runs.
Is there a way to use a form or something that wil allow me to enter the start/end date only once - then have it fill in the rest of teh time?

I was thinking I could do a form that had only 1 set of date boxes and then have the remaining date boxes just "read" the original?

SDoes that make sense?

Thanks,
David
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
You can use the Calendar function in a form with two text boxes, one for start date and one for end date. You will need to place the report names in a table or get them from a query and populate a list box with the report names. You can then use a command button to activate selection.
 
Upvote 0

Forum statistics

Threads
1,221,501
Messages
6,160,175
Members
451,629
Latest member
MNexcelguy19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top