Cycle ThisDoc.Document.SaveAs iLogic

Cycle ThisDoc.Document.SaveAs iLogic

flyingdelorean.ru
Contributor Contributor
656 Views
2 Replies
Message 1 of 3

Cycle ThisDoc.Document.SaveAs iLogic

flyingdelorean.ru
Contributor
Contributor

Why does this ilogic code not work?

Dim FileName As String


For i As Integer = 1 To 10
	
	FileName = ThisDoc.Path & "\" & "VertY" + i.ToString + ".ipt"


ThisDoc.Document.SaveAs(FileName, True)

Next

 I want to save the same file 10 times with different names

0 Likes
Accepted solutions (1)
657 Views
2 Replies
Replies (2)
Message 2 of 3

dutt.thakar
Collaborator
Collaborator
Accepted solution

@flyingdelorean.ru 

 

It is working, what is it that is not working for you? Do you get any error messages? See below GIF, which shows it is working.

 

MultiSaveAs.gif

 

 

If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!


Regards,
Dutt Thakar
LinkedIn
Message 3 of 3

flyingdelorean.ru
Contributor
Contributor

SaveAs.png

SaveAs2.png

  Probably because of the need to overwrite existing files

0 Likes