helloakshay
New Member
Hello All
I am creating a excel document with Command button to open a particular document from a particular link.
The link has some 20-30 documents on the page.
Any help ideas how to solve the issue
I was able to open the link by doing the below code if the file is on the desktop or paths existing on the system
I am creating a excel document with Command button to open a particular document from a particular link.
The link has some 20-30 documents on the page.
Any help ideas how to solve the issue
I was able to open the link by doing the below code if the file is on the desktop or paths existing on the system
Code:
'Example:
ThisWorkbook.FollowHyperlink "https://abc.com"
Set wordapp = CreateObject("word.Application")
wordapp.documents.Open "C:\Users\Desktop\Names.docx" ' This work as long as the file is on the desktop path
wordapp.Visible = True
' once user clicks on abc button website opens but i am unable to make the specifc word document open