+ Reply to Thread
Results 1 to 3 of 3

Code working only for a standard input. If input changes then code behaves differently

Hybrid View

  1. #1
    Registered User
    Join Date
    07-06-2018
    Location
    India
    MS-Off Ver
    7
    Posts
    18

    Code working only for a standard input. If input changes then code behaves differently

    Hi friends,

    Iam new to macros and VBA. I have to develop an seating plan with the following rules. In a bench if a 3rd standard child sits then next to that child only a 4th standard child has to sit and behind a 3rd standard child ,a 3rd child or a 5th standard child can sit. Behind a 4th standard child a 4th or 6th standard child can sit. After filling the seats for 3rd and 4th only I take up 5th and 6th. Same rule applies. In a bench if a 5th standard child sits then next to him a 6th child sits and behind a 5th standard child ,a 5th child or a 7th standard child can sit. Behind a 6th standard child a 6th or 8th standard child can sit. and goes on. When I feed less data the logic works fine. If i feed more 3rd standard students and less 4th or vice versa then the code doesn't work properly. I have attached the sample data , expected output and current output. Request the support and help to fix this issue.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-06-2018
    Location
    India
    MS-Off Ver
    7
    Posts
    18

    Re: Code working only for a standard input. If input changes then code behaves differently

    Have uploaded one more sheet which says the sample design
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-06-2018
    Location
    India
    MS-Off Ver
    7
    Posts
    18

    Re: Code working only for a standard input. If input changes then code behaves differently

    hi.. Can somebody help me please

+ 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] Input boxes in working code
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2014, 05:26 AM
  2. [SOLVED] Need input box in working code
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2014, 08:45 AM
  3. [SOLVED] Remove input boxes in working code
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2013, 07:45 PM
  4. User input variables Code not working
    By LeapingLizard in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2012, 10:58 PM
  5. [SOLVED] Code behaves differently between "step into" and running outright
    By theletterh in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 04-13-2012, 09:52 AM
  6. VBA code behaves differently while stepping?
    By mhni in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-10-2009, 09:01 AM
  7. [SOLVED] Pause code, wait for input, no input received, carry on with the code
    By johnd@arm.co.uk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2005, 08:05 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