Likely not the place for such a topic but wondering where a person can find a site like MRExcel but one that deals with MS Word? Over the years I have keyed in areas of interest and hands down the one that I return to 95% of the time is MrExcel.
I'm stuck on a macro copy paste issue after data is imported from Excel into Word but need to know how one would get the file to save based on the last row which holds the filename but the recorded macro simply returns what it sees in the first file.
I'm stuck on a macro copy paste issue after data is imported from Excel into Word but need to know how one would get the file to save based on the last row which holds the filename but the recorded macro simply returns what it sees in the first file.
Code:
Sub Save_New()
'
'
Selection.EndKey Unit:=wdStory
Selection.MoveUp Unit:=wdLine, Count:=1
Selection.HomeKey Unit:=wdLine
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Cut
ChangeFileOpenDirectory _
"C:\Documents\Backups\Thank You Letter\"
ActiveDocument.SaveAs2 FileName:= _
"Static Electric Inc. - Barry Henderson - 0726.docm", _
FileFormat:=wdFormatXMLDocumentMacroEnabled, LockComments:=False, _
Password:="", AddToRecentFiles:=True, WritePassword:="", _
ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
False, CompatibilityMode:=14
End Sub