I have a script that opens a hyperlink with a variable to pull out a specific intranet account. However, if the โmoduleโ is already open (80% of the hyperlinks are the same), I would just like to leave the same tab / window open and update it.
Right now, my Vbscript just uses the host script and every time it opens in a new tab. Since the user can open several tabs, I'm not sure how to indicate if they have a link that I want to open, and then use this window to update the data.
Begin pseudocode Script Sub dim LINK as string dim variableHere as string LINK = "link/section/comments.aspx/account=" & variableHere & "&SID=11111" variableHere = APIAccountNumberAccessed IF ("link/section/comments.aspx/account=" exists) then open hyperlink in same tab: LINK else open in new tab End IF End pseudocode Sub
UPDATE:
I made some progress in determining that the Window.Open method can be used to set the target name and open the link. However, I still get the error message.
Syntax
set varWindow = Window.Open "google.com", "targetName", "toolbar=no, menubar=no, location=no, directories=no"
This gives me the expected end of the report, error code 800A0401, right in the open line of the window. Still can't get past this part.
source share