+ Reply to Thread
Results 1 to 6 of 6

Thread: Batch replace cell from list text

  1. #1
    Registered User
    Join Date
    10-25-2010
    Location
    Surabaya Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    15

    Batch replace cell from list text

    hello, i'am new here

    i have workbook with 6 sheet
    s0
    A
    47
    6
    16
    59
    18
    s1 a1 a
    s2 a1 a
    s3 a1 a
    s4 a1 a
    s5 a1 a

    can it caange in batch pocess?
    s1 a1 a47
    s2 a1 a6
    s3 a1 a16
    s4 a1 a59
    s5 a1 a18

    thanks for your help

    regard
    sino
    Attached Files Attached Files
    Last edited by sino; 10-25-2010 at 02:45 PM. Reason: Solved

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Batch replace cell from list text

    Click GO ADVANCED and use the paperclip icon to post up a demonstrative workbook. Show us.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-25-2010
    Location
    Surabaya Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Batch replace cell from list text

    Quote Originally Posted by JBeaucaire View Post
    Click GO ADVANCED and use the paperclip icon to post up a demonstrative workbook. Show us.
    thx JBeaucaire, sorry for my bad, i just upload it

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Batch replace cell from list text

    Something like this then:

    Option Explicit
    
    Sub UpdateA1()
    Dim ws As Long
    
    For ws = 2 To Sheets.Count
        With Sheets(ws).Range("A1")
            .Value = .Value & Sheets("Sheet").Range("A" & ws - 1)
        End With
    Next ws
    
    End Sub
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    10-25-2010
    Location
    Surabaya Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Batch replace cell from list text

    Thx alot JBeaucaire, your code is perfect

  6. #6
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Batch replace cell from list text

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0