+ Reply to Thread
Results 1 to 4 of 4

Help! edit multi-cells with conditions. Thank all of you!

  1. #1
    Registered User
    Join Date
    09-24-2017
    Location
    Thailand
    MS-Off Ver
    2013
    Posts
    2

    Question Help! edit multi-cells with conditions. Thank all of you!

    Hi, i am student, i need Macro to edit about 3000 quizzies like that ( i edited about ~ 200 quizzes). You can see below, every question contain { content } . I need { } is first variable to define as range to replace content in { } and Answer (A) or Answer (B/D/D) are 2nd variable to define.

    Exp: 4PoE5cI.png

    1. We defined Question 1 have { } and next we find in {} contain Answer (B) now Macro will replace (B) One year to
    /=(B) One year. Replace Other choice (A/C/D) to ~(A) Many years ~(C) Until next month ~(D) Today

    Question 1. For how long can this product be enjoyed?
    {
    (A) Many years
    (B) One year
    (C) Until next month
    (D) Today
    ####
    Answer (B)
    More: asd qwe eiquwei oquwoe uqiw ueqio quweo iqwuoe
    }

    ----------After running Macro-->
    Question 1. For how long can this product be enjoyed?
    {
    ~(A) Many years
    /=(B) One year
    ~(C) Until next month
    ~(D) Today
    ####
    Answer (B)
    More: asd qwe eiquwei oquwoe uqiw ueqio quweo iqwuoe
    }

    -------------------------------------------------------------------------------
    2. We defined Question 2 have { } and next we find in {} contain Answer (C) now Macro will replace (C) Four to /=(C) Four

    Question 2. How many different sizes does the product come in?
    {
    (A) A variety
    (B) Two
    (C) Four
    (D) One for each customer
    ####
    Answer (C)
    More: 123 13 1 4 1j4 k1jl4kj 1kl3 1k23jl1
    }

    ------------After running Macro-->
    Question 2. How many different sizes does the product come in?
    {
    ~(A) A variety
    ~(B) Two
    /=(C) Four
    ~(D) One for each customer
    ####
    Answer (C)
    More: 123 13 1 4 1j4 k1jl4kj 1kl3 1k23jl1
    }
    ------------------------------------------------------------------
    Other Forums:
    https://www.mrexcel.com/forum/excel-...k-all-you.html
    https://stackoverflow.com/questions/...ank-all-of-you
    https://www.excelforum.com/excel-pro...ll-of-you.html
    https://www.excelguru.ca/forums/show...ank-all-of-you!
    http://www.vbaexpress.com/forum/show...ank-all-of-you!


    Thank all of you!
    Last edited by imbaboy95; 09-25-2017 at 09:50 AM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Help! edit multi-cells with conditions. Thank all of you!

    Hi, welcome,
    I you ask me this looks like a task you have to do for a test or something like that.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Help! edit multi-cells with conditions. Thank all of you!

    Responses to this thread invited from time wasters only - cross-posted in one or two other forums.

    https://www.mrexcel.com/forum/excel-...k-all-you.html
    https://stackoverflow.com/questions/...ank-all-of-you
    https://www.excelforum.com/excel-pro...ll-of-you.html
    https://www.excelguru.ca/forums/show...ank-all-of-you!
    http://www.vbaexpress.com/forum/show...ank-all-of-you!


    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  4. #4
    Registered User
    Join Date
    09-24-2017
    Location
    Thailand
    MS-Off Ver
    2013
    Posts
    2

    Re: Help! edit multi-cells with conditions. Thank all of you!

    Thank Keebellah but i solved it.
    Thank Dominicb for remind me.
    Thank all of you !
    Regards!

+ 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. Ranking with multi conditions
    By ngocpdn in forum Excel General
    Replies: 2
    Last Post: 06-08-2017, 05:16 AM
  2. Accessible multi-line rich edit control
    By TomA4986 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2016, 01:17 PM
  3. Count it multi criteria accross multi cells
    By jfoley5197 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2013, 03:42 PM
  4. Replies: 19
    Last Post: 10-05-2012, 01:03 PM
  5. sum with multi conditions
    By sheryar in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 09-02-2009, 01:02 PM
  6. how to edit link for multi hyperlink?
    By long236541 in forum Excel General
    Replies: 0
    Last Post: 06-18-2009, 12:41 PM
  7. Multi Conditions
    By johntherevelato in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2005, 05:03 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