PC Review


Reply
Thread Tools Rate Thread

Auto Start Macro in Excel

 
 
ABC Seamless Wayne
Guest
Posts: n/a
 
      23rd Jan 2008
I would like to know how to create a Macro in Excel (Maybe something better),
that would automatically go to "Sheet1" Cell A5 at the launch of Excel.
Currently I have

Sub Auto_Activate()
Sheets("Sheet1").Select
Range("A5").Select
End Sub

which is not working. When I leave, saving the file and launch again it
brings me back to the Sheet I was on at last save.

Thanks in advance!
 
Reply With Quote
 
 
 
 
Otto Moehrbach
Guest
Posts: n/a
 
      23rd Jan 2008
You can use the macro you wrote except name it:
Sub Auto_Open
That macro will not fire if the file is opened by code. In that case use a
Workbook_Open event macro. Note that a Workbook_Open event macro must be
placed in the workbook module. Post back if you need more. HTH Otto
"ABC Seamless Wayne" <(E-Mail Removed)> wrote in
message news:548240D8-E57B-4A32-B933-(E-Mail Removed)...
>I would like to know how to create a Macro in Excel (Maybe something
>better),
> that would automatically go to "Sheet1" Cell A5 at the launch of Excel.
> Currently I have
>
> Sub Auto_Activate()
> Sheets("Sheet1").Select
> Range("A5").Select
> End Sub
>
> which is not working. When I leave, saving the file and launch again it
> brings me back to the Sheet I was on at last save.
>
> Thanks in advance!



 
Reply With Quote
 
ABC Seamless Wayne
Guest
Posts: n/a
 
      24th Jan 2008
Thank you very much. Auto_Open works just fine.


"Otto Moehrbach" wrote:

> You can use the macro you wrote except name it:
> Sub Auto_Open
> That macro will not fire if the file is opened by code. In that case use a
> Workbook_Open event macro. Note that a Workbook_Open event macro must be
> placed in the workbook module. Post back if you need more. HTH Otto
> "ABC Seamless Wayne" <(E-Mail Removed)> wrote in
> message news:548240D8-E57B-4A32-B933-(E-Mail Removed)...
> >I would like to know how to create a Macro in Excel (Maybe something
> >better),
> > that would automatically go to "Sheet1" Cell A5 at the launch of Excel.
> > Currently I have
> >
> > Sub Auto_Activate()
> > Sheets("Sheet1").Select
> > Range("A5").Select
> > End Sub
> >
> > which is not working. When I leave, saving the file and launch again it
> > brings me back to the Sheet I was on at last save.
> >
> > Thanks in advance!

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-start Macro Frank Microsoft Word New Users 2 6th Mar 2010 06:07 PM
Auto Start a Macro in Excel 2007 VBA christopher ward Microsoft Excel Programming 2 16th Jul 2008 12:58 PM
Sub Macro vrs Function Macro Auto Start =?Utf-8?B?UGF0?= Microsoft Excel Misc 7 6th Jun 2007 09:53 PM
Excel auto-start macro =?Utf-8?B?UkRDTEFSSw==?= Microsoft Excel Programming 3 5th Oct 2004 07:21 PM
Re: how do i set up an auto-start/auto end macro Frank Kabel Microsoft Excel Worksheet Functions 0 9th Sep 2004 10:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:27 AM.