I guess when you are passing some values to a sub, You should use "Call"
keyword

Try

Call Modul1.Get_Param(CInt(TextBox1.Text), CInt(TextBox2.Text))


Hemant Hegde


2009/11/6 laudes <christoph.acherm...@gmail.com>

>
> Hi all
>
> I've got a problem and it seems, that I'm not able to solve it without
> your help. Needless to say anything more about my programming-
> skills ;-)
> There is a Form and a Module in my Workbook. I try to pass User-Input
> from the  Form to a Sub in the Module.
>
> If I call the Sub from inside the Form by using the On_Click Event of
> a Button, Excel throws an error:
>
> "Error while compiling:
> Expected: ="
>
> Here is how I try it:
>
> --------------------------------------function in the
> module-------------------------------------
> Public Sub Get_Params (Stichjahr As Integer, Stichmonat As Integer)
> ....
> End Sub
>
> --------------------------------------function call in the
> Form----------------------------------
> Modul1.Get_Param(CInt(TextBox1.Text), CInt(TextBox2.Text))
>
> Can anybody Help?
> Thank you very much in advance....
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe
-~----------~----~----~----~------~----~------~--~---

Reply via email to