Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default .UsableWidth .UsableHeight

Can you not use:
Dim nsgScale as single
With Range("A:A")
.Width/.ColumnWidth
End with

Depends what your aim is though ?

NickHK

"zzz" wrote in message
. ..
I'm baffled. The UsableWidth property returns the same value under
conditions that make some of the window's area not usable. Specifically,

if
the vertical scrollbar and the row headers are visible, the usable width

of
the active window is reduced by the width of these components. But the
UsableWidth property's reported value doesn't change. Not knowing the
actual width makes it impossible to create a scale within the window,
without wasting much of the screen area. It makes it equally impossible

to
craft code that works on a variety of screen widths.

I've tried to detemine programmatically the widths of the vertical

scrollbar
and of the row headers (and column headers as well). But I've had zero

luck
with referencing these objects.

Can anyone here help?

Tony




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



All times are GMT +1. The time now is 07:29 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"