Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Visual Basic and Excell

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Visual Basic and Excell

On Sat, 26 Feb 2005 15:49:03 -0800, "ivanj"
wrote:

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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Visual Basic and Excell

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

Thanks

"Ron Rosenfeld" wrote:

On Sat, 26 Feb 2005 15:49:03 -0800, "ivanj"
wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Visual Basic and Excell

On Sat, 26 Feb 2005 17:53:01 -0800, "ivanj"
wrote:

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
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Visual Basic and Excell

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

"Ron Rosenfeld" wrote:

On Sat, 26 Feb 2005 17:53:01 -0800, "ivanj"
wrote:

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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Visual Basic and Excell

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

"Ron Rosenfeld" wrote:

On Sat, 26 Feb 2005 17:53:01 -0800, "ivanj"
wrote:

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

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Visual Basic and Excell

On Sat, 26 Feb 2005 19:05:03 -0800, "ivanj"
wrote:

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
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
Is Visual Basic the same as Visual Studio 2008? Mike Stewart Excel Worksheet Functions 5 January 11th 09 04:58 PM
Visual Basic Function works fine in Excell 2003 but not in Excel 2 Roger Excel Discussion (Misc queries) 8 August 1st 07 03:56 AM
visual basic jiwolf Excel Worksheet Functions 2 October 8th 05 09:12 PM
changing the visual basic in office 2003 to visual studio net bigdaddy3 Excel Discussion (Misc queries) 1 September 13th 05 10:57 AM


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

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"