Issue with Excel 2003

G

Good Intentions

I have found that when I import information into Excel 2003, Hyphens ar
not converted to a longer type symbol (almost like 2 hypen widths).
I've seen it in Microsoft Access 2003 also. How can I get hyphens t
remain as hyphens. For example, if I type a hyphen it shows up as -.
But here's a copy of what gets imported —. as you can see it's wider.
This gets annoying especially when I use Access and what to type i
something for a query. Can you help me
 
N

Niek Otten

This response is from a newsgroup; your question has been (automatically) forwarded to here. I followed the link to your original
post at EXCELTIP.com and there indeed is a difference between the two hyphens. The long one is ASCII 151, the short one 45.
Sorry I can't help you any further

--
Kind regards,

Niek Otten


Niek Otten said:
<as you can see it's wider>

No. Both are ASCII 45
 
P

Peo Sjoblom

You could use something like this in a macro that will convert them to long
hyphens

Selection.Replace What:=Chr(45), Replacement:=Chr(151), LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Good Intentions"
 

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

Similar Threads

Fixing Error 2029 (#NAME?) 2
Avoid funny hyphenation 4
The long and short of it 2
LOOKUP function help 6
Automating find & replace 5
problem entering dates excel 2003 0
Help 1
Importing data with formatting mask 2

Top