HTMLImage Name & HTMLBrowser Name
In an effort to reduce the amount of code I need to click or attach to an Image or Browser with a variable name.
<font class="small">Code:</font><hr /><pre>
HTMLImage("Caption= " & (SN_Name) & "").Click
HTMLBrowser("Caption= " & (SN_Name) & "").Attach
SN_Name = "Lookup: Location"
When stepping through the code the variable name is being resolved correctly, but I get a syntax error.
Any help with how to add a variable name to the strings?
Re: HTMLImage Name & HTMLBrowser Name
I got one of them... there is a space in the name and thus I need to ' around the variable name.
HTMLBrowser("Caption='" & (SN_Name) & "'").Attach