+ Reply to Thread
Results 1 to 4 of 4

Blank row & new sheet

  1. #1
    Registered User
    Join Date
    12-18-2008
    Location
    White Rock
    Posts
    76

    Blank row & new sheet

    I have a sheet with three shapes which will be used as buttons.
    ' shape1 ' when clicked needs to return the the first empty row on sheet ' inventoryA ' to cell A1
    ' shape2 ' needs to return the first empty row on sheet ' inventoryB ' to cell B1.
    And so on.

    The tricky part for me is I need a macro that could be applied to shape1 and shape2 yet still return the proper results. This is inticipation of having to add more buttons/shapes to my sheet.

    I figure I could possibly use the shapes' name to input variables into the macro.
    Something like shape1 is renamed to "shape1A", then reference the 'A', concatenate it with the word 'inventory', search sheet name 'inventoryA', then return the row number for the first empty row.

    I'm sorry if this is asking too much, but I would be most appreciative of any and all help.

    Thank you ahead of time =]


    -Aaron
    Last edited by Cheshire; 09-08-2009 at 03:46 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Blank row & new sheet

    ' shape1 ' when clicked needs to return the the first empty row on sheet ' inventoryA ' to cell A1
    What does that mean? insert a blank row?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-18-2008
    Location
    White Rock
    Posts
    76

    Re: Blank row & new sheet

    Sorry,
    To (attempt to) clarify:

    When the shape called 'shape1' is clicked, I need a macro to execute which first identifies which sheet is called 'inventoryA', then figured out the next empty row on that particular sheet, and to set the value of cell A1 to whatever the row number of the empty row on sheet 'inventoryA' was found to be.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Blank row & new sheet

    Please Login or Register  to view this content.
    Why not just use a formula?

+ 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