In VBA I am reading a field from an access database. This field contains a name of an object in my vba application. How can I use the value read from the access database to manipulate the properties of this object in my application?
In VBA I am reading a field from an access database. This field contains a name of an object in my vba application. How can I use the value read from the access database to manipulate the properties of this object in my application?
Have you tried
[vba]
With ActiveSheet.OLEObjects(myObjectName)
'do stuff
End With
[/vba]
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
I tried this and it didn't work. I am not doing this in excel. It is being done in a product called OSISoft PI ProcessBook. The object is a line.