LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Macro Polo

okay.....i like to think that i've used Excel for years,
and that i know it like the back of my hand....BUT....i'm
just getting started in a new job that involves using
Excel in a way that has really exposed some of its
complexities.

i have been asked to automate a few processes that one of
the departments here in my organization perform on a
regular basis in Excel. the staff opens up an Excel
spreadsheet, and they basically perform string
manipulation on most of the fields.....manually. i have
been working on figuring out how to automate this.

the coding itself was pretty easy for the most part. i
opened up the VBE and away i went. it didn't take long
before i was able to build a few "user defined functions"
that accomplish the same things that the staff was doing
manually.

what i need to do now is figure out how to implement a
macro that utilizes the few functions that i've written.

let me spell out an example for you:

A B
Bob Smith 123 Rocky Rd
Lisa Lowe 1322 My Lane
Dr. Harry Hower 987 Chimp St
Jim B. Kimson 773 Cayuga St
Lloyd Sowers IV 98 Hamner Pl

two columns.......what is required is that the last name
be pulled out of column A and inserted into a new column
inbetween A and B.

so, easy enough, i suppose.......i INSERT a new column
inbetween A and B. then, i type "=getlastname(a1)" into
the new b1 cell. poof......my function works and Smith
appears in the cell. then i copy and paste the contents
of b1 down the entire column. i need to automate
this.......AND

i would also like to be able set it up so that when i
enter in a new value in column A, that column B
automatically pulls the last name. the way it's set up
now, i have to copy and paste the function down into the
new column b cell.

now, i've recorded a macro while i ran through the process
i described above. then, to test the macro, i deleted the
column b, added a couple new records to column a, and ran
the macro. the result was that i got the last names
populated, but only so many as were done when i recorded
the macro. the new records had no last names in column b.

whew.....this has been a run on sentence from hell, and
i'm sorry if i'm going overboard.

i'm taking a book home to read this evening, and
hopefully, by tomorrow i will have a deeper understanding.

thank you in advance for any help you can provide!!!!


josh in tampa


 
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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 1 June 11th 05 12:44 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 0 June 10th 05 03:38 PM


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