Home |
Search |
Today's Posts |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Gary's Student,
That did it. I'm working in an old version of Excel at home. I do have 2000 at work and so I'll try the other syntax when I get there. Thanks also to DaveyJones and Mike Fogleman. You folks are great! Best Regards, Anita Gary''s Student wrote: I m sorry. REPLACE was introduced in Excel 2000. If you don't have REPLACE then we can use the older form: Sub gsnu2() Dim s As String s = "010-056" MsgBox (s) s = Application.Substitute(s, "-", "") MsgBox (s) End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Preserving date format | Excel Discussion (Misc queries) | |||
Preserving customization | Setting up and Configuration of Excel | |||
Preserving Formulas | Excel Discussion (Misc queries) | |||
creating a text record from a number preserving the leading zero | Excel Programming | |||
creating a text record from a number preserving the leading zero | Excel Programming |