r/visualbasic • u/RaisinOk1557 • Sep 05 '23
Winword VBA advice needed
Hi, can you let me know why this referencing does not work?
set x=Documents.Open FileName:=soubor
Many thanks
Vlado
1
Upvotes
View all comments
Show parent comment
1
u/RaisinOk1557 Sep 05 '23
Thanks, indeed, but documentation clearly says that return value is document, so I expected document object and it should work with this assignment, no?