Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jc jc is offline
external usenet poster
 
Posts: 164
Default Worbook.Activate Activates sht 1 even though this was'nt active sh

I have a workbook created from a template.
I has one event subroutine Workbook_BeforeClose
In my code I activate the workbook

Workbook.activate

Even though another sheet was previously active this line of code activates
the workbook and makes Sheet(1) the active worksheet.

This is not the behavior with other workbooks. The previously active sheet
stays is activated.

Is there some setting causing this?

--
JC
  #2   Report Post  
Posted to microsoft.public.excel.programming
jc jc is offline
external usenet poster
 
Posts: 164
Default Worbook.Activate Activates sht 1 even though this was'nt active sh

I have found that setting the window.caption to something new causes this
problem.

I started a new thread with this detail included.
--
JC


"jc" wrote:

I have a workbook created from a template.
I has one event subroutine Workbook_BeforeClose
In my code I activate the workbook

Workbook.activate

Even though another sheet was previously active this line of code activates
the workbook and makes Sheet(1) the active worksheet.

This is not the behavior with other workbooks. The previously active sheet
stays is activated.

Is there some setting causing this?

--
JC

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
when I activate a cell i change color of active row & header from HITMAN2 Excel Worksheet Functions 2 April 12th 08 06:33 PM
VBA Code Activates a workbook only sometimes GusEvans Excel Programming 3 March 21st 06 04:27 AM
Rectangle that activates a macro No Name Excel Programming 3 January 7th 05 06:49 PM
VB activates unwanted function Urban Excel Programming 3 July 6th 04 06:59 PM
Solver activates other worksheets - why? Ken Dahlberg Excel Programming 1 September 12th 03 06:05 PM


All times are GMT +1. The time now is 07:38 AM.

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

About Us

"It's about Microsoft Excel"