ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Usenet Groups > Excel 2007 Help

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-03-2008, 07:53 AM
Robin2 Robin2 is offline
Registered User
 
Join Date: 03 Sep 2008
Location: Australia
Posts: 9
Robin2 is on a distinguished road
Column Width

Hi
I am trying to redesign a spreadsheet in 2007 that I had in 2003. The problem is when I set the column width to 14.25 it will not take it. It puts in 14.29. How can I make it accept 14.25.
Thanks
Reply With Quote
  #2  
Old 09-03-2008, 01:06 PM
royUK's Avatar
royUK royUK is offline
Forums Administrator
 
Join Date: 18 Nov 2003
Location: Lincolnshire,UK
Posts: 6,885
royUK will become famous soon enough royUK will become famous soon enough
Are you doing this manually?
__________________
Hope that helps.

RoyUK
--------
For Excel consulting, free examples and tutorials visit my site
Check out the free Excel Toolbar

New members please read & follow the Forum Rules

Remember to mark your questions Solved and rate the answer(s)

Where to copy the code to

Code Tags: Make your code easier for us to read
Reply With Quote
  #3  
Old 09-03-2008, 08:29 PM
pjoaquin's Avatar
pjoaquin pjoaquin is offline
Forum Moderator
 
Join Date: 05 Feb 2007
Location: Wisconsin, U.S.A.
Posts: 2,328
pjoaquin will become famous soon enough pjoaquin will become famous soon enough
I don't believe you can set a column width to exactly 14.25, to be honest, not even programatically.

Even though Excel shows you widths such as 14.00, 14.14, 14.29, 14.43, 14.57, etc.., what you're really doing is setting the column width as a number of pixels.

14.00 = 103 pixels
14.14 = 104
14.29 = 105
14.43 = 106
etc..

My guess is Excel won't allow you to set a column width using a fraction of a pixel (makes sense), which 14.25 would be when converted to pixels.
__________________
- Paul

Click here to read the Forum Rules

Reply With Quote
  #4  
Old 09-03-2008, 08:59 PM
Robin2 Robin2 is offline
Registered User
 
Join Date: 03 Sep 2008
Location: Australia
Posts: 9
Robin2 is on a distinguished road
HI
Yes I am doing it manually. I was able to do it in 2003 and I need these settings to get the amount of colums I need to fit on the page. I would have thought that 2003 worked in pixels also. Maybe there is something else I need to change?
Reply With Quote
  #5  
Old 09-03-2008, 09:18 PM
pjoaquin's Avatar
pjoaquin pjoaquin is offline
Forum Moderator
 
Join Date: 05 Feb 2007
Location: Wisconsin, U.S.A.
Posts: 2,328
pjoaquin will become famous soon enough pjoaquin will become famous soon enough
I have both 2003 and 2007, and I can't set it to exactly 14.25 in either system.

As I eluded to earlier, doing so would require Excel (and the operating system) to be able to use just a partial pixel to display the column width, which I'm not sure is even possible. The column can be either 104 pixes (14.14 characters) or 105 pixels (14.29 characters). There is no pixel between 104 and 105.

If someone can prove otherwise, please, feel free!
__________________
- Paul

Click here to read the Forum Rules

Reply With Quote
  #6  
Old 09-03-2008, 09:23 PM
pjoaquin's Avatar
pjoaquin pjoaquin is offline
Forum Moderator
 
Join Date: 05 Feb 2007
Location: Wisconsin, U.S.A.
Posts: 2,328
pjoaquin will become famous soon enough pjoaquin will become famous soon enough
According to this Microsoft KB article: http://support.microsoft.com/kb/214123
Quote:
..When you change the width of a column to a fractional number, the column width may be set to a different number depending on the font used in the Normal style. For example, with a Normal style font of Arial, if you attempt to change the width of a column to 8.5, the column is set to 8.57 or 65 pixels. This behavior occurs because of the translation of font characters to pixel units. Fractional pixel units cannot be displayed; therefore, the column width rounds to the nearest number that results in a whole pixel unit.
Perhaps there is a font that will allow you to set it to 14.25? Maybe, maybe not. I don't plan on trying that many fonts personally, though.
__________________
- Paul

Click here to read the Forum Rules

Reply With Quote
  #7  
Old 09-04-2008, 05:43 AM
royUK's Avatar
royUK royUK is offline
Forums Administrator
 
Join Date: 18 Nov 2003
Location: Lincolnshire,UK
Posts: 6,885
royUK will become famous soon enough royUK will become famous soon enough
I only have 2000 on this computer, setting Column Width to 14.25 automatically defaults to 14.29.

If you convert your 2003 workbook to 2007 then column widths should transfer & be the same. Do this & try printing the sheet. I think if you check 2003 you will find the column width has defaulted to 14.29 as pjoaquin says.
__________________
Hope that helps.

RoyUK
--------
For Excel consulting, free examples and tutorials visit my site
Check out the free Excel Toolbar

New members please read & follow the Forum Rules

Remember to mark your questions Solved and rate the answer(s)

Where to copy the code to

Code Tags: Make your code easier for us to read
Reply With Quote
  #8  
Old 09-04-2008, 06:54 AM
Robin2 Robin2 is offline
Registered User
 
Join Date: 03 Sep 2008
Location: Australia
Posts: 9
Robin2 is on a distinguished road
Hi
Thanks for all the help. Made a mistake as the previous excel version I was using was 2002 but some of my other office products were 2003 so naturally assumed that excel was also. I used Arial 10 normal font and it took 14.25 width and it did not revert. I will have to revise all my column widths in 2007 as I do not have my original anymore. Thanks again.
Reply With Quote
Reply

Bookmarks

New topics in Excel 2007 Help


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Column A & Low Column B = output Name (Column C) Value (Column D) to column E&F lumo1985 Excel General 7 05-28-2008 04:12 AM
Standard Column Width on Multiple Sheets walkingthecow Excel General 1 05-27-2008 12:38 PM
How to move cells to another column based on a certain value April12 Excel Programming 3 04-08-2008 01:47 PM
Split cell content based on a column break fixed width Sawred Excel Miscellaneous 1 05-02-2007 11:36 PM
Column Width AlienBeans Excel Miscellaneous 6 05-02-2007 04:52 AM


All times are GMT -4. The time now is 03:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0