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: 21
Default Linked toolbar

Hello,

I have some excel files with userforms. I have procedures to show these
forms, that are linked to toolbar buttons (1 for each form). If the file name
is changed or is moved to a different folder, the button wont work anymore
(unless the file name is changed with "save as" of course).

My workaroud:

1. in Workbook_Open(), I run a procedure that links all forms to the toolbar
buttons.

2. Once "installed" the toolbar, it stores the workbook's current path in a
hidden sheet and saves the file.

3. The next time we open the file, in Workbook_Open() will check the current
path with tha saved one, if its different, it will install the toolbar again.
Looks like this:

Private Sub Workbook_Open()
If HData.Range(HDATA_CELL_INSTALL) < ThisWorkbook.Path Then
If MsgBox("Instalar la barra de herramientas?", vbYesNo) = vbYes Then
instalar
ThisWorkbook.Save
End If
End If

End Sub


I am trying to find a way to check if the workbook is linked to the toolbar,
or if the toolbar has a valid path and file, or something like it.

Appreciate your help!
 
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
Linked spreadsheets failing to recognised that the linked file is Michael Excel Discussion (Misc queries) 0 January 14th 10 12:03 PM
Sorting non-linked cells in a linked worksheet Gary Excel Discussion (Misc queries) 1 October 25th 08 03:38 AM
How do I have a linked cell auto-size to fit the linked data? CristinPDX Excel Discussion (Misc queries) 0 June 24th 08 08:42 PM
Displaying linked data in excel 2007 when linked file is not avail Eng_19 Excel Discussion (Misc queries) 0 December 7th 07 07:27 PM
In a linked calculation how do I lose the '0' in the linked file? Anita Excel Worksheet Functions 2 February 3rd 06 01:54 PM


All times are GMT +1. The time now is 12:36 PM.

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"