Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-06-2022, 12:00 AM
soroush.kalantari soroush.kalantari is offline Need help detecting the reason for a strange behavior of a UDF Windows 10 Need help detecting the reason for a strange behavior of a UDF Office 2016
Competent Performer
Need help detecting the reason for a strange behavior of a UDF
 
Join Date: Jun 2021
Posts: 124
soroush.kalantari is on a distinguished road
Default Need help detecting the reason for a strange behavior of a UDF

I have used a UDF function in sheet1!C7 and it shows me the expected result. But when I used this function in a cell outside sheet1 (sheet2!A1) with the same input, it unexpectedly showed me zero. (When I first wrote this UDF function in sheet2!A1, it gave me the expected result, but when I clicked on it, surprisingly its value changed and it showed zero. It seems this UDF function has this problem when dealing with inputs which are in another worksheet. The reason I am using this UDF function except Excel function like Vlookup is that my routine work in excel is such that I should constantly determine the value of some values that I do not know their exact position)


In addition to this problem, another problem is that when referring to another workbook, this UDF function gives #VALUE! Error when that workbook is closed.
It would be very kind of you, if you give me some guides on how to deal with such problems.
Attached Files
File Type: xlsm userdifiedmatch.xlsm (16.2 KB, 8 views)
Reply With Quote
 

Tags
udf function



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help detecting the reason for a strange behavior of a UDF Strange behavior with Word macro Ulodesk Word 5 06-04-2022 12:40 AM
Need help detecting the reason for a strange behavior of a UDF Strange Behavior with a Graph in Word RP McIntosh Drawing and Graphics 6 07-01-2019 08:29 PM
strange search behavior cyraxote Word VBA 0 05-05-2017 03:00 PM
Need help detecting the reason for a strange behavior of a UDF Strange macro behavior in 2016 Ulodesk Word VBA 5 04-02-2017 03:34 PM
Need help detecting the reason for a strange behavior of a UDF Pasting - strange behavior SatControl Word 5 02-14-2010 12:57 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:30 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft