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

  • SEARCH
  • Home
  • 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 8998361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:00:57+00:00 2026-06-16T00:00:57+00:00

This is probably a quick fix, but I am new to VBA and I’m

  • 0

This is probably a quick fix, but I am new to VBA and I’m somewhat confused. I have a module:

Function classify (r As Range)
Debug.Print("Text")
End Function

Function foo(r As Range)
Debug.Print(r.Count)
End Function

There is working code before and after the module.

If, in a cell in excel, I write =foo(A1) and then press enter, I get the following output:

 1 
Text

Why? How did foo call classify? Moreover, if I just call ‘=classify(A1)’, I get

Text
Text

Has classify somehow been set to always get called? Any help is greatly appreciated

  • 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-06-16T00:00:57+00:00Added an answer on June 16, 2026 at 12:00 am

    The only way that I could reproduce your issue was with the following scenario:

    Cell A1:
    =foo(A1)
    
    Cell A2:
    =classify(A1)
    

    When updating cell A1 I get

    1
    Text
    

    I think this is due to the fact that Cell A2 has a reference to A1 so by updating A1 I also call the formula in A2 as it is referencing A1.

    Assuming your formula that you are entering is in A1 I would trace dependents to see where the other formula is.

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

Sidebar

Related Questions

This is probably a very quick fix, but I'm having trouble figuring out why
Quick question- I know this is probably really easy, but my excel skills have
I'm probably totally betraying my ignorance at this point, but I have pretty much
This is probably a simple question but i've been unable to find a quick
This is probably a simply routing issue but after a quick google I haven't
This is probably the worst question I have ever posted on Stack Overflow but
This has probably been asked before, but a quick search only brought up the
This is probably really easy for most of you. But I'm in need of
This is probably a super simple question, but I'm struggling to come up with
I am fairly new to JAVA and especially concurrency, so probably/hopefully this is fairly

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.