Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default ActiveCell or ActiveSheet

I have a Workbook with 10 sheets. Each has approximately 8 or 10 Macros +
Links. When the Workbook is opened, cell A1 is selected. Each of the macros
listed on the left side opens an existing tab or worksheet, which is part of
the Workbook. Each time a new sheet is opened, cell A1 is selected.

Once in awhile (too frequently) when one of the macros or external links is
clicked on any of the pages, nothing happens. Sometimes, the second click
activates the Macro, and sometimes a blank cell has to be selected 1st and
then the macros will work.

I think I need a line of code either at the beginning or end of each Macro
that will somehow make the macro recoginize that the sheet displayed is the
activesheet, so that the click on the macro always works.

Any ideas everyone ?

Matt@Launchnet

--
Please take a look at www.openoursite.com Click on: "Keywords" and then
Click on "Matt's Story" and if you are a man, you should be very happy that
you read my story. God Bless for everyones help.

Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default ActiveCell or ActiveSheet

I think I found a solution last night. I was using code:

Range("a1").Select

Last night I changed it to:

Application.Goto Reference:="R1C1"

Seems OK, but I want to test some more.

Thanks
Matt@Launchnet

Launchnet wrote:
I have a Workbook with 10 sheets. Each has approximately 8 or 10 Macros +
Links. When the Workbook is opened, cell A1 is selected. Each of the macros
listed on the left side opens an existing tab or worksheet, which is part of
the Workbook. Each time a new sheet is opened, cell A1 is selected.

Once in awhile (too frequently) when one of the macros or external links is
clicked on any of the pages, nothing happens. Sometimes, the second click
activates the Macro, and sometimes a blank cell has to be selected 1st and
then the macros will work.

I think I need a line of code either at the beginning or end of each Macro
that will somehow make the macro recoginize that the sheet displayed is the
activesheet, so that the click on the macro always works.

Any ideas everyone ?

Matt@Launchnet


--
Please take a look at www.openoursite.com Click on: "Keywords" and then
Click on "Matt's Story" and if you are a man, you should be very happy that
you read my story. God Bless for everyones help.

Message posted via http://www.officekb.com

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
How do I name a picture as I paste it from VBA? (ActiveSheet.Past. Leitey Excel Discussion (Misc queries) 4 April 5th 23 01:17 PM
ActiveSheet.Paste - Error help? dk_ Excel Discussion (Misc queries) 4 November 20th 06 12:27 AM
activesheet.tab.colorindex not working when workbook shared Martin Appleton Excel Discussion (Misc queries) 0 July 21st 06 08:45 AM
Working with Macros-Activesheet.Paste lunar1085 Excel Discussion (Misc queries) 0 February 3rd 06 04:13 PM
Difference between Activesheet.unprotect Dennis Excel Discussion (Misc queries) 2 August 24th 05 01:27 PM


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