ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Print data based upon date entry (https://www.excelbanter.com/excel-programming/394467-print-data-based-upon-date-entry.html)

Bruise[_3_]

Print data based upon date entry
 
Hello group!

I'm trying to develop a code assigned to a button so when the button is
pressed, the code opens a form, asks for a specific date to search for, and
returns with a printable result listing column A (Date) and the
corresponding columns B, C, D and E.

I'm totally lost at where to even start. Any help would truly be
appreciated.

Mark



Michael

Print data based upon date entry
 


A simple solution could be to Create your button, assing a sub to it, in the
sub you use the input box command and the result gets stored in a variable,
the variable then is used in combination with a filter placed in column "A"
where the date should be, then select all visible cells, and copy them to a
different sheet. At the end of your first sub, you set a few instructions to
find the area in use and set it as the printing area, once this is printed
you clear the whole sheet to prepare it for the next set of data to be
printed.

Michael Arch.
"Bruise" wrote:

Hello group!

I'm trying to develop a code assigned to a button so when the button is
pressed, the code opens a form, asks for a specific date to search for, and
returns with a printable result listing column A (Date) and the
corresponding columns B, C, D and E.

I'm totally lost at where to even start. Any help would truly be
appreciated.

Mark





All times are GMT +1. The time now is 05:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com