how to get the format of this cell right?

P

ppeer

When I let go:

Selection.Replace " ", Replacement:="-", Lookat:=xlPart, _
SearchOrder:=xlByColumns,
MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False

" " is entered by means of an array:
Words = Array(" ", "+", "/", "---", "--", "&")

on a cell containing: 5 a
I would expect to get: 5-a as a result.

Unfortunately, it produces 5:00:00-AM. How can I solve this tiny but
frustrating problem?


best regards
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top