Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7005003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:16:24+00:00 2026-05-27T21:16:24+00:00

So I have a custom function I developed in ExcelDNA and have it loaded

  • 0

So I have a custom function I developed in ExcelDNA and have it loaded up in Excel. It works fine when I type in parameters as strings and call the function, however, when I put those strings into cells and then pass them in by referencing the cell, it fails. Does anyone know what the problem could be?

Example:

If I type this into a cell: =GetDiscountFactor("USD", "EUR", "11/01/2011", "11/01/2011 16:00", "Bid")

It works – but this: =GetDiscountFactor(A2,B2,C2,D2,E2) fails, even though those cells are pointing to values that are identical to the ones I can type in.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:16:24+00:00Added an answer on May 27, 2026 at 9:16 pm

    It’s probably referencing the date/times as double or date. Change the parameters in your function to objects instead. E.g.,

    Public Function GetDiscountFactor(byval sUSD As String, ByVal sEUR As String _
      , ByVal oDate1 As Object, ByVal oDate2 As Object, ByVal sBid As String) 
    

    You can check to see what type of variable it is later in your code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom control that has the following prototype. Type.registerNamespace('Demo'); Demo.CustomTextBox = function(element)
I have used sendinput() function and windows keyboard hooks to develop a custom keyboard
I have a custom validation function in JavaScript in a user control on a
i have custom cell with 2 buttons(the function of these buttons is just to
I have a custom UITableViewCell. In its function - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier, I need
I have a load of php templates which uses a custom translate function __,
I have a function which takes a custom struct as the argument. how can
I have a custom developed WordPress plugin that is using jQuery 1.4 and for
I have custom coded several enterprise applications for mid to large organizations to use
I have custom errors configured in my web.config, but IIS 6.0 is returning the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.