LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
jay jay is offline
external usenet poster
 
Posts: 1
Default Help,, need macro to replace 'space' in list of names with "." (dot), then compare ss


Hi,

I am a newbie to macros and could use your experienced help.

1. I have a SS with a list of person names in colunm "A" which I want
to compare against a text-file list of names. If there is NO MATCH to
the text-file list, I want the persons name in column “A” to be copied
to the next column "B" starting at row one (1), to which the macro will
add an email extension such as "
2. In my column "A" of the SS, the names look like;

john m doe
suzy q diamond
boss skaggs
good o boy

3. The text-file (filename: ./DOCS/email_list.txt) list of email
names looks like:

,
,
,


4. So, to me the first step is convert the names in "A" by replacing
the 'space' character, with the " ." (dot) character. In my basic VB
reading, this appears to need a For-Next-Loop.(but I don't know the
details of how to put this all together yet).

5. After the ‘space-to-dot’ conversion in step #4 above, I think I need
another "For-each loop to compare each new name in column "A" (i.e. the
john.m.doe) compare it with 'any' name in the "Text" file, but,
ignoring the @server.com etc.

5A. If “NOT a MATCH” in #5 above, copy the current "A" list name to
column "B",(beginning at row #1 of "B") and append to the name
" (it is assumed that all individuals with have the same
email extension such as ').

Thanks for any help you can provide to this newbie !


--
jay
------------------------------------------------------------------------
jay's Profile:
http://www.excelforum.com/member.php...fo&userid=2377
View this thread: http://www.excelforum.com/showthread...hreadid=515874

 
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
Add To "Find & Replace" Drop Down List Minitman Excel Discussion (Misc queries) 0 November 25th 09 12:42 AM
Replace "dash" with "space" Turkey Excel Discussion (Misc queries) 2 April 30th 09 11:31 PM
"Out of Stack Space" Macro Error Adam Excel Discussion (Misc queries) 3 July 2nd 07 07:10 PM
Macro to Replace/Delete Text Using "Watchword" List? PBJ Excel Discussion (Misc queries) 10 June 29th 07 09:50 PM
how do I type "itis" without Excel putting a space "it is"? Max Excel Worksheet Functions 4 March 18th 07 10:22 PM


All times are GMT +1. The time now is 10:25 PM.

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"