LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Help on Add-in for switching between sheets

Raypayette,

Have you tested this for any workbook, and how? I made something like
this but didn't work, so I built an addin that now works ok. If yours
works well can you send me a copy?

Besides, the macro seems only switch between two sheets that you
already know their names (though can be modified easily).

I realezed I can't use Tab. Thank you.

raypayette wrote:
Here is a macro that does the job:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 7/29/2006 by Raymond Payette
'
' Keyboard Shortcut: Ctrl+t
'
If ActiveSheet.Name = "Sheet1" Then
Sheets("Sheet2").Select
Else
Sheets("Sheet1").Select
End If
End Sub

You cannot have Tab as a key, so I used T. This has to be set using
Record macro.

Save as type must be "Microsoft Office Excel Add-In" and it will make
an *.xla file that can then be distributed.


--
raypayette


------------------------------------------------------------------------
raypayette's Profile: http://www.excelforum.com/member.php...o&userid=29569
View this thread: http://www.excelforum.com/showthread...hreadid=559448


 
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
shortcut key for switching sheets wb198 Excel Discussion (Misc queries) 2 February 1st 08 05:34 PM
switching between sheets using the keyboard amirasherif Excel Discussion (Misc queries) 3 January 15th 08 03:14 PM
Controlling switching to other sheets Gordon Smith \(eMVP\) Excel Programming 5 June 15th 06 07:06 AM
Switching between sheets in same window... Kojones Excel Discussion (Misc queries) 1 July 16th 05 10:16 PM
Switching Sheets RogeR Excel Programming 1 June 10th 04 02:36 AM


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