Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
User form/Modul
I am quite new tom Visual Basic. I am making a program that is supposed to
work with excel. The main idea is that there are information in a spreadsheet and the can by pressing a button on the spreadsheet process the info. This is my first VB-program so I started to write the code in the by editing a macro. Now it seems like it is all wrong. My code seems to be connected to a User Form and the button is not displayed until the program is chosen. What I want is for the button to be visible when opening the workbook. Also I am not interested in using any User Form, I just want the pressing of the button to result in a series of actions. Does anyone know where I have done it wrong? I am clueless when it comes to VB so any help is much appreciated. My code is : Private Sub dagensDatumKnapp_Click() findAndRemoveBlanks findQC findMV findDate End Sub As you can see the Sub calls for some other subs. However I want to have a main (like in Java) that controls the sequence of the program but I just do not get it. Please please help me!!!! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
User form/Modul
This is an very big question to answer so I am just goint to summarize
what you want to do. You don't need a user form at all. From the sound of it, you should put code you wish to execute when the workbook is opened in the Workbook_Open event (in the ThisWorkbook object). I would create a command bar and a command button (look these up in the object explorer for help) in this open event. Set the "onaction" property of the command button to call your routine: Private Sub dagensDatumKnapp_Click() findAndRemoveBlanks findQC findMV findDate End Sub Hope this helps point you in the right direction. -K |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I fill a cell in a user form from a selection on same form? | Excel Discussion (Misc queries) | |||
File protect via extern USB crypto modul? | Excel Programming | |||
How to: User Form to assign a user defined range to a macro variab | Excel Programming | |||
I am looking to see if anybody has an equivalant user form to Outlooks CONTACT form | Excel Programming |