Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am bringing code lines from a module over in to a worksheet and then
searching for a rem " ' " lines and removing them. BUT once the line is in a cell the ' does not show in any find comand so I can't find it to remove it. It shows in the formula bar still find don't find it. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Right click your sheet tab. view code and paste this in and run it Sub Kill_The_apostrophe() For Each c In ActiveSheet.UsedRange c.Formula = c.Formula Next End Sub Mike "oletrol" wrote: I am bringing code lines from a module over in to a worksheet and then searching for a rem " ' " lines and removing them. BUT once the line is in a cell the ' does not show in any find comand so I can't find it to remove it. It shows in the formula bar still find don't find it. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mike and thanks before going any farther.
I have been working on this now for several days and still not right You know that a ' as the first chr in a code line is like a rem chr. But when the line of code is copied to cell the first ' like an identifier to show the cell Text as viewed like('=2*2), it shows as =2*2 and without the ' it appears as the answer to the formula. I want to be able to find this first ' and then be able to delete the line or change the ' to something else So I can then find the other ' later in the code lines in the cells. The macro you suggested ealier (below) works like a dream to just remove all of the first ' but does Not allow me to check if first chr is a ' and do this or do else If I change this line to be c.Formula = chr(39) & c.Formula it will place an * in every cell in the range Weather it has an ' or not because chr(39) & c.formula is still * plus the existing blank formula. I know of formula, text, an value and what they represent. But I don't know if there are any other items things or names I could look for, or possibly change some option that would allow a ' to show or Be seen by vba to do something with the ' . Could I possibly turn of calculate and be able to do what I want. ........ Any help would be deeply appreciated Thanks Again Gene "Mike H" wrote in message ... Hi, Right click your sheet tab. view code and paste this in and run it Sub Kill_The_apostrophe() For Each c In ActiveSheet.UsedRange c.Formula = c.Formula Next End Sub Mike "oletrol" wrote: I am bringing code lines from a module over in to a worksheet and then searching for a rem " ' " lines and removing them. BUT once the line is in a cell the ' does not show in any find comand so I can't find it to remove it. It shows in the formula bar still find don't find it. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Removing an alpha characture from a column of numbers | Excel Worksheet Functions | |||
Find and Replace - delete the remainder of the text in the cell after my Find | Excel Programming | |||
NEED VBA TO SELECT A CELL; NOTE THE CELL VALUE;COPYADJ CELL;FIND CELL VALUE IN A RANGE AND SO ON | Excel Programming | |||
Find First Non blank cell than find column header and return that value | Excel Worksheet Functions | |||
use find twice to find cell on a specific row | Excel Programming |