LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Zoo Zoo is offline
external usenet poster
 
Posts: 40
Default Looking for a MSDN article.

Hi all,

The code written below works well on my computer with Excel 2000 SP1.
It does not work on the same machine with Excel 2000 SP3 (Excel.exe file
version:9.0.0.6627)
It works well on the same machine with Excel 2000 SP3 sercurity
update(Excel.exe file version:9.0.0.8216).

And I'm looking for the MSDN article concerning this in order to report the
phenomenon to my client.
In http://support.microsoft.com/kb/830349/ , there's no such article.
Does anyone know about that?

'-----This code adds a menu on the worksheet menu bar.
'And when you click [Test]-[DisplayTestMessage] ,
''OK' is displayed unless your Excel is Excel 2000 SP3 early version



Public Const sMenuBarName As String = "Test"

Sub AddMenu()

Set cstMenu = Application.CommandBars("Worksheet Menu
Bar").Controls.Add(Type:=msoControlPopup, temporary:=True)
cstMenu.Caption = sMenuBarName

With cstMenu
Set cstChildMenu = .Controls.Add(Type:=msoControlButton)
cstChildMenu.Visible = True
cstChildMenu.Caption = "DisplayTestMessage"
cstChildMenu.OnAction = "'Test ""OK""'"
End With
End Sub

Public Sub Test(ByVal sStr as String)
MsgBox(sStr)
End Sub

Sub DeleteMenu()
Application.CommandBars("Worksheet Menu Bar").Controls(sMenuBarName).Delete
End Sub

 
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
MSDN article on Excel Limitations in Pivot Tables for Multiple consolidation ranges [email protected] Excel Worksheet Functions 0 January 18th 07 10:24 AM
MSDN should include a VBA reference. spamania Excel Programming 4 December 30th 05 08:28 AM
MSDN Help Library bandy2000 Excel Discussion (Misc queries) 2 April 1st 05 02:43 AM
MSDN Library Dave Excel Programming 2 February 2nd 04 02:36 PM
A line from MSDN Library Syed Zeeshan Haider[_4_] Excel Programming 1 December 4th 03 08:59 PM


All times are GMT +1. The time now is 06:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"