itchyII
MIS
- Apr 10, 2001
- 167
Hi Everyone,
I have an Excel 2000 spreadsheet. The first sheet in the workbook is kind of a 'Control Sheet'. It has numerous Excel form buttons (right on the page). There is a button for printing each report (the reports are basically other worksheets with al kinds of graphs). The code for this print is the same for all buttons except the sheet that is being printed is different. I would like to write only one sub/function that each of these buttons fires off, and in the function/sub, I would like to be able to detect which button was clicked (by either the name or the text on the button), and then I will print the appropriate worksheet. The proble is that I don't know how to detect which button was pressed!
Thanks in advance!
ItchyII
I have an Excel 2000 spreadsheet. The first sheet in the workbook is kind of a 'Control Sheet'. It has numerous Excel form buttons (right on the page). There is a button for printing each report (the reports are basically other worksheets with al kinds of graphs). The code for this print is the same for all buttons except the sheet that is being printed is different. I would like to write only one sub/function that each of these buttons fires off, and in the function/sub, I would like to be able to detect which button was clicked (by either the name or the text on the button), and then I will print the appropriate worksheet. The proble is that I don't know how to detect which button was pressed!
Thanks in advance!
ItchyII