Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi all,
having a bit of trouble with a function MsgBox DepositIntoInventory(ManageInventory.DepositLot, ManageInventory.DepositCases, ManageInventory.DepositMonth), vbOKOnly, "Alert" is the call and i'm getting a type mismatch error Public Function DepositIntoInventory(lotNum As ComboBox, numCases As TextBox, monthName As ComboBox) As String DepositIntoInventory = "Deposit of " & numCases.Caption & " cases of lot " & lotNum.Value & " in " & monthName.Value & " was successful." End Function all the types are correct, DepositLot is a combobox, DepositCases is a TextBox, DepositMonth is a ComboBox if i change the types to string in the definition of the function, and remove the qualifiers - then it works ok. can anyone help explain why? tia J |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to choose if I use a parameter or not in a parameter query | Excel Discussion (Misc queries) | |||
TypeLib Information Problem? Pass a Function's parameter names as string for parsing? | Excel Programming | |||
Problem with the PrToFileName parameter when using the Printout method on a worksheet | Excel Programming | |||
Problem with ADO with Parameter Object | Excel Programming | |||
Problem with named range as VBA macro parameter | Excel Programming |