Finding special characters

QuiksilverHg

New Member
Joined
Jul 2, 2011
Messages
4
I'm trying to make a legend for a schedule-writer I'm making. I only want to put parts of the legend in if that character is actually used that day. So what I'm trying to do is search a range for a character and then if it is there add that to the legend.

The problem is what I'm searching for are special characters like ?, ^, ! etc.

I've been trying to use the find function like this:
sheets(1).Range("C27","AJ46").find(?)

It returns an error though when I use the ?, then if I try to put it in quotes "?" or make a string using cstr(?) it returns every cell as valid as if it's a wild. (the find function in excel seems to do the same thing)

So my question is how do I make it search for the character "?" (and other special characters) vice having excel use it as a wild?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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