If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Display form from an VB application in Excel
Dear All,
I have the following problem with a macro. I hope somebody may help me. Problem: I want to display a VBA form created in an VB application on top of an Excel worksheet to enter some information. But when I show the form after opening the Excel workbook, the macro automatically switches back to the application showing this form (and not on top of the Excel workbook). Code: .... 'Open Excel workbook Set xlS = clsApp.GetApplication("excel.Application") Set xlsWB = xlS.Workbooks.Open(filename) xlS.Visible = True 'Show form on top of that Excel workbook frm.Show vbModeless PROBLEM OCCURED: the macro switches back to the VB application showing this form instead of staying with Excel .... Purpose of the macro: I have this VB application which provides Visual Basic Editor for writing VBA macros. In order to import data from any Excel sheet, I open an Excel workbook with the macro and then want to show a VBA form on top of the opened Excel sheet. The Excel sheet itself cannot contain any macro at all. Those Excel sheets will have the data always in different columns so the user needs to see the Excel sheet as well as the form in order to enter the proper column names in the form. I would appreciate any help of you guys. MANY THANKS in advance! Best wishes, kuhni |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
copying chart Excel into a vb form | Julien | Charts and Charting | 2 | June 27th, 2005 11:06 AM |
Dates in a listbox connected to a form... | RusCat | Using Forms | 13 | November 25th, 2004 02:31 AM |
EXCEL 2002: How do I user/simulate a Timer event in Excel form | JohnF | Worksheet Functions | 6 | September 23rd, 2004 04:56 PM |
EXCEL 2002: How do I user/simulate a Timer event in Excel form | JohnF | General Discussion | 1 | August 24th, 2004 05:56 AM |
Pasting into a MS Access Form from Excel - having problems | G Zajic | Using Forms | 2 | August 3rd, 2004 03:51 PM |