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: 573
Default Help with find and replace macro

Now I'm working on a macro to find and replace column headers in a
spreadsheet that the raw data I use in XL comes from. I've only got a
week left on my contract with the state which may be enough time to get
another set of data out to the counties. (Have applied for a full time
job here, so I might be back.)
I have 2 columns of data, starting at B40, in one workbook, call it
ABC. Column B contains the Source document headers I want to replace in
the other workbook, and Column C has the headers I want to replace them
with. I want to select the downloaded data worksheet, then run the
macro to go the the other workbook, get the old header in cell B40, try
to find it in row 1 in the downloaded datasheet and replace it with the
text in C40. Then go to B41, and repeat the procedure until it hits a
blank cell in column B. If it fails to find the text from column B,
just continue with the next cell in the column.
This will make reformatting the incoming datasheets much quicker, so I
can then copy them into the existing workbook with the new quarter's
data.
Can anyone point me in the right direction as to how to set this up? I
appreciate the help.

 
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 to Find and Replace R Storey Excel Discussion (Misc queries) 6 December 6th 06 07:04 PM
Find & Replace in VB macro JackC Excel Discussion (Misc queries) 1 August 24th 05 09:22 PM
find replace macro Todd L. Excel Programming 1 December 17th 04 06:09 PM
Find/replace macro VB Newbie Excel Programming 1 November 13th 04 01:48 AM
find and replace macro need help excelguru Excel Programming 3 April 30th 04 04:26 AM


All times are GMT +1. The time now is 02:45 AM.

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"