Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
all asterisk which has placed unevenly in the same column of cells by
formulas? e.g. [ '12345678 ] change to [ 12345678 ] |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
Dim cell as Range
for each cell in selection if not cell.HasFormula then cell.formula = cell.Value end if Next -- Regards, Tom Ogilvy "ªü¤T" wrote in message ... all asterisk which has placed unevenly in the same column of cells by formulas? e.g. [ '12345678 ] change to [ 12345678 ] |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
Edit | Replace...
-- Regards, Tushar Mehta www.tushar-mehta.com Excel, PowerPoint, and VBA add-ins, tutorials Custom MS Office productivity solutions In article , says... all asterisk which has placed unevenly in the same column of cells by formulas? e.g. [ '12345678 ] change to [ 12345678 ] |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
tried but failed....anyway, thank you.
"Tushar Mehta" ¼¶¼g©ó¶l¥ó·s »D:MPG.1af8295d9fe2b34098978e@news-server... Edit | Replace... -- Regards, Tushar Mehta www.tushar-mehta.com Excel, PowerPoint, and VBA add-ins, tutorials Custom MS Office productivity solutions In article , says... all asterisk which has placed unevenly in the same column of cells by formulas? e.g. [ '12345678 ] change to [ 12345678 ] |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
Hi
try something like sub foo() with activesheet.range("A1:A100") .numberformat="0" .value=.value end with end sub -----Original Message----- all asterisk which has placed unevenly in the same column of cells by formulas? e.g. [ '12345678 ] change to [ 12345678 ] . |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
Sorry that I just want to remove the [ ' ] in front of cells with
numbers, say to change [ '1234 ] to become [ 1234 ]. Anyway, many thanks. "Tom Ogilvy" ¼¶¼g©ó¶l¥ó·s»D ... Dim cell as Range for each cell in selection if not cell.HasFormula then cell.formula = cell.Value end if Next -- Regards, Tom Ogilvy "ªü¤T" wrote in message ... all asterisk which has placed unevenly in the same column of cells by formulas? e.g. [ '12345678 ] change to [ 12345678 ] |
#7
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
Great, its work! Many thanks.
"Frank Kabel" ¼¶¼g©ó¶l¥ó·s»D ... Hi try something like sub foo() with activesheet.range("A1:A100") .numberformat="0" .value=.value end with end sub -----Original Message----- all asterisk which has placed unevenly in the same column of cells by formulas? e.g. [ '12345678 ] change to [ 12345678 ] . |
#8
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
The functionality of Frank's code is identical to mine - yet you imply that
mine does not work and his does. Did you bother to try mine? Why the negative response? Is the difference that you don't know how to add the sub declaration at the start and the End Sub statement on the End. Just interested in understanding what prevented you from using the solution provided - your own ineptitude or was there some technical problem? -- Regards, Tom Ogilvy "ªü¤T" wrote in message ... Great, its work! Many thanks. "Frank Kabel" ¼¶¼g©ó¶l¥ó·s»D ... Hi try something like sub foo() with activesheet.range("A1:A100") .numberformat="0" .value=.value end with end sub -----Original Message----- all asterisk which has placed unevenly in the same column of cells by formulas? e.g. [ '12345678 ] change to [ 12345678 ] . |
#9
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
I have tried both but I think your macro is trying to turn formulas to
values. My problem is just to remove the ' in front of numbers only. Really thanks to you and I will keep this macro program for my future problems. Regards "Tom Ogilvy" ¼¶¼g©ó¶l¥ó·s»D ... The functionality of Frank's code is identical to mine - yet you imply that mine does not work and his does. Did you bother to try mine? Why the negative response? Is the difference that you don't know how to add the sub declaration at the start and the End Sub statement on the End. Just interested in understanding what prevented you from using the solution provided - your own ineptitude or was there some technical problem? -- Regards, Tom Ogilvy "ªü¤T" wrote in message ... Great, its work! Many thanks. "Frank Kabel" ¼¶¼g©ó¶l¥ó·s»D ... Hi try something like sub foo() with activesheet.range("A1:A100") .numberformat="0" .value=.value end with end sub -----Original Message----- all asterisk which has placed unevenly in the same column of cells by formulas? e.g. [ '12345678 ] change to [ 12345678 ] . |
#10
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
I had a similar problem i.e. numbers with prefix ' causing the column to be left aligned
cell.HasFormula for such cells returns FALSE. Therefore, although cell.Value does remove the ', it is never executed. Did I miss something? I am using Win2000 & Excel 2000 |
#11
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
Sorry that I have misled you since wrongly use the word asterisk [ * ]
for a quotation mark [ ' ]. Regards Ah San "Tom Ogilvy" ¼¶¼g©ó¶l¥ó·s»D ... The functionality of Frank's code is identical to mine - yet you imply that mine does not work and his does. Did you bother to try mine? Why the negative response? Is the difference that you don't know how to add the sub declaration at the start and the End Sub statement on the End. Just interested in understanding what prevented you from using the solution provided - your own ineptitude or was there some technical problem? -- Regards, Tom Ogilvy "ªü¤T" wrote in message ... Great, its work! Many thanks. "Frank Kabel" ¼¶¼g©ó¶l¥ó·s»D ... Hi try something like sub foo() with activesheet.range("A1:A100") .numberformat="0" .value=.value end with end sub -----Original Message----- all asterisk which has placed unevenly in the same column of cells by formulas? e.g. [ '12345678 ] change to [ 12345678 ] . |
#12
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
The code works exactly as designed.
Not False = True, and the cell.Formula = Cell.Value is executed whenever the cell does not have a formula - exactly as designed. Sub Tester9() Dim cell As Range For Each cell In Selection If Not cell.HasFormula Then cell.Formula = cell.Value End If Next End Sub Maybe you tested with your own version and neglected the NOT statement. Did I miss something? I am using Win2000 & Excel 2000 Apparently -- Regards, Tom Ogilvy "AA2e72E" wrote in message ... I had a similar problem i.e. numbers with prefix ' causing the column to be left aligned. cell.HasFormula for such cells returns FALSE. Therefore, although cell.Value does remove the ', it is never executed. Did I miss something? I am using Win2000 & Excel 2000 |
#13
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there any method to remove...
I think your macro is trying to turn formulas to
values. I understand. It is your ineptitute. It is exactly the opposite. It keeps you from screwing up cells with formulas, unlike Frank's code which offers no such protection. (no criticism of Frank intended - no one is paying for turn key solutions). Thanks for explaining. Regards, Tom Ogilvy "ªü¤T" wrote in message ... I have tried both but I think your macro is trying to turn formulas to values. My problem is just to remove the ' in front of numbers only. Really thanks to you and I will keep this macro program for my future problems. Regards "Tom Ogilvy" ¼¶¼g©ó¶l¥ó·s»D ... The functionality of Frank's code is identical to mine - yet you imply that mine does not work and his does. Did you bother to try mine? Why the negative response? Is the difference that you don't know how to add the sub declaration at the start and the End Sub statement on the End. Just interested in understanding what prevented you from using the solution provided - your own ineptitude or was there some technical problem? -- Regards, Tom Ogilvy "ªü¤T" wrote in message ... Great, its work! Many thanks. "Frank Kabel" ¼¶¼g©ó¶l¥ó·s»D ... Hi try something like sub foo() with activesheet.range("A1:A100") .numberformat="0" .value=.value end with end sub -----Original Message----- all asterisk which has placed unevenly in the same column of cells by formulas? e.g. [ '12345678 ] change to [ 12345678 ] . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Please post this thread a correct full method, method about | New Users to Excel | |||
Please post this thread a complete correct method, method about te | New Users to Excel | |||
remove convert/extract the number from'12345.56; ie remove ' sign | Excel Worksheet Functions | |||
How do I remove hyperlink if 'remove' option is disabled | New Users to Excel | |||
Is there a "Non-Intersect" VBA method to remove a sub-range from a range? | Excel Programming |