Range.Find method sudenly not working.

Herakles

Well-known Member
Joined
Jul 5, 2020
Messages
927
Office Version
  1. 365
Platform
  1. Windows
Hi All

I have had some code in place for many weeks but now I find that that it fails in using the Range.Find method.

I have used this method to find the a cell in a given range a number of times and they all fail.
I use a date value in a variable of date type to find the first occurrence of a date in a range of dates.

Does anybody know what would influence the success of this function?

Is there a setting that I have inadvertively changed that would have this effect?

I am getting round it by looping through the ranges until I find the correct cell.
My data sets are very small so time is not an issue.

I just want to be able to depend on the range.find method.

Thanks for any help.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi,​
the Range.Find method always well works if only its parameters well fit the worksheet actual state​
just meaning something has changed within the worksheet …​
See also the VBA help to read it important notice.​
Try manually and once it works, operate again the same way with the Macro Recorder in order you can get the necessary parameters …​
 
Upvote 0
Save hazarding guesses a likely cause for your issue, would be helpful to forum if you could publish the code you are having these issue with.


Dave
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,509
Members
448,967
Latest member
screechyboy79

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top