Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
What is wrong with this code?
I'm a novice at VBA. I want an add-in data form to display when the workbook
is opened. I have the following code, but nothing happens when the workbook is opened. I still have to manually select Data from the menu followed by selecting the add-in form from the drop down list to display the form on screen. Can someone help me with this. Sub Workbook_Open() Application.Run "dataform2.xla!ShowDataForm" End Sub TIA |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
What is wrong with this code?
Where are you putting the code? It should be in the ThisWorkbook
code module, not a regular code module. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Jan" wrote in message ... I'm a novice at VBA. I want an add-in data form to display when the workbook is opened. I have the following code, but nothing happens when the workbook is opened. I still have to manually select Data from the menu followed by selecting the add-in form from the drop down list to display the form on screen. Can someone help me with this. Sub Workbook_Open() Application.Run "dataform2.xla!ShowDataForm" End Sub TIA |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
What is wrong with this code?
This Worked for me in Excel 2000
Dim x x = Application.Run("personal.xls!bottomrow") seems like it needs to start with variable = -- steveB Remove "AYN" from email to respond "Jan" wrote in message ... I'm a novice at VBA. I want an add-in data form to display when the workbook is opened. I have the following code, but nothing happens when the workbook is opened. I still have to manually select Data from the menu followed by selecting the add-in form from the drop down list to display the form on screen. Can someone help me with this. Sub Workbook_Open() Application.Run "dataform2.xla!ShowDataForm" End Sub TIA |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
What is wrong with this code?
No, only if you want to retrieve the result, as in a function, do you need
that. "STEVE BELL" wrote in message news:y2Ere.3855$yw4.737@trnddc09... This Worked for me in Excel 2000 Dim x x = Application.Run("personal.xls!bottomrow") seems like it needs to start with variable = -- steveB Remove "AYN" from email to respond "Jan" wrote in message ... I'm a novice at VBA. I want an add-in data form to display when the workbook is opened. I have the following code, but nothing happens when the workbook is opened. I still have to manually select Data from the menu followed by selecting the add-in form from the drop down list to display the form on screen. Can someone help me with this. Sub Workbook_Open() Application.Run "dataform2.xla!ShowDataForm" End Sub TIA |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
What is wrong with this code?
Sorry Bob!
my bad... -- steveB Remove "AYN" from email to respond "Bob Phillips" wrote in message ... No, only if you want to retrieve the result, as in a function, do you need that. "STEVE BELL" wrote in message news:y2Ere.3855$yw4.737@trnddc09... This Worked for me in Excel 2000 Dim x x = Application.Run("personal.xls!bottomrow") seems like it needs to start with variable = -- steveB Remove "AYN" from email to respond "Jan" wrote in message ... I'm a novice at VBA. I want an add-in data form to display when the workbook is opened. I have the following code, but nothing happens when the workbook is opened. I still have to manually select Data from the menu followed by selecting the add-in form from the drop down list to display the form on screen. Can someone help me with this. Sub Workbook_Open() Application.Run "dataform2.xla!ShowDataForm" End Sub TIA |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
What is wrong with the code? | Excel Discussion (Misc queries) | |||
What's wrong with the code,pls hv a look | Excel Programming | |||
What's wrong w/my code? | Excel Programming | |||
What is wrong with this code? | Excel Programming | |||
Is something wrong with the code | Excel Programming |