Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Public Sub Help

This is the define line of my public function

Public Sub Feeder(i As Integer, FinalRow As Integer, s As
Integer, f As Integer)

This is how I am trying to call it:

Call Feeder (i, FinalRow, s, f)

The program gives a compiler error and sys
"ByRef Argument Type Mismatch"

I defined the four variables in my program as integers,
so I can't figure out why it isn't working. Thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 340
Default Public Sub Help

In the procedure that calls Feeder, are the variables i, FinalRow, s, f all
defined as integer?

You can also call it by the following:

Feeder i, FinalRow, s, f

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

wrote in message
...
This is the define line of my public function

Public Sub Feeder(i As Integer, FinalRow As Integer, s As
Integer, f As Integer)

This is how I am trying to call it:

Call Feeder (i, FinalRow, s, f)

The program gives a compiler error and sys
"ByRef Argument Type Mismatch"

I defined the four variables in my program as integers,
so I can't figure out why it isn't working. Thank you



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Public Sub Help

Are those variables defined in the macro that calls Feeder? If not, and you
don't have Option Explicit, it could be implicit variant variables.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

wrote in message
...
This is the define line of my public function

Public Sub Feeder(i As Integer, FinalRow As Integer, s As
Integer, f As Integer)

This is how I am trying to call it:

Call Feeder (i, FinalRow, s, f)

The program gives a compiler error and sys
"ByRef Argument Type Mismatch"

I defined the four variables in my program as integers,
so I can't figure out why it isn't working. Thank you



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Public Variables Jerry McNabb Excel Discussion (Misc queries) 0 February 24th 08 01:26 AM
Public Password Excel 2003 - SPB Excel Discussion (Misc queries) 2 May 23rd 07 11:08 PM
Using A Public Function / carl Excel Worksheet Functions 1 April 6th 06 09:13 PM
Public Function Monty Excel Discussion (Misc queries) 9 December 24th 04 06:35 PM
public declaration kevin Excel Programming 1 December 6th 03 07:00 PM


All times are GMT +1. The time now is 01:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"