I am using Excel VBA to change content in HTML, I found the following command and it works fine, but when I try to assign the value of a cell in excel it gives an error, please help.
Driver.ExecuteScript ("document.getElementById('tieudeChart').innerHTML = 'textaaa';")
Error: javascripterror: cell1 is not defined
cell1 = Main_AT.Range("ae5").Value
Driver.ExecuteScript ("document.getElementById('tieudeChart').innerHTML= cell1;")