- Joined
- Sep 26, 2012
- Messages
- 2
- Reaction score
- 0
Hello,
In Excel 2007, Having thousands of cells with text having a leading apostrophe, I used this macro to auto remove the apostrophes.
Then when using the same file and macro in Excel 2010, after runing the macro I can't remove the apostrophes at all! It doesn't give any error but it's not working, anyone can tell me why?
Bottom line is: Macro working perfect in vs2007, why not in 2010
I've attatched the file (only the 1st and 2nd "names" contain the apostrophes)
OBS:
- Also tried without sucess 3 or 4 diferent types of macros found in other foruns
- The copy-paste values and add doesn't work and the copy blank cell etc
- In Excel Options/advanced - Transition navigation keys: Disabled
- Also tried saving in compatibility mode 2003-97
The macro:
Sub DeleteApostrophes()
Dim rCell As Range
For Each rCell In ActiveSheet.UsedRange
If rCell.PrefixCharacter = "'" Then
rCell.Value = rCell.Value
End If
Next rCell
End Sub
... seems that the file doesn't upload to this post, maybe it needs some sort of approval? I'm new here, sorry guys.
In Excel 2007, Having thousands of cells with text having a leading apostrophe, I used this macro to auto remove the apostrophes.
Then when using the same file and macro in Excel 2010, after runing the macro I can't remove the apostrophes at all! It doesn't give any error but it's not working, anyone can tell me why?
Bottom line is: Macro working perfect in vs2007, why not in 2010
I've attatched the file (only the 1st and 2nd "names" contain the apostrophes)
OBS:
- Also tried without sucess 3 or 4 diferent types of macros found in other foruns
- The copy-paste values and add doesn't work and the copy blank cell etc
- In Excel Options/advanced - Transition navigation keys: Disabled
- Also tried saving in compatibility mode 2003-97
The macro:
Sub DeleteApostrophes()
Dim rCell As Range
For Each rCell In ActiveSheet.UsedRange
If rCell.PrefixCharacter = "'" Then
rCell.Value = rCell.Value
End If
Next rCell
End Sub
... seems that the file doesn't upload to this post, maybe it needs some sort of approval? I'm new here, sorry guys.
Last edited: