Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Open Workbook to Specific Cell

Rick and Gord,
Thanks for your feedback; my issue is now solved. I had the correct coding
as required however after debugging a larger macro that actually does the
OPEN, I later saw that I had a "Range(actvCell).select" (where actvCell was
defined as the active cell in the issuing macro). With that, it was of
course overriding my "Private Sub Workbook_Open()" routine.

Frustrated, but happy!


"Rick Rothstein" wrote:

What happens if you qualify the Range command (you only need one of those as
they both do the same thing) with Worksheets("Sheet1") like you did for the
Protect statement line?

Worksheets("Sheet1").Range("B3").Activate

--
Rick (MVP - Excel)



"GEdwards" wrote in message
...
Added info: Within my 2nd WB I have the following Sub upon opening, but it
does not appear to be totally working. It does lock all worksheets as
required but cell B3 does not become the active cell;

Private Sub Workbook_Open()
Worksheets("Sheet1").Protect Password:="X9j10K32"

Range("B3").Activate
Range("B3").Select
End Sub


"GEdwards" wrote:

I do not understand why Excel works this way, and would like help please
to
understand it, and how I can work around it. I am using Excel 2003.

I have 2 workbooks. My test workbook (to understand how this is working)
has a macro behind a button that calls... Workbooks.Open
Filename:="E:\Address and Telephone Book.xls".

Now this works fine except that when the "Address and Telephone Book.xls"
is
opened, the active cell happens to be the last active cell location from
the
last time the "Address and Telephone Book.xls" was saved. This is very
annoying if I am in a workbook that has 1000+ rows and I attempt to open
another workbook frim it, and it opens at cell location F1003, but the
newly
opened workbook has rows 1 thru 50 have actual data, then I have to
scroll up
to where I want my active cell to be.

Can someone please explain why this happens and how I can get my second
workbook to open in a specific cell, such as A1 or S35?

.

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
open workbook to specific sheet Mr E[_2_] Excel Worksheet Functions 1 April 9th 10 06:53 PM
Open specific workbook Li Jianyong Excel Programming 3 January 9th 09 05:57 PM
Open a new workbook with a specific name Jepane Excel Discussion (Misc queries) 3 June 21st 07 04:09 PM
Open a specific workbook...find value from other open workbook and then insert cells values in cell next to it. [email protected] Excel Programming 1 May 13th 07 01:46 PM
at startup, i would like a specific workbook to open. Dave o Setting up and Configuration of Excel 1 February 21st 06 10:19 AM


All times are GMT +1. The time now is 05:37 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"