+ Reply to Thread
Results 1 to 2 of 2

Loop, column A, return row even if blank

  1. #1
    Registered User
    Join Date
    08-05-2021
    Location
    Alaska
    MS-Off Ver
    365
    Posts
    1

    Unhappy Loop, column A, return row even if blank

    Good day gang.
    have a vbs script that works well. In my case it parses over 240 worksheets in the workbook and displays on my search sheet based on the target.address

    I have it only looping first 8 columns looking for a specific value, number or word, or partial.
    If my specific searched word shows up in any column it grabs the whole row, prints to search sheet (this is a sheet code) not a macro.
    My issue is,,,, if there is nothing in column "A" even if the target is met in one of the other column loops, it does NOT print the row.
    I cannot figure out how to still print row if nothing is in "A", and i am running out of non dented space on desk from my head. Works fine if any other column is empty, it just prints the row.

    Please Login or Register  to view this content.
    Thoughs?
    Last edited by Skot_snot; 08-06-2021 at 10:44 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Getting loopy from loops

    It is apparant that you did not bother to read the forum rules before agreeing to them.


    There are two issues with your post.

    1.
    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

    2.
    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. [SOLVED] Loops are driving me loopy! How to exit a loop as soon as condition fails
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-22-2016, 12:39 AM
  2. loopings driving me loopy
    By khalid79m in forum Excel General
    Replies: 1
    Last Post: 01-09-2007, 05:30 PM
  3. Loopy
    By Sparrow in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-26-2006, 09:13 PM
  4. Loopy question
    By J Shrimps, Jr. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2006, 03:25 PM
  5. Loopy?
    By AnthonyG in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2006, 10:00 AM
  6. [SOLVED] Going loopy on a loop
    By John in Surrey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2005, 01:00 PM
  7. [SOLVED] Loopy Code
    By Cody in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-29-2005, 01:05 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