Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Create macro to load custom toolbar

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Create macro to load custom toolbar

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Create macro to load custom toolbar

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Create macro to load custom toolbar

DataImport External Data.............see options for obtaining data.

After data has been downloaded...........DataRefresh Data


Gord Dibben MS Excel MVP

On Thu, 27 Dec 2007 13:16:01 -0800, Jose Ruben Gonzalez-Baird
m 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


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Create macro to load custom toolbar

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:

DataImport External Data.............see options for obtaining data.

After data has been downloaded...........DataRefresh Data


Gord Dibben MS Excel MVP

On Thu, 27 Dec 2007 13:16:01 -0800, Jose Ruben Gonzalez-Baird
m 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





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Create macro to load custom toolbar

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:

DataImport External Data.............see options for obtaining data.

After data has been downloaded...........DataRefresh Data


Gord Dibben MS Excel MVP

On Thu, 27 Dec 2007 13:16:01 -0800, Jose Ruben Gonzalez-Baird
m 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
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
Create generic macro for a custom toolbar spIky haIred Excel Programming 5 October 30th 07 04:10 AM
Load picture from file to custom toolbar of Excel 2000 Padam Excel Programming 2 August 6th 06 05:58 AM
Load image from directory for custom toolbar of Excel 2000 Padam Excel Worksheet Functions 0 August 5th 06 06:33 PM
How do I create a custom image for a toolbar? [email protected] Excel Programming 2 July 7th 06 11:05 PM
Custom button on custom toolbar wants to re-load "Personal.xls" Aussie Dave Excel Programming 1 March 25th 05 10:19 AM


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