LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default X-Platform Problem

X-Platform Problem



I have developed an application in



Microsoft Windows XP Professional

Excel 2002 (10.6501.6626) SP3



That works on my machine and 3 others in the office



However, when I try it on a Mac

MAC OS 10.3.4

Excel X for Mac

I can not make the userform stay visible.



The userform appears and then disappears off the screen straightaway and it
gives no error. I am activating the userform from a toolbar button. Code
below.



Any suggestions or hints or places to find more information about X platform
issues would be greatly appreciated



Regards



David



--------------------------









Sub CreateToolbar()

Dim MDControl As CommandBar



'Get rid of any toolbars titled "MD_Control"

On Error Resume Next

CommandBars("MDControl").Delete

On Error GoTo 0



Dim DB As CommandBar



Dim i As Integer



On Error Resume Next

Set MDControl = Application.CommandBars("MDControl")

On Error GoTo 0

If DB Is Nothing Then

Set MDControl = Application.CommandBars.Add(Name:="MDControl")



For i = 1 To 3

MDControl.Controls.Add Type:=msoControlButton

Next i

End If

With MDControl.Controls(1)

.OnAction = "Open_Area_Selection"

.FaceId = 65

.TooltipText = "Analysis"

End With

With MDControl.Controls(2)

.OnAction = "Open_Databases"

.FaceId = 581

.TooltipText = "Edit Databases"

End With



With MDControl.Controls(3)

.OnAction = "Open_Results"

.FaceId = 3690 'face IDs 1935(info) 1953(analysis)163 (edit)

.TooltipText = "Open Results"

End With

MDControl.Enabled = True

MDControl.Visible = True

MDControl.Position = msoBarTop



End Sub



--------------



Sub Open_Area_Selection()

'Open the userform

Area_Selection.Show



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
Saved Files Not Opening Cross-Platform MEAD5432 Excel Discussion (Misc queries) 0 February 7th 08 11:40 PM
Cross platform worksheet issues Wallace, William Excel Worksheet Functions 1 September 21st 05 05:31 PM
Excel platform Kathy Excel Programming 0 May 16th 04 09:32 AM
Excel as a development Platform? pros and cons? Freddy[_4_] Excel Programming 3 November 17th 03 10:48 AM
VBA Macros NOT cross platform? Mike Laufer Excel Programming 3 October 14th 03 12:42 PM


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