Message 1 of 13

Not applicable
02-01-2018
12:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm having a bit of a problem with the SaveAs call in this piece of code. Everything else is working fine and the needed paths are getting passed to the sub. The SaveAs bit is returning a runtime error. Any advice is greatly appreciated as I wade through this very small part of a larger problem. Thanks!
Sub SaveNew(fPath) 'declare the new assembly Dim newAsm As AssemblyDocument 'set the assembly to the target assembly Set newAsm = ThisApplication.Documents.Open(fPath, False) 'save as on the target assembly - passed from GetPath() newAsm.SaveAs newPath, False 'close the target assembly newAsm.Close (False)
Solved! Go to Solution.