If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > ActiveWindow

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-06, 16:18
accessman2 accessman2 is offline
Registered User
 
Join Date: Sep 2005
Posts: 313
ActiveWindow

Hi,

In VB of the Excel,

I want to setup like this,

if the ActiveWindow cannot show the selected cell at all (maybe show half of it), then ActiveWindow.ScrollColumn = 8

But, I don't know how to check whether or not the selected cell size is shown in the active window.

Please let me know, thanks.
Reply With Quote
  #2 (permalink)  
Old 09-20-06, 19:37
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
Do comparisons as appropriate of something like
activewindow.width and activecell.left, or, activecell.left + activecell.width
and
activewindow.height and activecell.top, or, activecell.top + activecell.height

HTH
Fazza
Reply With Quote
Reply

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 On
Pingbacks are On
Refbacks are On