PC Review


Reply
Thread Tools Rate Thread

Changing the focus in an inactive sheet.

 
 
=?Utf-8?B?QVZS?=
Guest
Posts: n/a
 
      31st Jan 2007
I am working in a workbook with multiple sheets. A change event in sheet A
triggers some manipulations of data and ranges in sheet B. It also changes
the cell selection the next time sheet B is activated. Is there a way to set
the selected cell for the next opening of sheet B, without having it reset
every time sheet B is activated. Ideally, I would like to do it without
sheet B having to "flash" open to the user.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      31st Jan 2007
Sub SetActiveCell()
application.ScreenUpdating = False
set sh = Activesheet
With Worksheets("Sheet B")
.Select
.Range("F9").Select
End with
sh.Activate
Application.ScreenUpdating = True
End sub

--
Regards,
Tom Ogilvy




"AVR" wrote:

> I am working in a workbook with multiple sheets. A change event in sheet A
> triggers some manipulations of data and ranges in sheet B. It also changes
> the cell selection the next time sheet B is activated. Is there a way to set
> the selected cell for the next opening of sheet B, without having it reset
> every time sheet B is activated. Ideally, I would like to do it without
> sheet B having to "flash" open to the user.

 
Reply With Quote
 
merjet
Guest
Posts: n/a
 
      31st Jan 2007
Is the change event of Sheet A due to VBA code? If yes, modify the
code to capture Sheet B's ActiveCell address at the start and reselect
said ActiveCell at the end.

Hth,
Merjet


 
Reply With Quote
 
merjet
Guest
Posts: n/a
 
      31st Jan 2007
Is the change event of Sheet A due to VBA code? If yes, modify the
code to capture Sheet B's ActiveCell address at the start and reselect
said ActiveCell at the end.

Hth,
Merjet


 
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
Getting keypress when form is inactive (no focus) kimiraikkonen Microsoft VB .NET 6 3rd Jan 2008 09:15 PM
Read value in from inactive sheet through VBA Mr. Smith Microsoft Excel Discussion 3 9th Oct 2006 01:09 PM
Calling an inactive sheet... RJH Microsoft Excel Programming 1 17th Jul 2006 04:23 AM
HELP!! Unhide Sheet with Macro and focus on other sheet saraqpost@yahoo.com Microsoft Excel Misc 2 23rd May 2006 07:17 PM
Switch focus to inactive userform GrahamUNC Microsoft Excel Programming 2 15th Apr 2005 09:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:28 PM.