Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default Activate Questions

I have two questions:
I use a macro to find a row, and then use a hyperlink to go to the sheet I
want.
However, the sheet does not "Activate". I see the right sheet, but at the
bottom, the proper sheet is not highlighted. What do I need to add to
"activate" the sheet the hyperlink took me to?

In the same program, I call a macro in my consolidated workbook from the
workbook the data is in. The macro ends on the consolidated workbook, but the
display at the bottom is still showing the data workbook as being
highlighted. I want the consolidated workbook program to be highlighted.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Activate Questions

David,
Here is some code that I used on one of my projects. All three subs were
requred on each sheet that I wanted to use this userform. See if this helps
you out.

Private Sub Site_Data_Btn_Click()
Dim ActiveSheet As Worksheet

Worksheets("Attachment A").Activate
Load Site_Data_Frm
Site_Data_Frm.Show
End Sub
______________________________
Private Sub Worksheet_Activate()
Load Site_Data_Frm
End Sub
______________________________
Private Sub Worksheet_Deactivate()
Unload Site_Data_Frm
End Sub
_______________________________



"David" wrote:

I have two questions:
I use a macro to find a row, and then use a hyperlink to go to the sheet I
want.
However, the sheet does not "Activate". I see the right sheet, but at the
bottom, the proper sheet is not highlighted. What do I need to add to
"activate" the sheet the hyperlink took me to?

In the same program, I call a macro in my consolidated workbook from the
workbook the data is in. The macro ends on the consolidated workbook, but the
display at the bottom is still showing the data workbook as being
highlighted. I want the consolidated workbook program to be highlighted.

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default Activate Questions

I got the first issue worked out...now just looking how to activate the
workbook so I don't have to click the programs in the tray at the bottom to
switch.

"David" wrote:

I have two questions:
I use a macro to find a row, and then use a hyperlink to go to the sheet I
want.
However, the sheet does not "Activate". I see the right sheet, but at the
bottom, the proper sheet is not highlighted. What do I need to add to
"activate" the sheet the hyperlink took me to?

In the same program, I call a macro in my consolidated workbook from the
workbook the data is in. The macro ends on the consolidated workbook, but the
display at the bottom is still showing the data workbook as being
highlighted. I want the consolidated workbook program to be highlighted.

Thanks!

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
.Activate vs. .Select in VBA Dave F Excel Discussion (Misc queries) 1 January 24th 07 03:41 PM
Activate the top of sheet AD108 Excel Worksheet Functions 2 July 30th 06 05:27 PM
When to Activate? Antonio Excel Discussion (Misc queries) 5 June 8th 06 12:26 AM
De-activate a chart daniel chen Excel Discussion (Misc queries) 6 April 24th 05 05:01 AM
Activate Cell Brett Excel Discussion (Misc queries) 2 March 29th 05 06:20 PM


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

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"