Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Saved a workbook using xlDialogSaveAs, now it has a password ?!?

i wrote a macro that prompts the user to save the workbook. Now the saved
workbook has a password. I did not set one.
Here's my code. Does anyone have an idea what the password might be?
Thanks!

Sub PromptSaveAS()
Application.Dialogs(xlDialogSaveAs).Show "Rename ME", True, False, False
'document_text , type_num, prot_pwd, backup, write_res_pwd, read_only_rec
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Saved a workbook using xlDialogSaveAs, now it has a password ?!?

Hi,
You can find the argument list any dialog by searching the online help for
"Built-In Dialog Box Argument List".
For the SaveAs, it is:
xlDialogSaveAs -- document_text, type_num, prot_pwd, backup,
write_res_pwd, read_only_rec
therefore, it correspond to the False.
It must have transform the False as a string and used it for password.
False.. no luck
false... no luck
FALSE... here we go ... it is the one !!!

try leaving the param blank like:
Application.Dialogs(xlDialogSaveAs).Show "Rename ME", True, , False
Would that work?
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Court" wrote:

i wrote a macro that prompts the user to save the workbook. Now the saved
workbook has a password. I did not set one.
Here's my code. Does anyone have an idea what the password might be?
Thanks!

Sub PromptSaveAS()
Application.Dialogs(xlDialogSaveAs).Show "Rename ME", True, False, False
'document_text , type_num, prot_pwd, backup, write_res_pwd, read_only_rec
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Saved a workbook using xlDialogSaveAs, now it has a password ?!?

I know why, but not what. The why is because you used a parameter, False,
for the password in Application.Dialogs(xlDialogSaveAs).Show "Rename ME",
True, False... If you meant to not use a password (and the default Excel
format) it should just have been Application.Dialogs(xlDialogSaveAs).Show
"Rename ME",,,

But I don't know how VBA interpreted that parameter. I have tried using
"0", "False", even Alt-Numpad-2-5-5 to try to figure out how VBA converted
the parameter False into a password and no luck yet - any Excel folks out
there know what the solution is???
--
- K Dales


"Court" wrote:

i wrote a macro that prompts the user to save the workbook. Now the saved
workbook has a password. I did not set one.
Here's my code. Does anyone have an idea what the password might be?
Thanks!

Sub PromptSaveAS()
Application.Dialogs(xlDialogSaveAs).Show "Rename ME", True, False, False
'document_text , type_num, prot_pwd, backup, write_res_pwd, read_only_rec
End Sub

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Saved a workbook using xlDialogSaveAs, now it has a password ?!?

GOT IT! "FALSE" in caps.
--
- K Dales


"Court" wrote:

i wrote a macro that prompts the user to save the workbook. Now the saved
workbook has a password. I did not set one.
Here's my code. Does anyone have an idea what the password might be?
Thanks!

Sub PromptSaveAS()
Application.Dialogs(xlDialogSaveAs).Show "Rename ME", True, False, False
'document_text , type_num, prot_pwd, backup, write_res_pwd, read_only_rec
End Sub

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Saved a workbook using xlDialogSaveAs, now it has a password ?!?

=DoH!=
Of course it's all caps. Thanks for taking the time to look in to my
problem-
I really appreciate it.
Thanks Guys!


"Court" wrote:

i wrote a macro that prompts the user to save the workbook. Now the saved
workbook has a password. I did not set one.
Here's my code. Does anyone have an idea what the password might be?
Thanks!

Sub PromptSaveAS()
Application.Dialogs(xlDialogSaveAs).Show "Rename ME", True, False, False
'document_text , type_num, prot_pwd, backup, write_res_pwd, read_only_rec
End Sub



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
can u tell me where are excel sheet password saved Excel sheet password Excel Discussion (Misc queries) 1 December 30th 06 10:43 AM
Help! Forgot the password the file was saved under! babyduke Excel Worksheet Functions 1 July 29th 06 05:14 PM
Password Protect When Saved Nick Excel Discussion (Misc queries) 2 July 6th 05 07:29 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
Password / Spreadsheet saved as HTML Tim[_17_] Excel Programming 0 October 8th 03 05:52 PM


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