Fine Tuning Toolbars
|
Hey Everyone:
So I'm fine tuning this wonderful Sales oriented application (about 2 days away from the testing phase) and I'm getting annoyed by a tiny problem-- the starting position of my Custom Toolbar...
See, I get Excel to loose all of the tool bars and the main menu bar and leave just my own custom jobbie... which works out fine...
Here-- I have an _Open event that calls this:
Code:
Sub HideBars()
Dim ToolBrs As CommandBar
Dim ToolBarNum As Integer
Dim ToolSheet As Worksheet
Workbooks("Contact Manager.xls").Activate
Sheets("TBSheet").Visible = True
Set ToolSheet = Sheets("TBSheet")
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Sheets("TBSheet").Visible = True
ToolSheet.Unprotect "7477"
'This will hide all visible toolbars except
'My Custom made toolbar called "Contact Manager"
ToolBarNum = 0
For Each ToolBrs In Application.CommandBars
If ToolBrs.Type = msoBarTypeNormal Then
If ToolBrs.Name = "Contact Manager" Then
GoTo NextOne
Else
If ToolBrs.Visible Then
ToolBarNum = ToolBarNum + 1
ToolBrs.Visible = False
ToolSheet.Cells(ToolBarNum, 1) = ToolBrs.Name
End If
End If
End If
NextOne:
Next ToolBrs
With Application
.DisplayFormulaBar = False
.DisplayStatusBar = False
.ShowWindowsInTaskbar = False
End With
CommandBars("Worksheet Menu Bar").Enabled = False
Application.DisplayAlerts = True
Application.ScreenUpdating = True
Sheets("TBSheet").Visible = False
End Sub
Now the thing is, depending on where my Custom Toolbar was hanging out last determines where it hangs out when I open it again-- and lord knows where it'll wannna show up with each user.
So how can I position it to hang out at the Top Left Corner of the Window?
Just the Syntax would help enormously...
Thanks everyone-- this application would have never made it this far without you all...
--Dodd
|
__________________
"Princekimmer Skimple... Primable Skimster... I, I found something!!!!"
--Ralph Wiggum
|