- hdnData – A hidden field
- wbInstance – Name of the Web Browser ActiveX Control
How to get value?
- Access hidden field using VBA code and get is value in VBA variable.
Dim txtValue as String txtValue = wbInstance.Document.getElementById("hdnData").Value
How to set value?
- Access hidden field using VBA code and set its value.
Dim txtValue as String txtValue = "My Text" wbInstance.Document.getElementById("hdnData").Value = txtValue
Vishal Monpara is a full stack Solution Developer/Architect with 13 years of experience primarily using Microsoft stack. He is currently working in Retail industry and moving 1’s and 0’s from geographically dispersed hard disks to geographically dispersed user leveraging geographically dispersed team members.