Scroll to Cell A1

It's been almost four months since my last post. The reasons why . . .

  • Work has been extremely busy. It seems that in an economic downturn my job seems to get busier rather than slow down. As the business goes south there's an increased need for the financial analysis that supports the decisions that management makes.
  • Preparing for a professional exam. Studying and finally taking the test takes up a lot of time.
  • A lack of fresh ideas. That's probably the real reason.

That being said, the VBA Express site posted a simple macro that allows the user to view each sheet starting at the top-left cell. A variation of that macro is shown below. In my opinion, it's more professional to distribute a workbook to others with the active cell for each sheet at "A1". This macro allows you to quickly and efficiently set up your workbook to do so before sending it out.

Sub GoToCellA1()

    Dim Sheet As Worksheet
    Dim CurrentSheet As String
    
    CurrentSheet = ActiveSheet.Name

    Application.ScreenUpdating = False
    
    For Each Sheet In Worksheets

        Application.Goto Sheet.Range("A1"), scroll:=True

    Next

Sheets(CurrentSheet).Activate

End Sub
Posted on May 30, 2009 | Filed under: VBA | Comments (2) | Permalink
Page 1 of 1 pages

Comments

John -

Glad you’re back. I always get nervous when someone disappears like that.

You;ll have to clean out some comment spam ;-( which was all the updates we’ve gotten from your blog.

So how did the exam go?

Posted by Jon Peltier  on  05/30  at  04:44 PM

Hi Jon,

It seems like the volume of comment spam hitting my site has greatly increased in the last couple of months.  ExpressionEngine filters most of it but as you noted some is still getting through.  I’ve heard that Akismet works great so I might give it a shot.  An easier alternative might be to just moderate all of the comments.  How are you handling it?

It’s hard to tell how the exams are going.  It takes several months before the grades are sent out. 

jfm

Posted by .(JavaScript must be enabled to view this email address)  on  06/07  at  08:29 AM
Page 1 of 1 pages

Comment Entry

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?

Statistics

  • Total Entries - 136
  • Current Viewers - 26

Categories

Entries by Day

Sep - 2010
S M T W T F S
29 30 31 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 1 2

Recent Comments

Syndicate