I wouldn't put it a specific workbook. The point of the refresh button is so
that you can change workbooks and click that button and use it there. (Or
add/delete worksheets and refresh the list.)
Personally, I liked to make that toolbar appear in the worksheet. By floating
it over the worksheet, the user has a better chance of noticing it. They can
always reposition it where they want--either by dragging it or by double
clicking on the title bar.
But you can dock it if you add a couple of lines of code:
With cb
.Visible = True
.RowIndex = msoBarRowLast '<-- Added
.Position = msoBarTop '<-- Added
========
I'd keep this code separate from every other workbook, too. I'd put it in a
dedicated workbook and save it as an addin. Then just load it on demand, or put
it in my XLStart folder, or use Tools|Addins to install it.
maijiuli wrote:
>
> Sire, is there a way to change your Navigation toolbar to live only in a
> specific file.
>
> I've been playing around with it for a couple hours now and it works great
> but when I open other files the Navigation Toolbar always pops up in the
> floating method.
>
> To share this with my company I need the toolbar to either live in only one
> file so it does not disrupt others files.
>
> OR
>
> If we can find a way to change the macro so it is not in the float position
> on open. Maybe if the macro can be changed to live with all the other
> toolbars on top when a file is open then this would probably be ok. At least
> this way it is not in the way to the other users who want to use this addin.
>
> Sorry if I'm asking for too much but it's too good to let go,
>
> --
> Thank You!
>
> "Dave Peterson" wrote:
>
> > Maybe you could use something like:
> > http://contextures.com/xlToolbar01.html
> >
> > maijiuli wrote:
> > >
> > > Hello,
> > >
> > > I'm interested in using a combo box and command button from the control
> > > toolbar. The combo box will contain the names of all the worksheets in this
> > > file. This is done with a dynamic named range. The command button will act
> > > like a "submit" button to take the user to the desired worksheet selected
> > > from the combo box.
> > >
> > > The names of the worksheets are like: Aetna, Blue Shield, Pacificare, etc.
> > > Is there a way to do this?
> > >
> > > Thanks in advance,
> > >
> > > MJ
> > > --
> > > Thank You!
> >
> > --
> >
> > Dave Peterson
> >
--
Dave Peterson