PDA

View Full Version : manipluate an object using value from field in database



briane
10-24-2008, 07:12 AM
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?

Bob Phillips
10-24-2008, 09:01 AM
Have you tried



With ActiveSheet.OLEObjects(myObjectName)

'do stuff
End With

briane
10-30-2008, 11:14 AM
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.