Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Create a macro to move info from one column to another

I have a list that has first names and middle intiials in the same column. I
want to create a macro to cut the initial and the period and paste it into
the next column over.

I have recorded a macro that does it, once. But I don't understand how to
get it to keep working through the whole list.

Thanks.
--
John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Create a macro to move info from one column to another

Columns(6).Select
' now your code

or

ActiveCell.EntireColumn.Select
' now your code

--
Regards,
Tom Ogilvy

"John" wrote in message
...
I have a list that has first names and middle intiials in the same column.

I
want to create a macro to cut the initial and the period and paste it into
the next column over.

I have recorded a macro that does it, once. But I don't understand how to
get it to keep working through the whole list.

Thanks.
--
John



  #3   Report Post  
Posted to microsoft.public.excel.programming
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Create a macro to move info from one column to another

You need to make the macro be in a "For...Next..." or "For...While..." style.
add your recorded macro to a response and people can show you common ways of
expanding it to be more general.

"John" wrote:

I have a list that has first names and middle intiials in the same column. I
want to create a macro to cut the initial and the period and paste it into
the next column over.

I have recorded a macro that does it, once. But I don't understand how to
get it to keep working through the whole list.

Thanks.
--
John

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Create a macro to move info from one column to another

Tom,

Thanks, but it's the other code that I don't think works right.

I record what I want in the A1 cell, moving to B1.

But A2---B2, etc. doesn't work.

I'd like to be able to use " *." as the find sequence.

Thanks,
--
John


"Tom Ogilvy" wrote:

Columns(6).Select
' now your code

or

ActiveCell.EntireColumn.Select
' now your code

--
Regards,
Tom Ogilvy

"John" wrote in message
...
I have a list that has first names and middle intiials in the same column.

I
want to create a macro to cut the initial and the period and paste it into
the next column over.

I have recorded a macro that does it, once. But I don't understand how to
get it to keep working through the whole list.

Thanks.
--
John




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Create a macro to move info from one column to another

select the entire column and do Data=Text to Columns, selectr delimited and
in the next dialog, select space as the delimiter (assumes no first names
with embedded spaces).

This should do what you want to the entire column. to get code, turn on the
macro recorder while you do it manually.

--
Regards,
Tom Ogilvy

"John" wrote in message
...
Tom,

Thanks, but it's the other code that I don't think works right.

I record what I want in the A1 cell, moving to B1.

But A2---B2, etc. doesn't work.

I'd like to be able to use " *." as the find sequence.

Thanks,
--
John


"Tom Ogilvy" wrote:

Columns(6).Select
' now your code

or

ActiveCell.EntireColumn.Select
' now your code

--
Regards,
Tom Ogilvy

"John" wrote in message
...
I have a list that has first names and middle intiials in the same

column.
I
want to create a macro to cut the initial and the period and paste it

into
the next column over.

I have recorded a macro that does it, once. But I don't understand how

to
get it to keep working through the whole list.

Thanks.
--
John






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
how to move all info in column a to seperate columns ksauey Excel Discussion (Misc queries) 1 January 9th 09 06:00 AM
Macro to delete blank rows and move data/info samoan Excel Discussion (Misc queries) 3 September 19th 08 04:50 PM
Functions that will move info to a different location in column Bill R Excel Worksheet Functions 8 December 10th 07 11:36 PM
create a list dependant on info in a column Steve Excel Worksheet Functions 3 June 18th 07 05:11 PM
create macro to move label type data to column data JonathonWood9 Excel Programming 4 February 21st 05 10:53 PM


All times are GMT +1. The time now is 12:34 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"