+ Reply to Thread
Results 1 to 6 of 6

Loop through Data, search and print out result

  1. #1
    Registered User
    Join Date
    07-01-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    51

    Loop through Data, search and print out result

    Hi, I have looked through a video and the video is a little similiar to what I am going to do. But there is some issue that I am facing and would need some advice.

    The problem I faced is that after printing out the data, I search again, it will have repeated search result. I am unsure of how to prevent this from happening.
    And also, how do I count the number of search results?

    I have attached my file for reference.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Loop through Data, search and print out result

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 08-18-2016 at 11:57 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    07-01-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    51

    Re: Loop through Data, search and print out result

    Thanks, it works..

  4. #4
    Registered User
    Join Date
    07-01-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    51

    Re: Loop through Data, search and print out result

    Hi AlphaFrog, just to enquire one more thing, if I want to search between a range of number. Example, I want to print the data based on user input address from and address to. How should I do that?
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Loop through Data, search and print out result

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-01-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    51

    Re: Loop through Data, search and print out result

    for the blk variable declaration, if I want to search with alphabet. E.g. 10A, I am unable to use Integer so what should I use? I have trried to string and it have error.
    Or can I just search based on the user input that it contains the integer within that range?
    Last edited by justin1202; 08-19-2016 at 11:35 PM.

+ 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] Loop through data validation list and only print sheets that are populated with data
    By Kamoo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-27-2016, 11:33 PM
  2. [SOLVED] print result cards automatically from result sheet
    By excellover2212 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-25-2014, 05:24 PM
  3. VBA Code - Search text & search number & search qty and result - Urgent Please
    By naresh73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2014, 10:51 AM
  4. Copy data in a loop from one sheet to another and return result
    By Big_Kev in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2014, 04:50 PM
  5. Replies: 3
    Last Post: 09-28-2013, 02:03 PM
  6. Search for data within a Cell to determine result
    By dperry in forum Excel General
    Replies: 2
    Last Post: 05-19-2010, 10:31 PM
  7. simple loop through data and write result in cell
    By a94andwi in forum Excel General
    Replies: 6
    Last Post: 01-09-2007, 10:11 AM

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