+ Reply to Thread
Results 1 to 2 of 2

VBA code to populate next empty cell with value above plus 1 until all rows are populated

  1. #1
    Registered User
    Join Date
    07-27-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    1

    VBA code to populate next empty cell with value above plus 1 until all rows are populated

    Hi Excel experts!

    I am creating a spreadsheet for a point of sale system. On the 'sales' sheet I have a command button for when a sale is complete. When clicked all of the data from that sheet moves into another sheet 'today's sales' and I need help with vba code to assign a receipt number to each completed sale. The first sale of the day should be receipt no. 1 and each thereafter goes up by 1. Some of the code on that command button is as below:

    Please Login or Register  to view this content.
    But this doesn't work for the first sale of the day because column G has a title 'receipt number' - the code can't add 1 to this value.

    Does anyone know a way to get around this?

    Thanks in advance for your help!

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: VBA code to populate next empty cell with value above plus 1 until all rows are popula

    Please Login or Register  to view this content.

+ 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] Last populated cell inc. Empty rows
    By Wheelie686 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-17-2015, 08:33 PM
  2. If Function Help- If Cell is populated with a date or Y Populate with N
    By mnunnley in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-01-2014, 11:44 AM
  3. Replies: 1
    Last Post: 03-19-2013, 09:57 AM
  4. Replies: 1
    Last Post: 03-19-2013, 09:18 AM
  5. Auto inserting empty rows into a populated sheet
    By Backroomgeeza in forum Excel General
    Replies: 4
    Last Post: 04-24-2012, 08:09 PM
  6. Recognizing Populated Cell, Using It To Populate Another
    By eyeball11 in forum Excel General
    Replies: 4
    Last Post: 04-13-2012, 07:59 AM
  7. Replies: 6
    Last Post: 04-21-2005, 01:06 PM

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