+ Reply to Thread
Results 1 to 2 of 2

looking for a macro to search and replace within rows and the do the same in the next row

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    1

    Post looking for a macro to search and replace within rows and the do the same in the next row

    i have a csv file with one row, i copy and paste the row 50 times

    four of the columns (H, I, N, BJ,) have text including a number in them ie A1123, (the same number in each column )

    i am looking for a macro / script to search for "A1123" in each row and replace the number with the next consecutive number, right through the 50 rows

    so each row has consecutive numbers within the four columns

    ie row 1 will have A1123 in the 4 x cells

    row 2 will have A1124 inthe 4 cells
    ect ect
    Last edited by johnjones1962; 09-04-2013 at 02:12 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,972

    Re: looking for a macro to search and replace within rows and the do the same in the next

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Search and Replace for a limited rows
    By harshj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-23-2013, 01:11 AM
  2. Need a Macro 2 search rows for text and replace with column header...
    By XcelRookie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2012, 05:48 PM
  3. Search columns and rows by input and replace
    By ane1717 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2007, 08:01 AM
  4. Search and replace macro
    By timecop in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2007, 08:06 AM
  5. Search and Replace Rows
    By MaddMax in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2006, 12:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1