Visual Basic and Excell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a spread sheet which has a single column of names in the format of
Allen, Paul etc. Is there a way to write a macro using visual basic to create
two columns, one for first name (Paul) and one for last name (Allen)? Column
has about three thousand names in single column format.

Appreciate your thoughts and comments.

Thanks
 
I have a spread sheet which has a single column of names in the format of
Allen, Paul etc. Is there a way to write a macro using visual basic to create
two columns, one for first name (Paul) and one for last name (Allen)? Column
has about three thousand names in single column format.

Appreciate your thoughts and comments.

Thanks

If you have completely described your requirements, then you could record a
macro while executing the Data Text to columns wizard, using "comma" as the
delimiter.


--ron
 
Ron What do you mean by "Data Text to columns wizard"? I don't understand.

Thanks
 
Ron What do you mean by "Data Text to columns wizard"? I don't understand.

On the main menu bar in Excel (the bar at the top), one of the drop down menus
is entitled "Data". One of the items on that menu is named "Text to Columns".
When you click on that item, you will bring up the "Convert Text to Columns
Wizard" dialog box.


--ron
 
Thanks Ron. I was just getting ready to post a note saying I found the way to
do the seperation. Data-text to Coumn-delimited. Works like a champ.

Thanks again
 
Thanks Ron. I was just going to post a reply to you. Clicking on Data--Text
to Columns-delimited works like a champ.

Thanks again
 
Thanks Ron. I was just going to post a reply to you. Clicking on Data--Text
to Columns-delimited works like a champ.

Glad you solved your problem. Thank you for the feedback.


--ron
 

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

Back
Top