View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Robert Bruce Robert Bruce is offline
external usenet poster
 
Posts: 16
Default Running "String" of Code


"Hokievandal" wrote in message
...
Yea... but I want to generate the command aRecon.Name using strings passed
to
a function. My problem is whether there's a way (like with
application.run
for macros) to run a string as code.

Dim x As New Class1
x.name = "Owain"
Debug.Print CallByName(x, "name", VbGet)

HTH

Rob