LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Highlighting a selection!

Hi all!

Thanks alot Bob and I tried the following as suggsted, to have a chec
mark alongside to indicate it button state.

I,.e, I developed a Vtec menu with sub menus within it and the submenu
were linked to toolbars to which macros are assigned to.

I have assigned macros to toolbars. In one of those macros, I added th
following assuming that the selected toolbar will be highlighted. Fo
eg, one of the toolbars named as 'static' connected to sub-men
'Analysis type' from the 'Vtec ' main menu will have to be highlighte
when the user clicks the same.

==========================================
With Application.CommandBars.ActionControl

If .State = msoButtonUp Then
ActiveWorkbook.Worksheets(.Caption).Visible = xlSheetHidden
.State = msoButtonDown
Else
ActiveWorkbook.Worksheets(.Caption).Visible = xlSheetVisible
.State = msoButtonUp
End If
End With

===========================================

But am getting an error message that says 'subscript error' and in th
debugging mode, I could see that the error was happening at th
following line:

"ActiveWorkbook.Worksheets(.Caption).Visible = xlSheetHidden
.State = msoButtonDown"

I would appreciate your help guys.
Thanks a lot,

Arun.

Vtec corp

--
Message posted from http://www.ExcelForum.com

 
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
Excel 2007: Selection windows slows down when highlighting cells Scott Excel Discussion (Misc queries) 2 February 12th 10 07:54 PM
Limiting selection in a cell AND linking that selection to a list Lisa Excel Discussion (Misc queries) 1 July 28th 09 05:00 PM
Copy Selection - Transpose Selection - Delete Selection Uninvisible Excel Discussion (Misc queries) 2 October 23rd 07 04:18 PM
Row selection/highlighting queenb Excel Discussion (Misc queries) 3 June 7th 07 07:53 PM
Highlighting blanks via GO TO SPECIAL is not highlighting blank cells - HELP, I'm totally stuck. Jamie Furlong Excel Discussion (Misc queries) 6 August 28th 05 09:27 PM


All times are GMT +1. The time now is 06:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"