Dear All,
When I right-click on the excel sheet, I get the menu as the following picture:
How I write the code to hide the sub popup menu (1)?
I use Excel 2007.
Tks,
LVD
Dear All,
When I right-click on the excel sheet, I get the menu as the following picture:
How I write the code to hide the sub popup menu (1)?
I use Excel 2007.
Tks,
LVD
Last edited by levanduyet; 02-25-2009 at 12:39 AM.
Greetings :-)
Say, I hate to ask a question when I have absolutely no help to give, as I believe you must have 2007 (and I do not).
Anyways, if not a bother, how did you get that style (the tore edges and all) of screenshot?
Mark
If it's for a certain worksheet, change the beforerightclick-event of the worksheet.
If it's for all the worksheets in the workbook, use thisPrivate Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean) Cancel = True End Sub
CharlizePrivate Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, _ ByVal Target As Range, Cancel As Boolean) Cancel = True End Sub
Last edited by Aussiebear; 04-08-2023 at 12:45 PM. Reason: Adjusted the code tags
I think he wants to hide just the formatting task pane.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Dear CharLize,
I just want to hide the popup menu 1. Pls see the picture. (not the normal popup menu like in Excel 2003). The popup menu that I want to hide is the popup menu regarding font, font size, aligment,...
Tks,
LVD
Hello Duyet,
I don't use XL 12 often so don't have an answer for you. However, this link may help.
Regards
Thanks Digita,Originally Posted by Digita
The link that you given to me, it discuss about difference object.
Anyway, thank you.
LVD
I believe that the code you're after is:
In my tests here, though, it doesn't actually do anything. In fact, I still get the mini toolbar even after going into Office-->Excel Options-->Popular and un-checking "Show Mini Toolbar on Selection"Application.ShowMenuFloaties = False Application.ShowSelectionFloaties =False
Hope it works on yours,
Last edited by Aussiebear; 04-08-2023 at 12:46 PM. Reason: Adjusted the code tags
Ken Puls, CMA - Microsoft MVP (Excel)
I hate it when my computer does what I tell it to, and not what I want it to.
Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar
This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!
Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!
Doesn't do anything for me either Ken.
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
Malcolm, do the manual steps to disable it work for you?
Ken Puls, CMA - Microsoft MVP (Excel)
I hate it when my computer does what I tell it to, and not what I want it to.
Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar
This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!
Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!
No,
I thought mini toolbar would be the way to go, but I couldn't see what it did (or was meant to do)
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
It's weird. The steps in the UI that you can do manually do turn off what I believe are the "selection floaties" I can actually see the difference there, although it's more obvious in Word than Excel. I would have expected that the "menu floaties" would have hit the menus. I'm wondering if there is a bug there, or it just something different that I'm not seeing.
Ken Puls, CMA - Microsoft MVP (Excel)
I hate it when my computer does what I tell it to, and not what I want it to.
Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar
This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!
Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!
Oh, this is bizarre... Ron de Bruin worked it out:
Sounds to me like someone messed that up, but it works!Application.ShowMenuFloaties = True
Last edited by Aussiebear; 04-08-2023 at 12:47 PM. Reason: Adjusted the code tags
Ken Puls, CMA - Microsoft MVP (Excel)
I hate it when my computer does what I tell it to, and not what I want it to.
Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar
This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!
Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!
Who would have thunk it?
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'