ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Right Click (https://www.excelbanter.com/excel-programming/377963-right-click.html)

Ronbo

Right Click
 
What is the code to delete the right click on objects and charts like
"Application.CommandBars("Cell").Enabled = False" removes the right click on
cells?

Thanks for any help. It is always appreciated.

JLGWhiz

Right Click
 
Do you mean Shapes? There are many types of objects.

"Ronbo" wrote:

What is the code to delete the right click on objects and charts like
"Application.CommandBars("Cell").Enabled = False" removes the right click on
cells?

Thanks for any help. It is always appreciated.


Ronbo

Right Click
 
Yes - Autoshapes, rectangles, oval etc.

"JLGWhiz" wrote:

Do you mean Shapes? There are many types of objects.

"Ronbo" wrote:

What is the code to delete the right click on objects and charts like
"Application.CommandBars("Cell").Enabled = False" removes the right click on
cells?

Thanks for any help. It is always appreciated.


Chip Pearson

Right Click
 
For shapes, it would be

Application.CommandBars("Shapes").Enabled = False



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"Ronbo" wrote in message
...
What is the code to delete the right click on objects and charts like
"Application.CommandBars("Cell").Enabled = False" removes the right click
on
cells?

Thanks for any help. It is always appreciated.




Ronbo

Right Click
 
Thanks Chip - Shapes was easy enough. I was hoping Charts would be that easy,
but it does not work with chart or charts.

I want to remove the two right clicks menus on a chart 1) format plot area
menu 2) format chart area menu.

Thanks,
Ronbo


"Chip Pearson" wrote:

For shapes, it would be

Application.CommandBars("Shapes").Enabled = False



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"Ronbo" wrote in message
...
What is the code to delete the right click on objects and charts like
"Application.CommandBars("Cell").Enabled = False" removes the right click
on
cells?

Thanks for any help. It is always appreciated.





zz

Right Click
 
try this

Application.CommandBars("charting").Enabled = False


--
hope this works!
---
zz [MX]
cuasi-musico,semi-poeta y loco

"Ronbo" wrote in message
...
Thanks Chip - Shapes was easy enough. I was hoping Charts would be that
easy,
but it does not work with chart or charts.

I want to remove the two right clicks menus on a chart 1) format plot area
menu 2) format chart area menu.

Thanks,
Ronbo


"Chip Pearson" wrote:

For shapes, it would be

Application.CommandBars("Shapes").Enabled = False



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"Ronbo" wrote in message
...
What is the code to delete the right click on objects and charts like
"Application.CommandBars("Cell").Enabled = False" removes the right
click
on
cells?

Thanks for any help. It is always appreciated.








All times are GMT +1. The time now is 09:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com