Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2007 Application.ShowMenuFloaties Bug

Thought I'd share this with the group as it might help someone ...

The ShowMenuFloaties property changes whether the little floating mini
formatting toolbar appears above the right-click menu. True =
displayed, False = hidden ... as you'd expect!

Although this property is writeable, when you write to it, the results
seem to be the opposite of what you would normally expect.

For example:

Sub MenuFloaties()
Application.ShowMenuFloaties = True
MsgBox "ShowMenuFloaties = " & Application.ShowMenuFloaties
End Sub

This actually changes the property to False (yes, this isn't a typo)!

And ...

Sub MenuFloaties()
Application.ShowMenuFloaties = False
MsgBox "ShowMenuFloaties = " & Application.ShowMenuFloaties
End Sub

This changes the property to True (yes, this isn't a typo either)!

So ... you need to set the value of the property to the opposite of
what you actually want it to be.


Even more strange, the macro below toggles the property's value!

Sub MenuFloaties()
Application.ShowMenuFloaties = Application.ShowMenuFloaties
MsgBox "ShowMenuFloaties = " & Application.ShowMenuFloaties
End Sub


Hope this helps someone - it took me a while to figure this out!

Same result occurs for ShowSelectionFloaties.

Maybe the developers were originally intending to call these
properties "HideMenuFloaties" and "HideSelectionFloaties"?

Regards

Jeff Robson
www.accessanalytic.com.au
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
Exporting to Excel 2007 format from asp.net application Sameer1982 Excel Discussion (Misc queries) 0 January 29th 10 06:03 AM
application.filesearch error in excel 2007 Ramesh Excel Programming 3 February 11th 08 11:54 AM
Application.Quit in Excel 2007 Paul D.[_2_] Excel Programming 4 June 1st 07 05:49 AM
Opening Excel 2007 application Mike Excel Discussion (Misc queries) 2 May 11th 07 02:36 PM
Automating An Excel 2007 Application using VB Brad Wylie Excel Programming 2 January 27th 07 10:21 PM


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