Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Display col width in a cell

Hi All
I would like to set a formula in each of the relevant cells in Row 1 to
display the column width (30 of them of different widths).
Any ideas would help. Rgds KZ

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Display col width in a cell

Kieranz, try this,

Public Function CW(C As Range)
'Will show column width
'use like this = CW(A1)
Application.Volatile
CW = C.ColumnWidth
End Function

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Kieranz" wrote in message
oups.com...
Hi All
I would like to set a formula in each of the relevant cells in Row 1 to
display the column width (30 of them of different widths).
Any ideas would help. Rgds KZ



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Display col width in a cell

Hi All
I got it, from UG. In each cell in the first row put =CELL("width",A1)
and copy across.
Thks.
Rgds
KZ
Kieranz wrote:
Hi All
I would like to set a formula in each of the relevant cells in Row 1 to
display the column width (30 of them of different widths).
Any ideas would help. Rgds KZ


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Display col width in a cell

Hi Paul
Many thks, works perfect. My suggest doesn't give the decimals. it
rounds up.
Rgds
KZ

Kieranz wrote:
Hi All
I got it, from UG. In each cell in the first row put =CELL("width",A1)
and copy across.
Thks.
Rgds
KZ
Kieranz wrote:
Hi All
I would like to set a formula in each of the relevant cells in Row 1 to
display the column width (30 of them of different widths).
Any ideas would help. Rgds KZ


Reply
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
Change Cell Width WITHOUT changing Column width dww701 Excel Discussion (Misc queries) 1 January 12th 09 10:52 PM
How can I control the full screen display width ? Al B Excel Discussion (Misc queries) 0 March 10th 07 07:53 PM
How to make cell width different than the column width it lies in John Excel Discussion (Misc queries) 2 September 11th 06 10:41 PM
How can I restrict cell data display to column width? Sally Excel Discussion (Misc queries) 0 January 6th 06 06:32 PM
Shortcut key to display change the display from displaying cell values to cell formulae Adrian[_7_] Excel Programming 3 September 14th 04 12:07 PM


All times are GMT +1. The time now is 06:48 AM.

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"