VB argument

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
This usually means that you are trying to get the code to do something that it can not do. For instance you are trying to make a msgbox = something.

Take a closer look at the documentation on how the argument is supposed to look.

You may want to cut and paste the code where the error is occurring on here.

Abbo
 
Upvote 0
Call FillDebitRecord(strBookBatch, strBookDeploy, intDebitCounter, intDeployCounter)
Call FillCreditRecord(strBookBatch, strBookDeploy, intCreditCounter, intDeployCounter)
Call FillDescriptionRecord(strBookBatch, strBookDeploy, intDescriptionCounter, intDeployCounter)
intDebitCounter = intDebitCounter + 2
intCreditCounter = intCreditCounter + 2
intDescriptionCounter = intDescriptionCounter + 2
intDeployCounter = intDeployCounter + 1
Wend

' fill the last line with a credit record plus the total amount
Call FillLastRecord(strBookBatch, strBookDeploy, intDescriptionCounter, intDeployCounter)
 
Upvote 0
To me that means you are calling a function/subroutine/procedure that requires an argument.

For example:
str

The str function converts a number to a string, you cannot call that function without "passing" a number as an argument.

For example:
str(35)

would return 35 as a string.

Therefore,

dim strString as string
dim intInt as Integer

intInteger = 35
strString = str(intInteger)

You are probably missing an argument in one or all of your Calls.

Hope this helps.
This message was edited by charlie79 on 2002-04-23 10:22
 
Upvote 0

Forum statistics

Threads
1,214,385
Messages
6,119,205
Members
448,874
Latest member
Lancelots

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top