+ Reply to Thread
Results 1 to 4 of 4

Macro scrolls columns too far, some colums are hidden.

  1. #1
    Registered User
    Join Date
    02-15-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    9

    Macro scrolls columns too far, some colums are hidden.

    Hello. I have a macro that scrolls to certain columns. It works fine as long as some of the columns are not hidden. Sometimes it is neccessary for columns to be hidden. When some columns are hidden, it scrolls too far. It appears that my present macro doesn't count the columns which are hidden.

    ....
    ActiveWindow.ScrollColumn = 50
    ....

    When I check the column # with =column(), the column # returned is 120 (there's lots of hidden columns). Is there another way to do this so it scrolls to the right column? I need something that will work whether the columns are hidden or not.

    Much appreciated,
    JCMus

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Macro scrolls columns too far, some colums are hidden.

    Hi

    If you know the column that you want, then select that column directly. Do you know exactly which column you want? Also, do you have a particular cell in the column that you want to be in the top left of the screen?

    rylo

  3. #3
    Registered User
    Join Date
    02-15-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Macro scrolls columns too far, some colums are hidden.

    What is the code to select a column direct if the column is DA?

    Thanks
    JCMus

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Macro scrolls columns too far, some colums are hidden.

    Hi

    Please Login or Register  to view this content.
    This will select DA1. Now where it is on the screen is another matter...

    rylo

+ 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