Results 1 to 3 of 3

Centering a cell on the screen

Threaded View

  1. #1
    Registered User
    Join Date
    05-31-2007
    Posts
    24

    Centering a cell on the screen

    Greetings

    How would you center a cell on the screen or make the sheet shift so that cell is in the upper left corner?

    Cheers
    Aurbo

    Found it..

    Sub ScrollCetre()
    Dim ColVis As Single

    ColVis = ActiveWindow.VisibleRange.Columns.Count
    Application.Goto Reference:=Range("P1"), Scroll:=True
    ActiveWindow.SmallScroll Toleft:=ColVis \ 2
    End Sub
    Last edited by Aurbo99; 06-11-2007 at 08:48 PM.

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