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

AppActivate Excel from AutoCAD 2012 64-bit

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

AppActivate Excel from AutoCAD 2012 64-bit

I am migrating to ACAD 2012 an application developed using VB6. That application uses AppActivate in order to activate MS Excel so the user can select a cell and then go back to my application. The problem is with ACAD 2012 + Windows 7 64-bit, because AppActivate keeps Excel flashing in the task bar and the expected behavior was that the Excel main window became the top window with the focus on it. The same code works as expected with ACAD 2012 + Windows XP 32-bit.

 

I also tried with SetForegroundWindow and ForceForegroundWindow with no luck http://www.vbforums.com/showthread.php?p=4032267#post4032267

 

That code works for me when executed from applications other than AutoCAD 2012 64-bit. It seems that it wants to keep focus.

 

Does anybody know if there is a workaround for ACAD 2012 64-bit?

 

Thank you in advance for your help.

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

See information (MSDN link) from this page

it's explain your issue

http://forums.autodesk.com/t5/Autodesk-ObjectARX/ADO-exceptions-open-jet-database-with-objectarx-201...

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 3 of 3
Anonymous
in reply to: Hallex

Excuse me Hallex, but your response has nothing to do with my question Smiley Surprised

 

It is not about 64-bit Jet support, but rather to activate and bring Excel main
window to top.

 

Perhaps I did not explain me well or you answered a wrong thread.

 

 

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

Post to forums  

Autodesk Design & Make Report

”Boost