ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   "Find" function question - No code required (https://www.excelbanter.com/excel-discussion-misc-queries/229966-find-function-question-no-code-required.html)

N1KO

"Find" function question - No code required
 
I'm trying to use the find function in a macro but form some reason it won't
find anything inserted onto the sheet via a macro.

I'm testing it out with a value i've typed in and a value that's been
inserted into a cell via a macro.

It'll only find the one that's been typed in..........

Is this normal cause its doing my nut in!

Thanks in advance

Dave Peterson

"Find" function question - No code required
 
Are you specifying all the parms that go in that .find statement?

If not, then you're inheriting whatever was used right before that line of code
runs--and that could be something your code did, something someone else's code
did, or even what the user did.

So if the user found something and matched entire cell contents, you may not
find your string if wanted xlpart (or match case or ...).

And if there's a chance that the cell is hidden (by an autofilter), try
searching through formulas instead of values.

If none of this helps, share the line of code, the value that you're looking
for, and the range where you're searching.

N1KO wrote:

I'm trying to use the find function in a macro but form some reason it won't
find anything inserted onto the sheet via a macro.

I'm testing it out with a value i've typed in and a value that's been
inserted into a cell via a macro.

It'll only find the one that's been typed in..........

Is this normal cause its doing my nut in!

Thanks in advance


--

Dave Peterson


All times are GMT +1. The time now is 06:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com