1

I'm currently doing some web automation. My recent problem is to pass content to tinymce text area with excel VBA. After searching all over the internet, I think the possible answer can be found here: How can I pass variable parameters into a Javascript Function using Excel VBA.

However, I tried to do the same as mentioned in above link but failed.

IE.Document.parentWindow.execScript "tinyMCE.get('Server').setContent(" & inputStr & ")", "JavaScript"

Currently, the variable inputStr was declared in VBA as below:

With dataSheet
inputStr = .Range("B35").Value
End With

Does the variable need to be declared as javascript variable? If so, how I can do that in excel VBA?

Please help.

1 Answer 1

0

You would not declare as a javascript variable as it would be passed using VBA.

As it is a string variable you would do

Dim inputStr As String
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.