+ Reply to Thread
Results 1 to 5 of 5

Problem with counters and nested for

  1. #1
    Registered User
    Join Date
    10-22-2015
    Location
    Mexico
    MS-Off Ver
    2013
    Posts
    15

    Unhappy Problem with counters and nested for

    The problem I have can be found in the following workbook:
    In worksheet "tabla" there's a button called "Reporte semanal"
    You can type either Agosto or Septiembre in the first inputbox, then 2015 in the second one. With "Agosto" the program runs well, but in "Septiembre" it gives some random blank rows. The problem is probably in the nested fors with the counters in the code, but I cant figure out what the problem is. Also if you have any suggestions to make what Im trying to do with my code better, feel free to tell me. It would be great.
    Thanks a lot for your time!
    Attached Files Attached Files
    Last edited by alexholly; 10-22-2015 at 04:17 PM. Reason: File attached

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Problem with counters and nested for

    Duplicate Post. See http://www.excelforum.com/excel-prog...-counters.html

  3. #3
    Registered User
    Join Date
    10-22-2015
    Location
    Mexico
    MS-Off Ver
    2013
    Posts
    15

    Re: Problem with counters and nested for

    I know, I asked to delete this entire post because I was not clear in exposing my problem. Sorry

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Problem with counters and nested for

    Wild shot


    Kind regards
    Leo
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-22-2015
    Location
    Mexico
    MS-Off Ver
    2013
    Posts
    15

    Re: Problem with counters and nested for

    Hello Leo, thanks for taking your time. You almost got it, the thing is if it says operando or fondeando, it should display the result anyways in the report. I think I finally found the solution:
    Please Login or Register  to view this content.
    kind regards and have a great weekend!

+ 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. How to create two counters
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2015, 02:12 PM
  2. Need to setup 3 different counters
    By vicstone in forum Excel General
    Replies: 4
    Last Post: 05-18-2010, 10:59 PM
  3. if statements and counters
    By lilkatielady in forum Excel General
    Replies: 2
    Last Post: 07-10-2009, 04:00 AM
  4. Counters
    By halem2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2006, 04:59 PM
  5. [SOLVED] INVOICE COUNTERS
    By omega25 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-16-2005, 06:25 PM
  6. INVOICE COUNTERS
    By omega25 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-16-2005, 06:25 PM
  7. Counters
    By Paul in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2005, 10:06 AM

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