LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Autofit, Centre and Text

Hi Everyone,

I have a Macro that Produces Results Starting in "A1" and Continues
Vertically. The Results Could Possible Use Several Columns. I have Tried
Using the Following Code to Set the Columns "A:IV" to be AutoFit,
Centred and Texted, But for Some Reason it will NOT Work.
Has Anyone got Any Suggestions Please. Here is the Code :-

Sheets("Results").Select
Columns("A:IV").AutoFit
Columns("A:IV").HorizontalAlignment = xlCenter
Columns("A:IV").NumberFormat = "@" ' Set to Text.
Range("A1").Select

Thanks in Advance.
All the Best
Paul
Windows XP - Excel 2002

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
autofit text when resizing text box in Excel 2007 tinks Excel Discussion (Misc queries) 0 May 4th 09 04:20 PM
why does line not autofit to amount of text? Catherine Excel Discussion (Misc queries) 2 September 10th 07 05:02 AM
Autofit text into a cell rp2chil Excel Discussion (Misc queries) 1 May 11th 07 09:07 AM
autofit text that is pulling data from another tab NANGO Excel Worksheet Functions 0 April 27th 07 01:14 AM
How do I get "centre across selection" to centre properly? Marjon Excel Discussion (Misc queries) 5 March 17th 06 12:24 AM


All times are GMT +1. The time now is 04:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"