Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Find and replace '

Hello, is there a way to search for the apostrophe (') character with the
Find button?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
RWN RWN is offline
external usenet poster
 
Posts: 104
Default Find and replace '

Am I missing the problem here?
Edit-Find
"Find What" - '

If you record it as a macro you get ;
Cells.Find(What:="'", After:=ActiveCell, LookIn:=xlFormulas,
LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:=False) _
.Activate

xl2k
--
Regards;
Rob
------------------------------------------------------------------------
"Daniel" wrote in message
...
Hello, is there a way to search for the apostrophe (') character with

the
Find button?

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Find and replace '

Using: Edit-Find I am getting "... cannnot find the data..."

Using the macro, I am getting Erorr 91 "Object variable or with block
variable not set",

I can search for anything else but the apostrophe.

Thanks (using Office 2000)
Daniel

"RWN" a écrit dans le message de
...
Am I missing the problem here?
Edit-Find
"Find What" - '

If you record it as a macro you get ;
Cells.Find(What:="'", After:=ActiveCell, LookIn:=xlFormulas,
LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:=False) _
.Activate

xl2k
--
Regards;
Rob
------------------------------------------------------------------------
"Daniel" wrote in message
...
Hello, is there a way to search for the apostrophe (') character with

the
Find button?

Thanks






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Find and replace '

If you mean used as the first character in a cell, then that is considered a
formatting character and Find won't find it to the best of my knowledge.

--
Regards,
Tom Ogilvy

Daniel wrote in message
...
Hello, is there a way to search for the apostrophe (') character with the
Find button?

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Find and replace '

Not if the apostrophe is the prefix character. To get around it use VBA:

Sub RemApos()
Dim rngArea As Range
For Each rngArea In ActiveSheet.Cells. _
SpecialCells(xlCellTypeConstants).Areas
rngArea.Value = rngArea.Value
Next
End Sub


"Daniel" wrote in message
...
Hello, is there a way to search for the apostrophe (') character with the
Find button?

Thanks






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Find and replace '

This is great. Thanks Tim. Thanks also Tom for the explanation.

Daniel
__________________
"Tim Zych" a écrit dans le message de
...
Not if the apostrophe is the prefix character. To get around it use VBA:

Sub RemApos()
Dim rngArea As Range
For Each rngArea In ActiveSheet.Cells. _
SpecialCells(xlCellTypeConstants).Areas
rngArea.Value = rngArea.Value
Next
End Sub


"Daniel" wrote in message
...
Hello, is there a way to search for the apostrophe (') character with

the
Find button?

Thanks






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find & Replace: find part cell, replace whole cell katy Excel Worksheet Functions 3 April 3rd 23 01:20 PM
Find and Replace - Replace with Blank Space Studebaker Excel Discussion (Misc queries) 4 April 3rd 23 10:55 AM
Copy contents of Find (Find and Replace) rob_bob Excel Discussion (Misc queries) 0 March 26th 09 11:01 PM
where to put results of find operation in find and replace functio DEP Excel Worksheet Functions 5 November 15th 06 07:52 PM
find and replace - replace data in rows to separated by commas msdker Excel Worksheet Functions 1 April 15th 06 01:00 AM


All times are GMT +1. The time now is 08:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"