+ Reply to Thread
Results 1 to 6 of 6

vba code to replace old values by new value with 2 type of criteria

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    vba code to replace old values by new value with 2 type of criteria

    Dear Experts

    i have set of range i want run formula on existing result only for where meet criteria from depends upon 3 difference column cells .

    i have vba code to run formula in column AK:AK only where cell is blank in range there only formula fill up but i expect run formula on existing values where criteria meets up in 3 column replace old values by new values....

    Please Login or Register  to view this content.
    find the attachment and look at code also where you find what i expect
    Attached Files Attached Files

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: vba code to replace old values by new value with 2 type of criteria

    Hi, breadwinner,

    could the Autofilter be used to narrow down the number of cells to work on in order to just have the cells visible which need to be altered?

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: vba code to replace old values by new value with 2 type of criteria

    Yes I can do autofilter on criteria but sometime i work on huge database.. file get struck some time that why i need formula on existing value

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: vba code to replace old values by new value with 2 type of criteria

    Hi, breadwinner,

    depending on the number of records the code may take a long time to go through all data. Please test it on a copy of your workbook first:
    Please Login or Register  to view this content.
    Ciao,
    Holger

  5. #5
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: vba code to replace old values by new value with 2 type of criteria

    Sir Amazing Master Piece code !!! works perfectly thanks

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: vba code to replace old values by new value with 2 type of criteria

    Hi, breadwinner,

    a small change should be made to the code:
    Please Login or Register  to view this content.
    Ciao,
    Holger

+ 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. replace code/id values with a name found in a list
    By ebbo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2015, 10:25 AM
  2. Replies: 2
    Last Post: 04-24-2013, 01:36 PM
  3. Code to Find and Replace Userform Values
    By ZEvans12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2011, 10:57 AM
  4. Summary of values, type A, type B, how is it done?
    By TorontoGOSH! in forum Excel General
    Replies: 2
    Last Post: 06-25-2009, 09:26 AM
  5. Replace Function:Replace" and type in
    By ronnyc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2007, 06:26 PM

Tags for this Thread

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