+ Reply to Thread
Results 1 to 9 of 9

Measure Cell Position from Right of screen

  1. #1
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Measure Cell Position from Right of screen

    Hi All
    I once used a Function to Measure the distance of the lefthand side of the active cell to right of the screen.
    But now I can find it anywhere.
    can anybody remember the function Name?
    Last edited by pike; 07-30-2009 at 03:41 PM.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Measure Cell Position from Right of screen

    Was this a worksheet function or a udf, VBA function?

    I would think it's a udf based on a calculation involving the objects, ActiveWindow.Visiblerange and activecell.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Measure Cell Position from Right of screen

    Morn Andy
    It was a VBA function. I found it and many other usefully function sjust perusing the VBA Help. Is there a way to list all the VBA functions?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Measure Cell Position from Right of screen

    The help in VBE should give you access to the functions in VBA, although I'm not sure you will find what you are describing there.

    It's more likely to be a function of the Excel Application object, which you can use the Object browser to look at.

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Measure Cell Position from Right of screen

    Morn Andy
    Like you suggested I found it in the VBE Object Browser
    42 indicates the distance discussed
    But do you know what the others numbers represent?

    Please Login or Register  to view this content.
    Last edited by pike; 07-28-2009 at 04:44 PM. Reason: spelling

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Measure Cell Position from Right of screen


  7. #7
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Measure Cell Position from Right of screen

    Gee thanks again the file is very handy Andy

    What I was trying to do is find the correlation between excel cell width and AutoCad points,but with no luck.
    The best fit Algorithm
    Please Login or Register  to view this content.
    There is still a small error but it does the trick
    Do you know what the correlation is ?
    Last edited by pike; 07-31-2009 at 05:28 PM. Reason: spelling - refine algorithim

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Measure Cell Position from Right of screen

    Sorry, no idea what the relationship is.

    ColumnWidth is based on fontsize of the Normal font.

    Width is in points

  9. #9
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Measure Cell Position from Right of screen

    Thanks Andy
    Thats it the different arial styles of cad and excel. The same name but different properties.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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