+ Reply to Thread
Results 1 to 5 of 5

ForLoop VBA for multiple range

  1. #1
    Registered User
    Join Date
    11-01-2018
    Location
    Singapore
    MS-Off Ver
    2015
    Posts
    1

    ForLoop VBA for multiple range

    Hi,

    I am having some issues with coming up with a VBA code that runs to lookup one column for "text" and If "text", copy ActiveCellOffset(0,1) to another sheet.
    Whenever a "text" is detected and copy, the next sheet output cell has to insert another row.

    'Lookup Column 2 for "Fail" and copy next column cell to output into next sheet

    A Pass Explanation1 -Skip row
    B Pass Explanation2 -Skip row
    C Fail Explanation3 -Copy explanation3 and output other sheet
    D Fail Explanation4 -Copy explanation4 and output other sheet below explanation3

    Help is very appreciated T-T
    -CH

  2. #2
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,268

    Re: ForLoop VBA for multiple range

    Give your picture before and after that
    "ThankyouFor Attention * And Your Help!!"

  3. #3
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: ForLoop VBA for multiple range

    Without any sample it is hard to imagin

    let's try below code and attached file

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,268
    Quote Originally Posted by chee321 View Post
    Hi,

    I am having some issues with coming up with a VBA code that runs to lookup one column for "text" and If "text", copy ActiveCellOffset(0,1) to another sheet.
    Whenever a "text" is detected and copy, the next sheet output cell has to insert another row.

    'Lookup Column 2 for "Fail" and copy next column cell to output into next sheet

    A Pass Explanation1 -Skip row
    B Pass Explanation2 -Skip row
    C Fail Explanation3 -Copy explanation3 and output other sheet
    D Fail Explanation4 -Copy explanation4 and output other sheet below explanation3

    Help is very appreciated T-T
    -CH
    Perhab like this only idea not test
    Please Login or Register  to view this content.
    Last edited by daboho; 11-01-2018 at 03:11 AM.

  5. #5
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,268

    Re: ForLoop VBA for multiple range

    Or like this only idea not test
    Please Login or Register  to view this content.

+ 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. Copy range A of cells if value is in range B & paste in range B/Multiple Or
    By Jeremycad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2018, 04:28 AM
  2. Replies: 2
    Last Post: 01-20-2017, 04:27 PM
  3. Fill Label caption sourcing data from worksheet - Userform forloop
    By harin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-10-2016, 05:15 PM
  4. [SOLVED] Synthaxe issue on Sumif in a forloop
    By DamienR in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-12-2013, 12:14 AM
  5. [SOLVED] Macro DtRNG as Range, Dt as Range, Multiple Criteria or dates
    By Jack7774 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 03-18-2013, 03:46 PM
  6. Replies: 6
    Last Post: 11-11-2012, 12:40 AM
  7. [SOLVED] Copy range from multiple sheets, into a master sheet and moving over by variable col range
    By g1eagle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2012, 01:36 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