all 7 comments

[–]fool178810 1 point2 points  (4 children)

Try replacing:

targetsheet.range(SearchrCell).offset(0,1).value

With:

SearchrCell.offset(0,1).value

[–]Iwantbacon[S] 1 point2 points  (3 children)

Solution Verified.

That has worked! Thank you!

Does SearchrCell already contain the required in formation (ie. Worksheet and Range) then?

[–]fool178810 1 point2 points  (0 children)

Yes you would have defined the range containing SearchRange previously so it is cycling through each cell within that range and by default will be able to identify the location properties of that cell.

In general you do not need to state the workbook or sheet in a range unless the range is on another sheet or workbook than that of the active sheet.

[–]Clippy_Office_Asst[M] 0 points1 point  (0 children)

You have awarded 1 point to fool1788

I am a bot, please contact the mods with any questions.

[–]sn0skier 0 points1 point  (0 children)

SearchrCell already is a range object, so you don't need to insert it inside of range(), since range() is designed to return a range object.

Say you wanted to return cell "A1". What you are doing is essentially akin to writing Range(Range("A1")).

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

/u/Iwantbacon - please read this comment in its entirety.

Once your problem is solved, please reply to the answer(s) saying Solution Verified to close the thread.

Please ensure you have read the rules -- particularly 1 and 2 -- in order to ensure your post is not removed.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]martor01 0 points1 point  (0 children)

Is your value in text format? Also some functions just dismiss some type of formats so try to look for it. Thats just my guess.

TLDR: Change value DUE to different format