Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default killing accents sos

Hi,

I'm working on a French system with Excel and text files
I copy and paste from and to text files opened from within excel

If I "paste" a value from the text file into excel like this :
range("a1").value =
then i loose the accents (they're actually transformed like "é" in "Ú"
(providing you can read this)

If I paste something i got from the texte file using selection.copy
then it gets through.

More curious,
if I make my selection (from Excel to Txt this time) like this
with sheets(...)
range(...).copy
and then paste PasteSpecial xlPasteValues
I also loose accents

while a
sheets(...).select
will keep the accents !

Any idea how i could always keep those damned accents ?
Thanks
Philippe
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default killing accents sos

Paste the text formats as well as the values
--
Gary''s Student


"Philippe" wrote:

Hi,

I'm working on a French system with Excel and text files
I copy and paste from and to text files opened from within excel

If I "paste" a value from the text file into excel like this :
range("a1").value =
then i loose the accents (they're actually transformed like "é" in "Ú"
(providing you can read this)

If I paste something i got from the texte file using selection.copy
then it gets through.

More curious,
if I make my selection (from Excel to Txt this time) like this
with sheets(...)
range(...).copy
and then paste PasteSpecial xlPasteValues
I also loose accents

while a
sheets(...).select
will keep the accents !

Any idea how i could always keep those damned accents ?
Thanks
Philippe

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default killing accents sos


it must be some sort of weird codepage problem..

have you tried following syntax?
Range(text!a1:a4).copy Range(sheet!b3:b7)

else maybe you need to save the opened text file as a
(temporary) excel file first?

or convert the text file from the codepage to unicode?
there wasa nice post recently from michel pierron
on how to use ado to do this for you, needs a bit of adapting..

google groups on : stream utf group:*excel*


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Philippe wrote :

Hi,

I'm working on a French system with Excel and text files
I copy and paste from and to text files opened from within excel

If I "paste" a value from the text file into excel like this :
range("a1").value =
then i loose the accents (they're actually transformed like "é" in
"Ú" (providing you can read this)

If I paste something i got from the texte file using selection.copy
then it gets through.

More curious,
if I make my selection (from Excel to Txt this time) like this
with sheets(...)
range(...).copy
and then paste PasteSpecial xlPasteValues
I also loose accents

while a
sheets(...).select
will keep the accents !

Any idea how i could always keep those damned accents ?
Thanks
Philippe

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you know any formula to delete accents? Eduardo Pinto Excel Worksheet Functions 8 April 2nd 23 08:31 PM
How does one apply letters with accents JMAO Excel Discussion (Misc queries) 2 May 30th 08 02:02 PM
Language accents nah Excel Programming 1 November 25th 05 03:04 AM
french accents in excel Mike Excel Worksheet Functions 2 January 18th 05 02:59 PM
add accents to text mtambeau Excel Discussion (Misc queries) 1 December 10th 04 09:41 PM


All times are GMT +1. The time now is 09:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"