+ Reply to Thread
Results 1 to 4 of 4

Refrence next blank cell to repeat VBA Code

  1. #1
    Registered User
    Join Date
    04-05-2011
    Location
    Melbourne Vic AUS
    MS-Off Ver
    Excel 2003
    Posts
    3

    Refrence next blank cell to repeat VBA Code

    Hi All,
    First go here so i hope someone can help me out. I have recorded a macro that copies the date and other selected data on the attached spread sheet to create a history of my Count and Purchase Colums, but what i need the macro to do now is have it repeat for every time i do a new count, so it selects the next blank cell in Row 10 and pastes the new count and purchase that i do there thus creating a history.
    Hoping some one can help me out


    Cheers,
    Austin
    Attached Files Attached Files
    Last edited by SirAustin1; 04-05-2011 at 03:55 AM. Reason: Broke the rules first go

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,324

    Re: Refrence next blank cell to repeat VBA Code

    Welcome to the forum SirAustin1.

    Please take a moment to read the Forum rules and add CODE tags to your code example.

    It may help others to help you if you post a sample workbook with some typical data rather than post the code out of context.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,324

    Re: Refrence next blank cell to repeat VBA Code

    Thanks for updating the post.

    You're probably better using row 11 as the merged cells in row 10 won't give you what you want/expect.

    Please Login or Register  to view this content.
    The first example gives you the next free column in row 11 and the second gives you the next available cell address on row 10.

    In the VB Code, you would use something like:

    Please Login or Register  to view this content.
    Hope this helps.

    Regards

  4. #4
    Registered User
    Join Date
    04-05-2011
    Location
    Melbourne Vic AUS
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Refrence next blank cell to repeat VBA Code

    Thanks for the advise so far, I have added in the codes to refrence the next available cell, unmerged cells where it was said it may be a problem but still the macro runs over the same spot and im trying to get it to repeat itself. Since it is my birthday today and i have blown out my candles, i would like to wish for someone to help me figure this one out. I have reattached the spread sheet.
    Last edited by SirAustin1; 04-11-2011 at 02:34 AM.

+ 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