Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hello,
I am looking for a vba code/macro that will remove a password and salve the document as current file name. Each file has a different name so macro has to be able to identify the current file name and save the file. Would someone know how to do this? Thank you, Miriam |
#2
![]() |
|||
|
|||
![]() Quote:
I've been trying to create the macro that would save the word document with the current file name, but the name changes so I am trying to get the ActiveDocument.FullName to work to save the file with the given document name. How can I make this code work? Code:
Dim SaveName As String SaveName = ActiveDocument.FullName ActiveDocument.SaveAs fileName:=ActiveDocument.FullName, FileFormat:= _ wdFormatXMLDocument, LockComments:=False, Password:="", AddToRecentFiles _ :=True, WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts _ :=False, SaveNativePictureFormat:=False, SaveFormsData:=False, _ SaveAsAOCELetter:=False, HTMLDisplayOnlyOutput:=False, MaintainCompat:= _ False End Sub Miriam |
#3
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
You'll need the password to open the password-protected file. It may be
difficult to automate the task, unless all of the files make use of the same password, of course. Stefan Blom Microsoft Word MVP On 2015-10-20 18:35, Mhamid wrote: Hello, I am looking for a vba code/macro that will remove a password and salve the document as current file name. Each file has a different name so macro has to be able to identify the current file name and save the file. Would someone know how to do this? Thank you, Miriam |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro help Word 2010 | Microsoft Word Help | |||
Issue with Record Macro feature Word 2010 | Microsoft Word Help | |||
Word 2010 Macro | Microsoft Word Help | |||
Macro's not working in word 2010 | Microsoft Word Help | |||
How can I remove Chinese characaters in Word 2010 beta Help | Microsoft Word Help |