+ Reply to Thread
Results 1 to 5 of 5

Auto add and number rows in a worksheet and keeping format

Hybrid View

  1. #1
    Registered User
    Join Date
    01-26-2014
    Location
    South Africa
    MS-Off Ver
    Excel 365 (latest version)
    Posts
    29

    Auto add and number rows in a worksheet and keeping format

    Good afternoon

    I have a workbook that i use to track our cake orders.
    Now i have to keep adding rows to the worksheets because we are getting more and more orders. Now i have a VB Script that runs for those certain cell ranges. Everytime i add a row i need to modify the VB Script accordingly.

    What i would like to know is how would i be able to do the following?

    1. i would like to Have a work sheet with row A1:A14 visible and from A15 downwards hidden.
    2 When data is inserted into row A14 in column "B" and "enter" is pressed, then it would unhide A15 and add a row .
    3 Column "A1 downwards also needs to be automatically numbered when a row is added
    4 If data in column B is deleted then it should remove that row and hide it and rearrange the number sequence accordingly

    I really hope that makes sense?

    If anyone would be willing to help, it would be greatly appreciated.
    I have attached a test workbook to see what it looks like

    Test Workbook1.xlsm

    Regards,

    Pkool

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Auto add and number rows in a worksheet and keeping format

    get rid of all the colour fill and borders - explore the use of 'structured tables' they dynamically expand - negates the need to keep altering range sizes in your code - place your entire data on one sheet and extract to a template when you want to view individual months - create a UserForm to input your data including facility for updating/deleting - also place you entire range of products on an inventory sheet to select from.
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  3. #3
    Registered User
    Join Date
    01-26-2014
    Location
    South Africa
    MS-Off Ver
    Excel 365 (latest version)
    Posts
    29

    Re: Auto add and number rows in a worksheet and keeping format

    Morning Torachan

    Thank you for your advice. The only thing is we don't have an inventory sheet as 90% of our cakes are special designs and are all quoted accordingly.
    Will try find a way.

    Regards

  4. #4
    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,359

    Re: Auto add and number rows in a worksheet and keeping format

    The only thing is we don't have an inventory sheet . . .
    focus on the rest of the advice.
    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


  5. #5
    Registered User
    Join Date
    01-26-2014
    Location
    South Africa
    MS-Off Ver
    Excel 365 (latest version)
    Posts
    29

    Re: Auto add and number rows in a worksheet and keeping format

    I will definitely do that. I am busy working on it now and see what comes up.
    Thank you all for the advice. Only way to learn

    Have a great day further.

+ 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. Combine formula and text - keeping the number format...
    By sunriver61 in forum Excel General
    Replies: 3
    Last Post: 04-29-2022, 03:01 AM
  2. Copy One Worksheet to Another Keeping Cell Format and Conditional Formating
    By brentjohn in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-09-2020, 01:01 PM
  3. [SOLVED] Copy One Worksheet to Another Keeping Cell Format
    By brentjohn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2020, 05:22 PM
  4. [SOLVED] Adding new row keeping existing format all the wile keeping worksheet protected.
    By nsmjc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-13-2017, 02:53 PM
  5. Copy entire worksheet from one workbook to another, keeping layout and format
    By SamsTechAnswers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-02-2012, 08:53 PM
  6. Replies: 8
    Last Post: 10-27-2011, 03:28 PM
  7. [SOLVED] Time format to number while keeping value
    By Jim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2006, 01:50 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