PC Review


Reply
Thread Tools Rate Thread

Create macro to load custom toolbar

 
 
Jose Ruben Gonzalez-Baird
Guest
Posts: n/a
 
      27th Dec 2007
I want to create some kind of macro to load a custom toolbar that I've
created, so that when any other user opens the file from any other location
on our network, the toolbar will load. The custom toolbar is really just
using the Refresh data commands common to the External Data toolbar.

Is there a simple way of doing this that won't require extensive coding?
Would each user need to have an External Data add-in installed on their
machine? Would it be possible for the macro to check to see if the external
data add-in is installed, and if it wasn't, then install, and then load the
custom toolbar?

Thanks for any and all responses. J Ruben
 
Reply With Quote
 
 
 
 
Jose Ruben Gonzalez-Baird
Guest
Posts: n/a
 
      27th Dec 2007
I was looking for an "External Data" Add-in from the list of available
add-ins, and didn't see one. Does this mean that the external data commonds
are available to all Excel versions 2000 and higher? If so, this would
eliminate the need to load any kind of add-in upon file start-up. Thanks, J
Ruben

"Jose Ruben Gonzalez-Baird" wrote:

> I want to create some kind of macro to load a custom toolbar that I've
> created, so that when any other user opens the file from any other location
> on our network, the toolbar will load. The custom toolbar is really just
> using the Refresh data commands common to the External Data toolbar.
>
> Is there a simple way of doing this that won't require extensive coding?
> Would each user need to have an External Data add-in installed on their
> machine? Would it be possible for the macro to check to see if the external
> data add-in is installed, and if it wasn't, then install, and then load the
> custom toolbar?
>
> Thanks for any and all responses. J Ruben

 
Reply With Quote
 
FSt1
Guest
Posts: n/a
 
      27th Dec 2007
hi.
there is one in 2000 and 2003.
Application.CommandBars("External Data").Visible = True
or use the name of your custom toolbar instead of external data.
You can put this in a workbook open module to load it each time.
then remove it in the before close event.
or just leave in visible all the time.

Regards
FSt1
"Jose Ruben Gonzalez-Baird" wrote:

> I was looking for an "External Data" Add-in from the list of available
> add-ins, and didn't see one. Does this mean that the external data commonds
> are available to all Excel versions 2000 and higher? If so, this would
> eliminate the need to load any kind of add-in upon file start-up. Thanks, J
> Ruben
>
> "Jose Ruben Gonzalez-Baird" wrote:
>
> > I want to create some kind of macro to load a custom toolbar that I've
> > created, so that when any other user opens the file from any other location
> > on our network, the toolbar will load. The custom toolbar is really just
> > using the Refresh data commands common to the External Data toolbar.
> >
> > Is there a simple way of doing this that won't require extensive coding?
> > Would each user need to have an External Data add-in installed on their
> > machine? Would it be possible for the macro to check to see if the external
> > data add-in is installed, and if it wasn't, then install, and then load the
> > custom toolbar?
> >
> > Thanks for any and all responses. J Ruben

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      27th Dec 2007
Data>Import External Data.............see options for obtaining data.

After data has been downloaded...........Data>Refresh Data


Gord Dibben MS Excel MVP

On Thu, 27 Dec 2007 13:16:01 -0800, Jose Ruben Gonzalez-Baird
<(E-Mail Removed)> wrote:

>I was looking for an "External Data" Add-in from the list of available
>add-ins, and didn't see one. Does this mean that the external data commonds
>are available to all Excel versions 2000 and higher? If so, this would
>eliminate the need to load any kind of add-in upon file start-up. Thanks, J
>Ruben
>
>"Jose Ruben Gonzalez-Baird" wrote:
>
>> I want to create some kind of macro to load a custom toolbar that I've
>> created, so that when any other user opens the file from any other location
>> on our network, the toolbar will load. The custom toolbar is really just
>> using the Refresh data commands common to the External Data toolbar.
>>
>> Is there a simple way of doing this that won't require extensive coding?
>> Would each user need to have an External Data add-in installed on their
>> machine? Would it be possible for the macro to check to see if the external
>> data add-in is installed, and if it wasn't, then install, and then load the
>> custom toolbar?
>>
>> Thanks for any and all responses. J Ruben


 
Reply With Quote
 
Jose Ruben Gonzalez-Baird
Guest
Posts: n/a
 
      27th Dec 2007
Thanks for both of your responses. I ended up creating a macro that will
open when the particular file opens, and then turns the External Data toolbar
to Visible=True. See the following code:

Sub Auto_Open()
'
' OpenExternalDataToolbar Macro
' Macro recorded 12/27/2007 by J. Ruben Gonzalez-Baird
' Opens the External Data Toolbar so the user can refresh
' the external data linked to the Janus database
'
Application.CommandBars("External Data").Visible = True
End Sub

The "Auto_Open()" command runs the macro upon the application's open event.

This worked fine for me; I didn't have to write any code that would create a
custom toolbar using existing External Data commons (which would have been
ideal, but not absolutely necessary). The only hitch is that Secutiry level
has to be set to Medium or Low.

Thanks again, J Ruben.


"Gord Dibben" wrote:

> Data>Import External Data.............see options for obtaining data.
>
> After data has been downloaded...........Data>Refresh Data
>
>
> Gord Dibben MS Excel MVP
>
> On Thu, 27 Dec 2007 13:16:01 -0800, Jose Ruben Gonzalez-Baird
> <(E-Mail Removed)> wrote:
>
> >I was looking for an "External Data" Add-in from the list of available
> >add-ins, and didn't see one. Does this mean that the external data commonds
> >are available to all Excel versions 2000 and higher? If so, this would
> >eliminate the need to load any kind of add-in upon file start-up. Thanks, J
> >Ruben
> >
> >"Jose Ruben Gonzalez-Baird" wrote:
> >
> >> I want to create some kind of macro to load a custom toolbar that I've
> >> created, so that when any other user opens the file from any other location
> >> on our network, the toolbar will load. The custom toolbar is really just
> >> using the Refresh data commands common to the External Data toolbar.
> >>
> >> Is there a simple way of doing this that won't require extensive coding?
> >> Would each user need to have an External Data add-in installed on their
> >> machine? Would it be possible for the macro to check to see if the external
> >> data add-in is installed, and if it wasn't, then install, and then load the
> >> custom toolbar?
> >>
> >> Thanks for any and all responses. J Ruben

>
>

 
Reply With Quote
 
FSt1
Guest
Posts: n/a
 
      27th Dec 2007
hi
glad we could help. and remember....recording a macro isn't that weird of
an idea. many time it can do what you want "as is" and many time it can show
you how code is constructed and the syntax (if you're on a learning curve).

regards
FSt1

"Jose Ruben Gonzalez-Baird" wrote:

> Thanks for both of your responses. I ended up creating a macro that will
> open when the particular file opens, and then turns the External Data toolbar
> to Visible=True. See the following code:
>
> Sub Auto_Open()
> '
> ' OpenExternalDataToolbar Macro
> ' Macro recorded 12/27/2007 by J. Ruben Gonzalez-Baird
> ' Opens the External Data Toolbar so the user can refresh
> ' the external data linked to the Janus database
> '
> Application.CommandBars("External Data").Visible = True
> End Sub
>
> The "Auto_Open()" command runs the macro upon the application's open event.
>
> This worked fine for me; I didn't have to write any code that would create a
> custom toolbar using existing External Data commons (which would have been
> ideal, but not absolutely necessary). The only hitch is that Secutiry level
> has to be set to Medium or Low.
>
> Thanks again, J Ruben.
>
>
> "Gord Dibben" wrote:
>
> > Data>Import External Data.............see options for obtaining data.
> >
> > After data has been downloaded...........Data>Refresh Data
> >
> >
> > Gord Dibben MS Excel MVP
> >
> > On Thu, 27 Dec 2007 13:16:01 -0800, Jose Ruben Gonzalez-Baird
> > <(E-Mail Removed)> wrote:
> >
> > >I was looking for an "External Data" Add-in from the list of available
> > >add-ins, and didn't see one. Does this mean that the external data commonds
> > >are available to all Excel versions 2000 and higher? If so, this would
> > >eliminate the need to load any kind of add-in upon file start-up. Thanks, J
> > >Ruben
> > >
> > >"Jose Ruben Gonzalez-Baird" wrote:
> > >
> > >> I want to create some kind of macro to load a custom toolbar that I've
> > >> created, so that when any other user opens the file from any other location
> > >> on our network, the toolbar will load. The custom toolbar is really just
> > >> using the Refresh data commands common to the External Data toolbar.
> > >>
> > >> Is there a simple way of doing this that won't require extensive coding?
> > >> Would each user need to have an External Data add-in installed on their
> > >> machine? Would it be possible for the macro to check to see if the external
> > >> data add-in is installed, and if it wasn't, then install, and then load the
> > >> custom toolbar?
> > >>
> > >> Thanks for any and all responses. J Ruben

> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create generic macro for a custom toolbar spIky haIred Microsoft Excel Programming 5 30th Oct 2007 04:10 AM
Load picture from file to custom toolbar of Excel 2000 =?Utf-8?B?UGFkYW0=?= Microsoft Excel Programming 2 6th Aug 2006 05:58 AM
Load image from directory for custom toolbar of Excel 2000 =?Utf-8?B?UGFkYW0=?= Microsoft Excel Worksheet Functions 0 5th Aug 2006 06:33 PM
Custom button on custom toolbar wants to re-load "Personal.xls" =?Utf-8?B?QXVzc2llIERhdmU=?= Microsoft Excel Programming 1 25th Mar 2005 10:19 AM
How to create custom IE Toolbar Big Poppa Windows XP Internet Explorer 1 24th Nov 2003 06:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:29 AM.