Hi There,
To automate some formatting I have to do to ALOT of worksheets I have the following code:
Cells.Select
With Selection
.WrapText = False
.MergeCells = False
End With
With ActiveSheet.PageSetup
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
This code is attached to a button on the toolbar. It should unwrap & unmerge all fields and set the page setup to 1 page.
It does the unwrap & unmerge just fine, but the page setup part isn’t working.
What I noticed is that unless the radio button for ‘Fit to” is already selected this will not do anything.
What I guess I really need to do is select the option for 1 page by 1 page.
How do I do this?
Thanks!