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: 144
Default Developing a macro that will help with mass address cleansing

Hi there,

I am trying to develop a macro which performs a mass find/replace of
numbered street suffixes. For example:

"1st" = "1"
"2nd" = "2"
..
..
..
"3th" = "3'"

I am fairly familiar with VBA. However I have not really used it in the
excel environment before. So far I have created a user form that asks the
user to input the column in which the address field is located (A, B, C,
etc...) and then I have written some code to select that column. The next
step would be to loop through this column to find the street suffixes and
replace them with their substitutions. I am assuming I would now have to use
the Find() and Replace() functions to do this, but I am having a bit of a
hard time doing this. So here is what I have so far.

------------------------------------------------
Private Sub CB1_Click()
Dim AddressRange As Range
Dim sUserRange As String

sUserRange = TB1.Text

ActiveSheet.Columns(sUserRange).Select

End Sub
------------------------------------------------

Its not much, but I do not know how to use the find/replace functions.

Any help would be excellent.

Jordan

 
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
Cleansing/Data Comparison between spreadsheets Cricketlang Excel Worksheet Functions 1 October 17th 09 12:23 AM
Request for Help in Developing a Macro for a Billing Application Steve Excel Programming 10 February 28th 08 10:06 PM
Developing macro event to allow multiple choices on drop down menu Brendan Excel Worksheet Functions 2 July 6th 06 04:31 PM
Mass population using a macro or something else? mira Excel Programming 2 September 20th 05 01:54 AM
Cleansing for CRM uploads Daniel Dimmock Excel Worksheet Functions 0 April 14th 05 11:42 AM


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