SamarthSalunkhe
Board Regular
- Joined
- Jun 14, 2021
- Messages
- 103
- Office Version
- 2016
- Platform
- Windows
Hello Everyone,
I have set the print area in the sheet using VBA code, but I realise that the user can modify it using "Set Print Area" at the time of printing the page.
can someone help me to prevent this, as I don't want modification in the Print area to avid misuse of macro?
Currently, I'm using the below code for the print area.
I have set the print area in the sheet using VBA code, but I realise that the user can modify it using "Set Print Area" at the time of printing the page.
can someone help me to prevent this, as I don't want modification in the Print area to avid misuse of macro?
Currently, I'm using the below code for the print area.
VBA Code:
Private Sub Worksheet_Activate()
Sheet1.PageSetup.PrintArea = "$B$2:$D$39"
End Sub