Print Range Decision - Command Button on UserForm
Posted by Jim on January 15, 2001 5:05 PM
Please Help and Thank you!
A Userform2 contains a Command Button.
The Userform2 is activated from the Worksheet by many users with authority to print their own sheet of data.
I have one Print Command Button on a UserForm;
There are multiple sheets in the Shared workbook and each sheet has a different range for printing.
Depending on the Active Sheet the User is on, I want to specify the Range for the active sheet only.
On the click of the command Button, I would like Visual basic to determine what sheet I am ON and what the range is that needs to be printed for the active sheet.(This part can be hardcoded as it will not grow or Shrink).
Example: User 1 is on Sheet 1 and wants to print data: The Range is A1:C10 that needs to be printed
User 2 is on Sheet 2 and wants to print data: The Range is A1:G20 that needs to be printed.
Thank you.
Jim