Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Engin H.
 
Posts: n/a
Default disable right mouse click on a scatter graph?

hi everyone
i want to disable right mouse click on a scatter chart.
i need help
thanks a lot

Engin H.
  #2   Report Post  
Jon Peltier
 
Posts: n/a
Default

By default, a chart embedded in a protected worksheet is Locked. This
means it updates as the data updates, but the user can't change it.

If it's feasible, unlock the cells the user is allowed to change, then
protect the sheet.

In a protected chart sheet, the right click menu items are disabled.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Engin H. wrote:

hi everyone
i want to disable right mouse click on a scatter chart.
i need help
thanks a lot

Engin H.

  #3   Report Post  
Engin H.
 
Posts: n/a
Default

dear Jon
i am working on .Net environment, i tried before as you wrote below,
oChart.Protect("123", True, True, True)
bu it did not work, still all controls are enabled when i right click on chart
:(

"Jon Peltier" wrote:

By default, a chart embedded in a protected worksheet is Locked. This
means it updates as the data updates, but the user can't change it.

If it's feasible, unlock the cells the user is allowed to change, then
protect the sheet.

In a protected chart sheet, the right click menu items are disabled.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Engin H. wrote:

hi everyone
i want to disable right mouse click on a scatter chart.
i need help
thanks a lot

Engin H.


  #4   Report Post  
Jon Peltier
 
Posts: n/a
Default

In Excel VBA, these two procedures are exactly what is needed to protect
a chart sheet:

Sub ProtectChart()
Dim oChart As Chart
Set oChart = ActiveChart
oChart.Protect "abc", True, True, True, True
End Sub

Sub UnProtectChart()
Dim oChart As Chart
Set oChart = ActiveChart
oChart.Unprotect "abc"
End Sub

The code is different for an embedded chart, because such a chart cannot
be protected, only locked, while its parent sheet can be protected.

It's hard to see the context of your command, with only that command
posted. On the other hand, I am not experienced in .Net, so the context
may not help.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Engin H. wrote:

dear Jon
i am working on .Net environment, i tried before as you wrote below,
oChart.Protect("123", True, True, True)
bu it did not work, still all controls are enabled when i right click on chart
:(

"Jon Peltier" wrote:


By default, a chart embedded in a protected worksheet is Locked. This
means it updates as the data updates, but the user can't change it.

If it's feasible, unlock the cells the user is allowed to change, then
protect the sheet.

In a protected chart sheet, the right click menu items are disabled.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Engin H. wrote:


hi everyone
i want to disable right mouse click on a scatter chart.
i need help
thanks a lot

Engin H.


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
Can I grab graph coordinates in Excel via the mouse with VB? Chris Manning Charts and Charting in Excel 6 August 22nd 05 02:38 AM
How do u set the PLOT AREA to nearest mm in Excel Scatter Graph . fh Charts and Charting in Excel 0 June 3rd 05 01:07 PM
Each Click of the Mouse D.Parker Excel Discussion (Misc queries) 13 April 28th 05 11:24 PM
creating a directed graph from XY scatter Luke Spar UTAFortWorth Charts and Charting in Excel 11 January 25th 05 04:24 AM
Scatter Graph - Data Label Problems TBD Charts and Charting in Excel 2 January 16th 05 05:08 PM


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

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"