Is it possible to set the zoom level based on screen resolution without Select?
I followed the code:
Sheets(1).Range("A1:AC1").Select
ActiveWindow.Zoom = True
taken from https://stackoverflow.com>
The desired code would look something like this:
Range("A1:AC1").Width.Zoom=True
Refresh. Why do I want to avoid the choice?
- My sheet has hidden columns based on user preferences. Therefore, some columns in the range A1: AC1 are hidden. I cannot select a single column because this particular column may be hidden.
- The selection raises events. Of course, I can disable events, but disabling events has some side effects that I want to avoid.
source
share