ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   parsing email address into another email string (https://www.excelbanter.com/excel-programming/420071-parsing-email-address-into-another-email-string.html)

ssylee

parsing email address into another email string
 
I'm trying to parse a list of email addresses into a different type of
string as follows:

For example, if I want to use to make a string
that says ",
how would you suggest me to separate the content that is before and
after the '@' character?

Thanks.

Rick Rothstein

parsing email address into another email string
 
If your text string is really what you showed us, then you don't need to
parse anything... simply replace the @ symbol in the address with an = sign
and then concatenate the fixed text around it...

"

--
Rick (MVP - Excel)


"ssylee" wrote in message
...
I'm trying to parse a list of email addresses into a different type of
string as follows:

For example, if I want to use to make a string
that says ",
how would you suggest me to separate the content that is before and
after the '@' character?

Thanks.



Rick Rothstein

parsing email address into another email string
 
Although now that I notice we are in the programming newsgroup, you probably
want this in VBA. The structure is the same except that the function name is
Replace in VB...

="ftm-officers-subscribe-" & Replace(Range("A1").Value, "@", "=") &
"

The above will probably word-wrap in your newsreader, but it is supposed to
be all on one line.

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
If your text string is really what you showed us, then you don't need to
parse anything... simply replace the @ symbol in the address with an =
sign and then concatenate the fixed text around it...

"

--
Rick (MVP - Excel)


"ssylee" wrote in message
...
I'm trying to parse a list of email addresses into a different type of
string as follows:

For example, if I want to use to make a string
that says ",
how would you suggest me to separate the content that is before and
after the '@' character?

Thanks.





All times are GMT +1. The time now is 11:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com