claudehenri
Technical User
this is my code below
the .select command selects the area i want to set as the print area, but the ".PrintArea =" still returns the ".UsedRange" range. Doesn't make sense to me.
With Worksheets("Fly Chart")
.UsedRange.Resize(.UsedRange.Rows.Count, _
.UsedRange.Columns.Count - 2).Select
.PageSetup.PrintArea = .UsedRange.Resize _
(.UsedRange.Rows.Count, .UsedRange.Columns.Count - _
2)
End With
the .select command selects the area i want to set as the print area, but the ".PrintArea =" still returns the ".UsedRange" range. Doesn't make sense to me.
With Worksheets("Fly Chart")
.UsedRange.Resize(.UsedRange.Rows.Count, _
.UsedRange.Columns.Count - 2).Select
.PageSetup.PrintArea = .UsedRange.Resize _
(.UsedRange.Rows.Count, .UsedRange.Columns.Count - _
2)
End With