Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Changing the focus in an inactive sheet.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AVR - 31 Jan 2007 19:39 GMT
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.
Tom Ogilvy - 31 Jan 2007 19:46 GMT
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

Signature

Regards,
Tom Ogilvy

> 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.
merjet - 31 Jan 2007 22:24 GMT
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
merjet - 31 Jan 2007 22:28 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.