+ Reply to Thread
Results 1 to 2 of 2

last visible row

  1. #1
    Registered User
    Join Date
    10-08-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    13

    last visible row

    hi
    Whenever a table cell is selected a tooltip image is displayed with some more information.
    The image is positioned next to the selected cell as follows

    Please Login or Register  to view this content.
    The image top is set to the cell top.

    However, there are cases in which the image bottom exceeds the bottom of the screen.
    In such a case I want to position the image above the cell so that that the image bottom will be as the cell bottom.

    The problem is to identify these cases.

    I checked ActiveWindow.Bottom value, but this value returns "higher" value on the screen (around 4-5 rows above the last row).
    I don't really understand what this value is.

    I thought about finding the last visible row, by looping rows, and check its bottom value.
    But I cant find a way to check whether a row is actually visible on screen (because of scrolling and as a result of filtering - Hidden property )

    Please advise

    tx

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: last visible row

    I understand what you want but it's not something (IMHO) that is simple, but the problem is the row number is not related to the position on screen, it has to be converted to pixels something like 17 pixel per row, so if you are at row 20 the pixels is 20 * row number but then you need to know the bottom of the active window which is the height which is also in pixels and your bottom row would have to be dispaked at Height - image top
    Something like that you can google and you will find similar ideas
    Hope this pints you in the right direction
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Shorten IF/ElseIF statement when making Items visible/not visible
    By DHFE in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-11-2015, 11:29 AM
  2. Select visible range and add page break after every 20th visible cell
    By tuc47285 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-04-2015, 01:18 AM
  3. Replies: 4
    Last Post: 01-06-2014, 02:14 AM
  4. Table Object after filtering - Count visible rows & First visible row
    By limalf in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-13-2013, 07:29 PM
  5. [SOLVED] Looking for help tidying up Macro vba code / visible/non visible buttons
    By darrenkaye in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-03-2012, 11:50 AM
  6. Resize Visible Rows based only on Visible Columns text
    By Zimbo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2009, 10:55 AM
  7. [SOLVED] Worksheet has to set to visible as it is not visible after saving and closing Excel by VB.
    By Oscar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2005, 06:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1