VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Access OLE objects using VBA

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
1508 Views, 2 Replies

Access OLE objects using VBA

Dear all

If i have inserted an Excel OLE object in AutoCAD.
Is it possible to get the value in Excel OLE, through AutoCAD VBA.

How do we access ole objects through VBA????

Can we copy the Excel OLE object pasted in AutoCAD back to a new excel sheet using VBA???

Thanking in advance,

Vasant
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Set a reference to the Microsoft Excel Object Libary 
Dim xlApp As Excel.Application
Dim wdApp As Word.Application
Dim acApp As Access.Application

Set xlApp = New Excel.Application
Set wdApp = New Word.Application
Set acApp = New Access.Application


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Dear
all

If i have inserted an Excel OLE object in AutoCAD.
Is it possible to
get the value in Excel OLE, through AutoCAD VBA.

How do we access ole objects through VBA????

Can we copy the Excel OLE object pasted in AutoCAD back to a new excel
sheet using VBA???

Thanking in advance,

Vasant

Message 3 of 3
Anonymous
in reply to: Anonymous

OLE objects embedded in AutoCAD drawings cannot be manipulated with VB
or VBA.

--
Someone left the grass out in the yard all night.
http://www.acadx.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost