How to find the first task visible on the display in vba

P

Phil.and.Lisa

I am writing some for Project in vba and I need to determine which is
the first task that is physically visible to the user on the display
in the ActiveProject. Is there a simple way to do this in vba?
 
J

Jan De Messemaeker

Hi,

Selectbeginning
set Firstvisibletask=activeselection.tasks(1)


Hope this helps
 
P

Phil.and.Lisa

Hi,

Selectbeginning
set Firstvisibletask=activeselection.tasks(1)

Hope this helps
--
Jan De Messemaeker





- Show quoted text -

I believe that will scroll the display to show the first task in the
list. Pehaps I was unclear. Suppose I have 20 tasks that can all be
visible. However, the user has scrolled down so that task 4 is
currently the first task you can see on your screen. Task 4 does not
necessarily contain the cursor. Is there a way in vba to know that
task 4 is currently the first task you can currently see.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top