.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Excel Modeless Dialog Box

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Civil3DReminders_com
615 Views, 1 Reply

Excel Modeless Dialog Box

I want to create a modeless dialog box that is associated with Excel instead of AutoCAD. The program will run in AutoCAD and then it will open an instance of Excel. I want the ability for the user to then select a button on the modeless dialog that will import in data from the Excel Worksheet into AutoCAD. My preference is for the modeless dialog to be shown in Excel and not necessarily be tied to AutoCAD. Is this possible? My search so far hasn't been successful. 

 

Thank you,

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
1 REPLY 1
Message 2 of 2

This appears to be the solution:

ExcelApplication = New Excel.Application
' Add the import export dialog box to load from Excel.
Dim excelLinkFrom As frmExcelLink = New frmExcelLink()
Dim xlMain As New NativeWindow()
xlMain.AssignHandle(New IntPtr(ExcelApplication.Hwnd))
excelLinkFrom.Show(xlMain)

 

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost