Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

center the content of a sheet before printing in VBA

Status
Not open for further replies.

MrBaRRon

Programmer
Aug 8, 2003
39
IT
Hi everybody,

I need to align at the center the content of an Excel sheet. (Forms control and cells). But the width of the content is not always the same.

I would like the code to center automatically before printing in VBA.

Thank U.
 
Something like this ?
ActiveSheet.PageSetup.CenterHorizontally = True

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top