Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visua Basic

Status
Not open for further replies.

bigb

Mechanical
Joined
Sep 17, 2002
Messages
12
Location
US
Hi

when I run my macro for excel in Visual basic I find this error:

Runtime error 1004

Method 'Range' of object' - Global' failed

I think the error is in this statement:

y = funct("abc", Range("abc"), 1)

--------------
The function has been defined as follows:

Declare Function funct Lib "hello.XLL" (ByVal sheetName As Variant, ByVal Range As Variant, ByVal lockFlag As Variant) As Long

Could you help me fix this problem.
Thanks
bigb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top