Function Argument -> #Value
Function Argument -> #Value
Function Argument -> #Value
Function Argument -> #Value
Function Argument -> #Value
Function Argument -> #Value Function Argument -> #Value Function Argument -> #Value Function Argument -> #Value Function Argument -> #Value Function Argument -> #Value Function Argument -> #Value Function Argument -> #Value
Function Argument -> #Value Function Argument -> #Value
Function Argument -> #Value
Go Back  Xtreme Visual Basic Talk > > > > Function Argument -> #Value


Reply
 
Thread Tools Display Modes
  #1  
Old 10-31-2011, 11:39 PM
nsilva nsilva is offline
Newcomer
 
Join Date: Oct 2011
Posts: 1
Default Function Argument -> #Value


I'm fairly new to VBA, so bear with me if this is a really simple solution. I have a function declared in the Workbook Module with some mandatory arguments

When I call the function in the active worksheet
Code:
interpol(Curves!E3,A1,B2,C3)
It returns an error because of the Curves!E3 argument, if I change this argument to a Cel from the current active worksheet, it works like a charm.

Anything that I'm missing in how to pass an argument from a different worksheet?
Reply With Quote
  #2  
Old 11-01-2011, 05:56 AM
DrPunk's Avatar
DrPunkFunction Argument -> #Value DrPunk is offline
Senior Contributor

* Expert *
 
Join Date: Apr 2003
Location: Never where I want to be
Posts: 1,403
Default

I don't know excel vba much but due to lack of other responses I'll have a try.

Is it the syntax of how you're refering to the cell in the other sheet?

I would have expected it to look something like...
Code:
interpol(Worksheets("Curves").Range("E3"), A1, B2, C3)
But I have no idea if that will work or not.
__________________
There are no computers in heaven!
Reply With Quote
  #3  
Old 11-01-2011, 06:12 AM
TheRealTinTin's Avatar
TheRealTinTin TheRealTinTin is offline
Junior Contributor
 
Join Date: Nov 2008
Location: Glasgow, UK
Posts: 383
Default

Hi nsilva and welcome.

Can you post the code for the function you're trying to reference so we can see how it all works?
Reply With Quote
Reply

Tags
argument, function


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Function Argument -> #Value
Function Argument -> #Value
Function Argument -> #Value Function Argument -> #Value
Function Argument -> #Value
Function Argument -> #Value
Function Argument -> #Value Function Argument -> #Value Function Argument -> #Value Function Argument -> #Value Function Argument -> #Value Function Argument -> #Value Function Argument -> #Value
Function Argument -> #Value
Function Argument -> #Value
 
Function Argument -> #Value
Function Argument -> #Value
 
-->