Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-06-2022, 05:17 AM
p45cal's Avatar
p45cal p45cal 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 2019
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

1. Don't name a module the same as a function - it'll confuse Excel.
2. You need to use sheet-qualified references. It will work on other sheets interrogating any (other) sheet within a workbook. The udf won't work on closed workbooks.
3 Pecoflyer's solution here: https://www.msofficeforums.com/169449-post4.html will work on closed workbooks. Be aware that this will give accurate results as long as:
Quote:
Originally Posted by soroush.kalantari View Post
The values which I want to determine their rows are unique and occur just one time
If you're using Office365 the formula can be written into a LET formula which means the range you're searching need only be referred to once in the formula, or easier, it could be written into a LAMBDA function which you'd use in just the same way as you're using the UDF I wrote for you earlier.
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 02:41 PM.


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