Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Add-in Asking to be Saved

I created an Addin. I have distributed to several work
collegues to have them test it. They have dowloaded it
into their My Documents folder and then installed it into
Excel via Toool\Addin\Browse\My Documents\Addin file.

I password protected the xla file. However whenever we
close Excel we get prompted if we want to save the changes
to the XLA file. This is confusing as its password
protected. I do not want to five anyone acccess to it.
Yet when I go to the VB Editor and click on the xla it
prompts me for a password.

Furthermore, my one colleague was showing me that although
it was clicked off in the Addin list, it was not appearing
as it should in her Menu items. So we clicked it off and
then on again and the mene item appeared.

Does anyone know what is going on here?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Add-in Asking to be Saved

Does your code make changes to the addin?

If so, that could be the problem on the prompt to save.

--
Regards,
Tom Ogilvy


"ExcelMonkey" wrote in message
...
I created an Addin. I have distributed to several work
collegues to have them test it. They have dowloaded it
into their My Documents folder and then installed it into
Excel via Toool\Addin\Browse\My Documents\Addin file.

I password protected the xla file. However whenever we
close Excel we get prompted if we want to save the changes
to the XLA file. This is confusing as its password
protected. I do not want to five anyone acccess to it.
Yet when I go to the VB Editor and click on the xla it
prompts me for a password.

Furthermore, my one colleague was showing me that although
it was clicked off in the Addin list, it was not appearing
as it should in her Menu items. So we clicked it off and
then on again and the mene item appeared.

Does anyone know what is going on here?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Add-in Asking to be Saved

Sorry. I found what the problem was. I had put this code
into it when it was just an xls file. I guess I do not
need it now that it is an xla file. See below:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim Msg As String
Dim Ans As String

If Not Me.Saved Then
Msg = "Do you want to save the changes you made to "
Msg = Msg & Me.Name & "?"
Ans = MsgBox(Msg, vbQuestion + vbYesNoCancel)
Select Case Ans
Case vbYes
Me.Save
Case vbNo
Me.Saved = True
Case vbCancel
Cancel = True
Exit Sub
End Select
End If
Call DeleteMenu

End Sub




-----Original Message-----
Does your code make changes to the addin?

If so, that could be the problem on the prompt to save.

--
Regards,
Tom Ogilvy


"ExcelMonkey" wrote

in message
...
I created an Addin. I have distributed to several work
collegues to have them test it. They have dowloaded it
into their My Documents folder and then installed it

into
Excel via Toool\Addin\Browse\My Documents\Addin file.

I password protected the xla file. However whenever we
close Excel we get prompted if we want to save the

changes
to the XLA file. This is confusing as its password
protected. I do not want to five anyone acccess to it.
Yet when I go to the VB Editor and click on the xla it
prompts me for a password.

Furthermore, my one colleague was showing me that

although
it was clicked off in the Addin list, it was not

appearing
as it should in her Menu items. So we clicked it off

and
then on again and the mene item appeared.

Does anyone know what is going on here?

Thanks



.

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
How do I recover an Excel document saved not saved as Darryl Excel Discussion (Misc queries) 6 January 5th 10 03:39 AM
i "saved" instead of "saved as". I need old file back KD Excel Discussion (Misc queries) 5 October 13th 09 08:32 AM
Files saved as csv files are actually saved as text files? Queen_Of_Thebes[_2_] Excel Discussion (Misc queries) 2 May 19th 09 03:04 PM
How can I see a copy of a saved workbook before I saved it again? Norma Excel Worksheet Functions 2 May 11th 05 10:31 AM
How to get saved old saved work that was saved over? Maral Excel Discussion (Misc queries) 1 February 20th 05 08:59 PM


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