+ Reply to Thread
Results 1 to 4 of 4

Incrementing a variable - How to do?

  1. #1
    Registered User
    Join Date
    06-09-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    92

    Incrementing a variable - How to do?

    Please Login or Register  to view this content.
    Hello all, I have this code, and I want to add in a 'restart-box' case, which when entered, will remove all the rows since the last new box. I imagine I would have to increment a variable every time something other than new box is entered, but I have no idea how to do this via VBA, any help will be greatly appreciated.
    Regards,
    Usman.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Incrementing a variable - How to do?

    Not sure what you are trying to do and the way....

    code to go back to last new box
    Please explain theabove quotes for better understanding


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    06-09-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Incrementing a variable - How to do?

    Hello SixthSense, basically I have the following document:

    TEST.xlsx


    The user will scan 'NEW-BOX', and then scan barcodes, this number of barcodes will vary but will need to be kept track off, if the user makes a mistake I would like it so that they scan a 'RESTART-BOX' barcode and then it goes back.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Incrementing a variable - How to do?

    Sorry I am unable to understand the logic and I hope someone will take care of this...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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