Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dk dk is offline
external usenet poster
 
Posts: 129
Default vba to detect if column contains partially hidden text

Is it possible using vba to detect if data in a cell column is not being
completely displayed? The idea is to then use autofit on that column.

tia,
dk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default vba to detect if column contains partially hidden text

Why not just use autofit and be done with it? If there is not data that is
not displayed, the column width will not increase. If there is, it will
HTH Otto
"dk" wrote in message
...
Is it possible using vba to detect if data in a cell column is not being
completely displayed? The idea is to then use autofit on that column.

tia,
dk



  #3   Report Post  
Posted to microsoft.public.excel.programming
dk dk is offline
external usenet poster
 
Posts: 129
Default vba to detect if column contains partially hidden text

Only interested in scenarios where cell A1 has data, is not completely
displayed,
and cell B1 also has data - In that scenario, A1 needs to be autofitted,
since B1 covers it- (example works with any adjoining cells). Is the only way
to calculate
the column width and length of text in A1? - is there a way to do that
calculation accurately (since column text can vary based on characters)?

tia,
dk

"Otto Moehrbach" wrote:

Why not just use autofit and be done with it? If there is not data that is
not displayed, the column width will not increase. If there is, it will
HTH Otto
"dk" wrote in message
...
Is it possible using vba to detect if data in a cell column is not being
completely displayed? The idea is to then use autofit on that column.

tia,
dk




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default vba to detect if column contains partially hidden text

The only (practical) way I know is to copy the text to a cell out of the
way. Autofit. Compare the widths of the columns.

NickHK

"dk" wrote in message
...
Only interested in scenarios where cell A1 has data, is not completely
displayed,
and cell B1 also has data - In that scenario, A1 needs to be autofitted,
since B1 covers it- (example works with any adjoining cells). Is the only

way
to calculate
the column width and length of text in A1? - is there a way to do that
calculation accurately (since column text can vary based on characters)?

tia,
dk

"Otto Moehrbach" wrote:

Why not just use autofit and be done with it? If there is not data that

is
not displayed, the column width will not increase. If there is, it will
HTH Otto
"dk" wrote in message
...
Is it possible using vba to detect if data in a cell column is not

being
completely displayed? The idea is to then use autofit on that column.

tia,
dk






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
Excel 2007 Can't scroll to top row which is partially hidden grandad Excel Discussion (Misc queries) 1 June 6th 07 11:37 AM
Horizontal Scrollbar partially Hidden by Taskbar Jon5001 Excel Programming 3 August 31st 06 02:20 PM
How do I detect hidden worksheets or hidden data on a worksheet? Alice Excel Discussion (Misc queries) 4 August 24th 06 03:38 AM
How to detect if cells text go on other column ? Alex St-Pierre Excel Programming 0 March 29th 06 03:31 PM
Cells partially hidden in print preview mattslav Excel Discussion (Misc queries) 0 February 15th 06 06:07 PM


All times are GMT +1. The time now is 01:47 AM.

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

About Us

"It's about Microsoft Excel"