View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
GS[_6_] GS[_6_] is offline
external usenet poster
 
Posts: 1,182
Default VBA question When I search to replace parentheses in excel it gives me "-" sign

Hello Garry,

I appreciate your support. My entire workbook is formatted as "Text"
and when I run the macro it converts (.140) to -0.14 and I see the
error telling me "Number Stored as Text". Is there a way I can work
around this issue?

Thanks


I don't get this conversion behavior when I 'set' the cells to 'Text'
on the 'Number' tab of the FormatCells dialog. Perhaps you could
'deliberately' format all cells before replacing...

Cells.NumberFormat = "@"
Cells.Replace...

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


 
ExcelBanter Database Error
Database Error Database error
The ExcelBanter database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.excelbanter.com home page, then try to open another page.
  • Click the Back button to try another link.
The www.excelbanter.com forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.