Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default ?? Create a Public SUB with an array as parameter. ??


I created a class

public sub FindInIt(myArray() as double)
...
€¦
End sub

When Im creating an object to call that sub ,
Obj.FindInIt(ThisismyArray) then

I receive an error message that says €¦. Compile error expected =

like if it was a function. My question is can I pass an array by reference?

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default ?? Create a Public SUB with an array as parameter. ??

Read the VBA help on the Call statement.

NickHK

"Barb" wrote in message
...

I created a class

public sub FindInIt(myArray() as double)
..
.
End sub

When I'm creating an object to call that sub ,
Obj.FindInIt(ThisismyArray) then

I receive an error message that says .. Compile error expected =

like if it was a function. My question is can I pass an array by

reference?

Thanks.



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 array bobbo Excel Programming 1 October 17th 06 07:06 PM
public array AD108 Excel Programming 6 August 11th 06 07:19 AM
public array Circe[_2_] Excel Programming 6 May 17th 05 11:45 PM
ReDim Object array as parameter of Variant array Peter T Excel Programming 4 May 10th 05 02:11 PM
Public Array Brent McIntyre Excel Programming 5 September 23rd 03 12:53 AM


All times are GMT +1. The time now is 06:48 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"