ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Removing Excel password. (https://www.excelbanter.com/excel-programming/313003-re-removing-excel-password.html)

Kris

Removing Excel password.
 
Hello Tim,

Change:
Password:=""

To:
Password:=Empty

Hope this helps,

Kris

-----Original Message-----
Hi,

I am using the following code ( VB.NET) to try and

remove a password from a
Excel Workbook.

objWB.SaveAs(Filename:=objWB.FullName,
FileFormat:=Excel.XlFileFormat.xlWorkbookNormal ,

Password:="",
WriteResPassword:="", ReadOnlyRecommended:=False,

CreateBackup:=False)

But it is not working.

I can set different passwords, but when I try to remove

it, it does not
work.

Any ideas



.


Kris

Removing Excel password.
 
Forgot about the WriteResPassword:="".

Change that one to:
WriteResPassword:=Empty to remove that password as well.

Hope this helps,

Kris

-----Original Message-----
Hello Tim,

Change:
Password:=""

To:
Password:=Empty

Hope this helps,

Kris

-----Original Message-----
Hi,

I am using the following code ( VB.NET) to try and

remove a password from a
Excel Workbook.

objWB.SaveAs(Filename:=objWB.FullName,
FileFormat:=Excel.XlFileFormat.xlWorkbookNorma l,

Password:="",
WriteResPassword:="", ReadOnlyRecommended:=False,

CreateBackup:=False)

But it is not working.

I can set different passwords, but when I try to remove

it, it does not
work.

Any ideas



.

.


Peter Huang

Removing Excel password.
 
Hi Tim,

Have you tried Kris's suggestion?
If you still have any concern on this issue, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


Tim Marsden

Removing Excel password.
 
Thanks,

All is resolved now. I was due to the fact the Workbook was protected.

Tim

""Peter Huang"" wrote in message
...
Hi Tim,

Have you tried Kris's suggestion?
If you still have any concern on this issue, please feel free to post

here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no

rights.




Peter Huang

Removing Excel password.
 
Hi Tim,

I am glad that the problem is resolved.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.



All times are GMT +1. The time now is 12:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com