Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Right Click Option Missing

I have a template that users have the option to right click in any cell in
column A after row 1 and select a custom menu option. For most users there
is no problem.

For one particular user the custom option doesn't appear in the list - the
default options do. I've checked for errors and stepped through the code and
it does execute the .Caption and the .OnAction code but with no result (and
no error codes generated). The users are on xl 2002 and 2003. This issue is
on 2002.

This template has gone out to about a hundred users; this is the only user
having this problem. I'm using Worksheet_BeforeRightClick on the sheet-level
object.

Any ideas?
--
MacGuy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Right Click Option Missing


Is this the only user on xl2000? can you post your entire option
assignment code?


--
Breakfast Guy
------------------------------------------------------------------------
Breakfast Guy's Profile: http://www.thecodecage.com/forumz/member.php?userid=5
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=6880

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Right Click Option Missing

The user is on xl 2002. Here's the code:

Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As
Boolean)

Dim mapGL As Object
For Each mapGL In Application.CommandBars("cell").Controls
If mapGL.Tag = "rpct" Then mapGL.Delete
Next mapGL
If Not Application.Intersect(Target, _
Range([a1].Offset(1, 0),
[a1].Offset(ActiveSheet.UsedRange.Rows.Count - 1, 0))) Is Nothing Then
With
Application.CommandBars("cell").Controls.Add(Type: =msoControlButton,
befo=5, temporary:=True)
.Caption = "REMOVE PAY CYCLE from TEMPLATE FEED"
.OnAction = "RemovePayCycle" 'runs this sub located in the
RemoveItem Module
.Tag = "rpct"
End With
End If

End Sub

--
MacGuy


"Breakfast Guy" wrote:


Is this the only user on xl2000? can you post your entire option
assignment code?


--
Breakfast Guy
------------------------------------------------------------------------
Breakfast Guy's Profile: http://www.thecodecage.com/forumz/member.php?userid=5
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=6880


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Right Click Option Missing


I see nothing wrong with the code as such you could make things a little
more generic: -If Not Application.Intersect(Target, _
Range([a1].Offset(1, 0),
[a1].Offset(ActiveSheet.UsedRange.Rows.Count - 1, 0))) Is Nothing Then-
could read:
-If Not Application.Intersect(Target, _
Range("A1").Offset(1, 0),
Range("A1").Offset(ActiveSheet.UsedRange.Rows.Coun t - 1, 0))) Is
Nothing Then-
if the code is in a worksheet module you could further qualify it by
using: -Me.Range("A1").OffSet(1,0)...etc-

You can find all the data you need on this subject he 'How to
customize menus and menu bars in Excel' (http://tinyurl.com/637bxz)


--
The Code Cage Team

Regards,
The Code Cage Team
www.thecodecage.com
------------------------------------------------------------------------
The Code Cage Team's Profile: http://www.thecodecage.com/forumz/member.php?userid=2
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=6880

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
trendline option missing jemelland Excel Worksheet Functions 2 April 5th 23 01:20 PM
Missing Excel option PJ Excel Discussion (Misc queries) 8 April 27th 10 09:04 AM
Missing Autofilter option !! anandmr65 Excel Discussion (Misc queries) 4 June 26th 06 09:10 PM
Define Name option missing?? Brip Excel Discussion (Misc queries) 8 November 16th 05 12:33 PM
Toolbars Missing, And option to Add Missing SmeetaG Excel Discussion (Misc queries) 3 October 19th 05 11:43 AM


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