Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default The @ symbol

I'm reading this as the import of the data works fine--but subsequently, you
make a change to cells that start with that @ symbol.

And then all heck breaks lose.

Excel does change that leading @ to an equal sign -- even if the cell was
formatted to text before the change. Then it burps if the resulting change
would not have been a valid function.

This seemed to work ok for me:
Select the range to change
edit|replace
what: @
with: '@ (apostrophe @)
replace all

The cells that begin with @ will still look nice in the cell -- but you'll see
the leading apostrophe in the formula bar. The cells that have @ somewhere in
the middle will now look like asdf'@qwer (with that newly embedded apostrophe).

Then do your real edit|replaces. That leading apostrophe will keep the cell
text even after the change.

Then clean up your mess.

Selec the range again (if you have to)
edit|replace
what: '@
with: @
replace all

Excel won't touch that prefixcharacter, but will remove the embedded
apostrophe's. (This can often be a curse. But for you it's a nice feature.)

If you're using a macro, you could include the two extra edit|replaces in your
code, too.

GeraldM wrote:

I am importing text into a range of cells then processing it using a VBA
macro to replace particular characters.

However if the imported text starts with the @ character the replacement
routine does not process that cell or subsequent cells.

In this instance, because I control the exported data, I have simply added a
"Space" character before the @ symbol prior to exporting.

However this may not always be an option.

Does anyone have any suggestions on how to force the replace function to
treat the @ symbol as a normal character?

Regards GeraldM


--

Dave Peterson


 
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
SYMBOL ¦please help how do i do this symbol without copy/pasting i babybloo Excel Worksheet Functions 1 June 26th 08 08:29 AM
Align dollar symbol, align currency symbol... Mark Excel Discussion (Misc queries) 1 April 9th 08 03:39 AM
What is this symbol and how do I get rid of it. HoganD87 Excel Discussion (Misc queries) 3 August 20th 07 05:26 PM
what shortcut key do I use for the + symbol over the - symbol cherokee Excel Discussion (Misc queries) 5 July 14th 06 12:43 AM
I need a symbol but "symbol" in the Insert menu is grayed-out. Nothappy Excel Discussion (Misc queries) 2 May 3rd 05 12:16 AM


All times are GMT +1. The time now is 06:24 AM.

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

About Us

"It's about Microsoft Excel"