+ Reply to Thread
Results 1 to 3 of 3

Counter for inputbox result

  1. #1
    Registered User
    Join Date
    11-15-2013
    Location
    U.S.A
    MS-Off Ver
    Excel 2010
    Posts
    24

    Counter for inputbox result

    I have a macro that displays data based on the name placed in an inputBox. The names are in a range, as the code loops thru the range I need to count how many times the name (that was supplied in the inputbox) appears
    . Any suggestions?

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Counter for inputbox result

    This Macro finds all occurrences of the word "Select" in your selected range.

    It then Selects all those occurrences

    It counts the number of selected cells and publishes that in A1

    Finally it changes the contents of the selected cells and a cell above and to the right of the selected cells.

    So.

    You should include elements of this in your macro.

    I will annotate the macro to help you but it is quite simple really.



    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-15-2013
    Location
    U.S.A
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Counter for inputbox result

    Hi Mehmetcik,

    Your solution worked perfectly. Thank you!

+ 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] Data Counter via InputBox
    By 4evra in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2013, 11:34 AM
  2. Using inputbox and counter as control, excel 2000
    By jerryskids in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2011, 12:30 PM
  3. Using a button to add a counter value to the searched result
    By exlnb2008 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2008, 10:41 AM
  4. [SOLVED] unexpected result from inputbox
    By HRman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2006, 05:15 PM
  5. A Login Macro, (Inputbox & MsgBox)..Need help with a counter.
    By Max via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2005, 04:05 PM

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