Hi,
In VFP one can store any line of code in a variable and then execute it as a line of code by putting the & sign in front of it if i remember well:
Ex:
test = "Hello"
test2 = 1
test3 = "myform.text" & test2 & ".value=" & test
&test3
I looked all around the web to find a similar solution for Excel VBA, as I am trying to create a user automation tool. Despite all the "Nay" sayers, i am convinced there must be a simple solution to this challenge.
Creating an on-the-fly procedure is not an option as it will get in trouble with many antiviruses.
I tried to use EbExecuteLine which would have been the perfect solution, but Microsoft Office 2010 does not recognize it.
Any idea would be greatly appreciated?
Bookmarks