Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default How to get Excel 2003 to open to specific cell refernece!

I would like for my Excel 2003 worksheet to open at a specific cell
reference. Is this possible.? My knowledge of Excel is very limited so
please be explicit.

Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to get Excel 2003 to open to specific cell refernece!

You can have a macro run each time the workbook opens.

Option Explicit
Sub Auto_Open()
application.goto worksheets("sheet9999").range("x777"), scroll:=true
end sub

Change the worksheet name and cell address to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

wrote:

I would like for my Excel 2003 worksheet to open at a specific cell
reference. Is this possible.? My knowledge of Excel is very limited so
please be explicit.

Thanks in advance.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default How to get Excel 2003 to open to specific cell refernece!

Dave,

Thanks for the quick reply but I must be doing something wrong. I have
two problems.

First - I followed the link you provided and did as they suggested for
using someone's elses macros. I only have one worksheet in my Excel
file and want it to open to Cell D5. So I used -

Option Explicit
Sub Auto_Open()
Application.Goto Worksheets("sheet1").Range("D5"), scroll:=True
End Sub

When I returned to my spreadsheet and tried to run the macro with ALT +
F8. I get the error " subscript out of range."

Second, so I thought I would save the file and go back to it later.
When I tried to save it, I got the following message -

"The following features from you workbook will not be saved in the XML
spreadsheet - VB project. Do you want to continue saving as XML
spreadsheet? Yes or no?"

I have my macro security set to medium.

Thanks in advance for any help you can give me?


Dave Peterson wrote:
You can have a macro run each time the workbook opens.

Option Explicit
Sub Auto_Open()
application.goto worksheets("sheet9999").range("x777"), scroll:=true
end sub

Change the worksheet name and cell address to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

wrote:

I would like for my Excel 2003 worksheet to open at a specific cell
reference. Is this possible.? My knowledge of Excel is very limited so
please be explicit.

Thanks in advance.


--

Dave Peterson


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to get Excel 2003 to open to specific cell refernece!

Is Sheet1 the name of the worksheet?

Subscript out of range usually means that there is a typo--either in the code or
in the name of the worksheet.

And I don't use xl2007, so I'm not sure what the solution would be.

Are you sure you're saving as a normal workbook (with macros???).

wrote:

Dave,

Thanks for the quick reply but I must be doing something wrong. I have
two problems.

First - I followed the link you provided and did as they suggested for
using someone's elses macros. I only have one worksheet in my Excel
file and want it to open to Cell D5. So I used -

Option Explicit
Sub Auto_Open()
Application.Goto Worksheets("sheet1").Range("D5"), scroll:=True
End Sub

When I returned to my spreadsheet and tried to run the macro with ALT +
F8. I get the error " subscript out of range."

Second, so I thought I would save the file and go back to it later.
When I tried to save it, I got the following message -

"The following features from you workbook will not be saved in the XML
spreadsheet - VB project. Do you want to continue saving as XML
spreadsheet? Yes or no?"

I have my macro security set to medium.

Thanks in advance for any help you can give me?

Dave Peterson wrote:
You can have a macro run each time the workbook opens.

Option Explicit
Sub Auto_Open()
application.goto worksheets("sheet9999").range("x777"), scroll:=true
end sub

Change the worksheet name and cell address to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

wrote:

I would like for my Excel 2003 worksheet to open at a specific cell
reference. Is this possible.? My knowledge of Excel is very limited so
please be explicit.

Thanks in advance.


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default How to get Excel 2003 to open to specific cell refernece!

Problem #1 -fixed. My worksheet is not named sheet1. As soon as I
changed it, it worked.

Problem #2 - fixed. Captain Dum Dum here. I did not notice that it was
not saving as Excel workbook. As soon as I changed that, it worked.

Now, one more question. Now when I open the file, I get the security
warning about macros. Is there a way to turn this off or is it
something I must live with.

Thanks for all your help.

24t42




wrote:
Dave,

Thanks for the quick reply but I must be doing something wrong. I have
two problems.

First - I followed the link you provided and did as they suggested for
using someone's elses macros. I only have one worksheet in my Excel
file and want it to open to Cell D5. So I used -

Option Explicit
Sub Auto_Open()
Application.Goto Worksheets("sheet1").Range("D5"), scroll:=True
End Sub

When I returned to my spreadsheet and tried to run the macro with ALT +
F8. I get the error " subscript out of range."

Second, so I thought I would save the file and go back to it later.
When I tried to save it, I got the following message -

"The following features from you workbook will not be saved in the XML
spreadsheet - VB project. Do you want to continue saving as XML
spreadsheet? Yes or no?"

I have my macro security set to medium.

Thanks in advance for any help you can give me?


Dave Peterson wrote:
You can have a macro run each time the workbook opens.

Option Explicit
Sub Auto_Open()
application.goto worksheets("sheet9999").range("x777"), scroll:=true
end sub

Change the worksheet name and cell address to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

wrote:

I would like for my Excel 2003 worksheet to open at a specific cell
reference. Is this possible.? My knowledge of Excel is very limited so
please be explicit.

Thanks in advance.


--

Dave Peterson




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default How to get Excel 2003 to open to specific cell refernece!

I spoke to soon. It worked once and now it isn't again.

Let me make sure I have this correctly. My one sheet is named Master. I
want it to open on cell D5. Here is the code I used -

Option Explicit
Sub Auto_Open()
Application.Goto Worksheets("Master").Range("D5"), scroll:=True
End Sub

Now I noticed that there are several places where I can put the code -
either attach to Sheet1(Master) or ThisWorkbook. I put it in
Sheet1(Master). Is this correct?

Oh, by the way the macro works fine if I use ALT +F8. It just doesn't
open on D5. It opens on whatever I was on when I closed and saved.

24t42



Dave Peterson wrote:
Is Sheet1 the name of the worksheet?

Subscript out of range usually means that there is a typo--either in the code or
in the name of the worksheet.

And I don't use xl2007, so I'm not sure what the solution would be.

Are you sure you're saving as a normal workbook (with macros???).

wrote:

Dave,

Thanks for the quick reply but I must be doing something wrong. I have
two problems.

First - I followed the link you provided and did as they suggested for
using someone's elses macros. I only have one worksheet in my Excel
file and want it to open to Cell D5. So I used -

Option Explicit
Sub Auto_Open()
Application.Goto Worksheets("sheet1").Range("D5"), scroll:=True
End Sub

When I returned to my spreadsheet and tried to run the macro with ALT +
F8. I get the error " subscript out of range."

Second, so I thought I would save the file and go back to it later.
When I tried to save it, I got the following message -

"The following features from you workbook will not be saved in the XML
spreadsheet - VB project. Do you want to continue saving as XML
spreadsheet? Yes or no?"

I have my macro security set to medium.

Thanks in advance for any help you can give me?

Dave Peterson wrote:
You can have a macro run each time the workbook opens.

Option Explicit
Sub Auto_Open()
application.goto worksheets("sheet9999").range("x777"), scroll:=true
end sub

Change the worksheet name and cell address to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

wrote:

I would like for my Excel 2003 worksheet to open at a specific cell
reference. Is this possible.? My knowledge of Excel is very limited so
please be explicit.

Thanks in advance.

--

Dave Peterson


--

Dave Peterson


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default How to get Excel 2003 to open to specific cell refernece!

If just for your own computer...........................

Check out Help on Digital Signing and the the SelfCert utility which allows you
to sign your projects on your own computer only.

Self-cert digital signatures are not exportable as are paid-for ones from Thawte
and Versisign.

Go to StartProgramsMicrosoft OfficeOffice ToolsDigital Certificates and
build a selfcert from there.

When complete and your workbook is open go to VBEditor and ToolsDigital
SignatureChoose.

Select the one you just created and Ok your way out.

Save the workbook and re-open. Click "Yes" when asked about "trusted whatever".

You won't see the macro message again for that workbook.

You can use the signature for all your workbooks with macros.


Gord Dibben MS Excel MVP

On 15 Jan 2007 10:22:21 -0800, wrote:

Problem #1 -fixed. My worksheet is not named sheet1. As soon as I
changed it, it worked.

Problem #2 - fixed. Captain Dum Dum here. I did not notice that it was
not saving as Excel workbook. As soon as I changed that, it worked.

Now, one more question. Now when I open the file, I get the security
warning about macros. Is there a way to turn this off or is it
something I must live with.

Thanks for all your help.

24t42




wrote:
Dave,

Thanks for the quick reply but I must be doing something wrong. I have
two problems.

First - I followed the link you provided and did as they suggested for
using someone's elses macros. I only have one worksheet in my Excel
file and want it to open to Cell D5. So I used -

Option Explicit
Sub Auto_Open()
Application.Goto Worksheets("sheet1").Range("D5"), scroll:=True
End Sub

When I returned to my spreadsheet and tried to run the macro with ALT +
F8. I get the error " subscript out of range."

Second, so I thought I would save the file and go back to it later.
When I tried to save it, I got the following message -

"The following features from you workbook will not be saved in the XML
spreadsheet - VB project. Do you want to continue saving as XML
spreadsheet? Yes or no?"

I have my macro security set to medium.

Thanks in advance for any help you can give me?


Dave Peterson wrote:
You can have a macro run each time the workbook opens.

Option Explicit
Sub Auto_Open()
application.goto worksheets("sheet9999").range("x777"), scroll:=true
end sub

Change the worksheet name and cell address to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

wrote:

I would like for my Excel 2003 worksheet to open at a specific cell
reference. Is this possible.? My knowledge of Excel is very limited so
please be explicit.

Thanks in advance.

--

Dave Peterson


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default How to get Excel 2003 to open to specific cell refernece!

The Auto_open code must be stored in a general module.

Alt + F11 to open VBE.

Select your workbook/project and InsertModule

Paste the code into that module.


Gord Dibben MS Excel MVP

On 15 Jan 2007 11:05:19 -0800, wrote:

I spoke to soon. It worked once and now it isn't again.

Let me make sure I have this correctly. My one sheet is named Master. I
want it to open on cell D5. Here is the code I used -

Option Explicit
Sub Auto_Open()
Application.Goto Worksheets("Master").Range("D5"), scroll:=True
End Sub

Now I noticed that there are several places where I can put the code -
either attach to Sheet1(Master) or ThisWorkbook. I put it in
Sheet1(Master). Is this correct?

Oh, by the way the macro works fine if I use ALT +F8. It just doesn't
open on D5. It opens on whatever I was on when I closed and saved.

24t42



Dave Peterson wrote:
Is Sheet1 the name of the worksheet?

Subscript out of range usually means that there is a typo--either in the code or
in the name of the worksheet.

And I don't use xl2007, so I'm not sure what the solution would be.

Are you sure you're saving as a normal workbook (with macros???).

wrote:

Dave,

Thanks for the quick reply but I must be doing something wrong. I have
two problems.

First - I followed the link you provided and did as they suggested for
using someone's elses macros. I only have one worksheet in my Excel
file and want it to open to Cell D5. So I used -

Option Explicit
Sub Auto_Open()
Application.Goto Worksheets("sheet1").Range("D5"), scroll:=True
End Sub

When I returned to my spreadsheet and tried to run the macro with ALT +
F8. I get the error " subscript out of range."

Second, so I thought I would save the file and go back to it later.
When I tried to save it, I got the following message -

"The following features from you workbook will not be saved in the XML
spreadsheet - VB project. Do you want to continue saving as XML
spreadsheet? Yes or no?"

I have my macro security set to medium.

Thanks in advance for any help you can give me?

Dave Peterson wrote:
You can have a macro run each time the workbook opens.

Option Explicit
Sub Auto_Open()
application.goto worksheets("sheet9999").range("x777"), scroll:=true
end sub

Change the worksheet name and cell address to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

wrote:

I would like for my Excel 2003 worksheet to open at a specific cell
reference. Is this possible.? My knowledge of Excel is very limited so
please be explicit.

Thanks in advance.

--

Dave Peterson


--

Dave Peterson


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default How to get Excel 2003 to open to specific cell refernece!

I want to thank both of you for your help. Excel and I don't get along
too well. I don't use it often enough to be familiar with it's inner
workings.

I am glad to report that it is now working each time I open the file.
It helps if you put the code in the correct spot.

No, this file is not for my personal use. It is a score sheet that will
be used by several people on differnet computers.

Thanks, again!

Judy


Gord Dibben wrote:
If just for your own computer...........................

Check out Help on Digital Signing and the the SelfCert utility which allows you
to sign your projects on your own computer only.

Self-cert digital signatures are not exportable as are paid-for ones from Thawte
and Versisign.

Go to StartProgramsMicrosoft OfficeOffice ToolsDigital Certificates and
build a selfcert from there.

When complete and your workbook is open go to VBEditor and ToolsDigital
SignatureChoose.

Select the one you just created and Ok your way out.

Save the workbook and re-open. Click "Yes" when asked about "trusted whatever".

You won't see the macro message again for that workbook.

You can use the signature for all your workbooks with macros.


Gord Dibben MS Excel MVP

On 15 Jan 2007 10:22:21 -0800, wrote:

Problem #1 -fixed. My worksheet is not named sheet1. As soon as I
changed it, it worked.

Problem #2 - fixed. Captain Dum Dum here. I did not notice that it was
not saving as Excel workbook. As soon as I changed that, it worked.

Now, one more question. Now when I open the file, I get the security
warning about macros. Is there a way to turn this off or is it
something I must live with.

Thanks for all your help.

24t42




wrote:
Dave,

Thanks for the quick reply but I must be doing something wrong. I have
two problems.

First - I followed the link you provided and did as they suggested for
using someone's elses macros. I only have one worksheet in my Excel
file and want it to open to Cell D5. So I used -

Option Explicit
Sub Auto_Open()
Application.Goto Worksheets("sheet1").Range("D5"), scroll:=True
End Sub

When I returned to my spreadsheet and tried to run the macro with ALT +
F8. I get the error " subscript out of range."

Second, so I thought I would save the file and go back to it later.
When I tried to save it, I got the following message -

"The following features from you workbook will not be saved in the XML
spreadsheet - VB project. Do you want to continue saving as XML
spreadsheet? Yes or no?"

I have my macro security set to medium.

Thanks in advance for any help you can give me?


Dave Peterson wrote:
You can have a macro run each time the workbook opens.

Option Explicit
Sub Auto_Open()
application.goto worksheets("sheet9999").range("x777"), scroll:=true
end sub

Change the worksheet name and cell address to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

wrote:

I would like for my Excel 2003 worksheet to open at a specific cell
reference. Is this possible.? My knowledge of Excel is very limited so
please be explicit.

Thanks in advance.

--

Dave Peterson


  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default How to get Excel 2003 to open to specific cell refernece!

It is working fine on my computer. If I give the file to someone else
to use on their computer, will the macro transfer with the file so that
they can use it also?

24t42




wrote:
I want to thank both of you for your help. Excel and I don't get along
too well. I don't use it often enough to be familiar with it's inner
workings.

I am glad to report that it is now working each time I open the file.
It helps if you put the code in the correct spot.

No, this file is not for my personal use. It is a score sheet that will
be used by several people on differnet computers.

Thanks, again!

Judy


Gord Dibben wrote:
If just for your own computer...........................

Check out Help on Digital Signing and the the SelfCert utility which allows you
to sign your projects on your own computer only.

Self-cert digital signatures are not exportable as are paid-for ones from Thawte
and Versisign.

Go to StartProgramsMicrosoft OfficeOffice ToolsDigital Certificates and
build a selfcert from there.

When complete and your workbook is open go to VBEditor and ToolsDigital
SignatureChoose.

Select the one you just created and Ok your way out.

Save the workbook and re-open. Click "Yes" when asked about "trusted whatever".

You won't see the macro message again for that workbook.

You can use the signature for all your workbooks with macros.


Gord Dibben MS Excel MVP

On 15 Jan 2007 10:22:21 -0800,
wrote:

Problem #1 -fixed. My worksheet is not named sheet1. As soon as I
changed it, it worked.

Problem #2 - fixed. Captain Dum Dum here. I did not notice that it was
not saving as Excel workbook. As soon as I changed that, it worked.

Now, one more question. Now when I open the file, I get the security
warning about macros. Is there a way to turn this off or is it
something I must live with.

Thanks for all your help.

24t42




wrote:
Dave,

Thanks for the quick reply but I must be doing something wrong. I have
two problems.

First - I followed the link you provided and did as they suggested for
using someone's elses macros. I only have one worksheet in my Excel
file and want it to open to Cell D5. So I used -

Option Explicit
Sub Auto_Open()
Application.Goto Worksheets("sheet1").Range("D5"), scroll:=True
End Sub

When I returned to my spreadsheet and tried to run the macro with ALT +
F8. I get the error " subscript out of range."

Second, so I thought I would save the file and go back to it later.
When I tried to save it, I got the following message -

"The following features from you workbook will not be saved in the XML
spreadsheet - VB project. Do you want to continue saving as XML
spreadsheet? Yes or no?"

I have my macro security set to medium.

Thanks in advance for any help you can give me?


Dave Peterson wrote:
You can have a macro run each time the workbook opens.

Option Explicit
Sub Auto_Open()
application.goto worksheets("sheet9999").range("x777"), scroll:=true
end sub

Change the worksheet name and cell address to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

wrote:

I would like for my Excel 2003 worksheet to open at a specific cell
reference. Is this possible.? My knowledge of Excel is very limited so
please be explicit.

Thanks in advance.

--

Dave Peterson




  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default How to get Excel 2003 to open to specific cell refernece!

If the macro is in a module in your workbook/file it will go with the file and
other users can use it.


Gord

On 15 Jan 2007 15:02:59 -0800, wrote:

It is working fine on my computer. If I give the file to someone else
to use on their computer, will the macro transfer with the file so that
they can use it also?

24t42




wrote:
I want to thank both of you for your help. Excel and I don't get along
too well. I don't use it often enough to be familiar with it's inner
workings.

I am glad to report that it is now working each time I open the file.
It helps if you put the code in the correct spot.

No, this file is not for my personal use. It is a score sheet that will
be used by several people on differnet computers.

Thanks, again!

Judy


Gord Dibben wrote:
If just for your own computer...........................

Check out Help on Digital Signing and the the SelfCert utility which allows you
to sign your projects on your own computer only.

Self-cert digital signatures are not exportable as are paid-for ones from Thawte
and Versisign.

Go to StartProgramsMicrosoft OfficeOffice ToolsDigital Certificates and
build a selfcert from there.

When complete and your workbook is open go to VBEditor and ToolsDigital
SignatureChoose.

Select the one you just created and Ok your way out.

Save the workbook and re-open. Click "Yes" when asked about "trusted whatever".

You won't see the macro message again for that workbook.

You can use the signature for all your workbooks with macros.


Gord Dibben MS Excel MVP

On 15 Jan 2007 10:22:21 -0800,
wrote:

Problem #1 -fixed. My worksheet is not named sheet1. As soon as I
changed it, it worked.

Problem #2 - fixed. Captain Dum Dum here. I did not notice that it was
not saving as Excel workbook. As soon as I changed that, it worked.

Now, one more question. Now when I open the file, I get the security
warning about macros. Is there a way to turn this off or is it
something I must live with.

Thanks for all your help.

24t42




wrote:
Dave,

Thanks for the quick reply but I must be doing something wrong. I have
two problems.

First - I followed the link you provided and did as they suggested for
using someone's elses macros. I only have one worksheet in my Excel
file and want it to open to Cell D5. So I used -

Option Explicit
Sub Auto_Open()
Application.Goto Worksheets("sheet1").Range("D5"), scroll:=True
End Sub

When I returned to my spreadsheet and tried to run the macro with ALT +
F8. I get the error " subscript out of range."

Second, so I thought I would save the file and go back to it later.
When I tried to save it, I got the following message -

"The following features from you workbook will not be saved in the XML
spreadsheet - VB project. Do you want to continue saving as XML
spreadsheet? Yes or no?"

I have my macro security set to medium.

Thanks in advance for any help you can give me?


Dave Peterson wrote:
You can have a macro run each time the workbook opens.

Option Explicit
Sub Auto_Open()
application.goto worksheets("sheet9999").range("x777"), scroll:=true
end sub

Change the worksheet name and cell address to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

wrote:

I would like for my Excel 2003 worksheet to open at a specific cell
reference. Is this possible.? My knowledge of Excel is very limited so
please be explicit.

Thanks in advance.

--

Dave Peterson


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why with Excel Xp takes time to open and in 2003 fast? ErikG Excel Discussion (Misc queries) 0 June 22nd 06 08:22 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Excel 2003 Word Wrap Problem within cell Dan S. Excel Discussion (Misc queries) 1 October 17th 05 03:54 PM
How do I open a Quattro Pro 7.0 file in Excel 2003 cpatrick83 Excel Discussion (Misc queries) 0 August 22nd 05 09:41 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM


All times are GMT +1. The time now is 05:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"