+ Reply to Thread
Results 1 to 6 of 6

Insert new row into invoice and retain formulas and formatting

  1. #1
    Registered User
    Join Date
    03-06-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Insert new row into invoice and retain formulas and formatting

    Hi i'm new to the forums,
    i have a excel invoice application and i want the invoice to extend dynamically and retain all the current formatting and formulas when i insert a new row at the bottom of the invoice.

    i currently have this code and what it does is it inserts a new row into the dynamic namerange (within the invoice) but it doesnt retain the formatting and formulas, any help would be great!

    Please Login or Register  to view this content.
    Last edited by korrigan; 03-07-2010 at 06:30 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    re: Insert new row into invoice and retain formulas and formatting

    Hi Korrigan. You may not need VBA for this. Excel's built-in "LIST" feature is designed for this very task.

    1) Click in the current table
    2) Press CTRL-L to activate the LIST WIZARD and follow the prompts to get it turned on
    3) There are now easy-reference filter dropdowns at the top of the data, very useful
    4) The data is now bounded by a blue border to indicate the active listrange
    5) The list will display an expansion row at the bottom of the table. Use any of the empty cells in this row and Excel will immediately expand the list to permanently include this row. All formatting and formulas transfer down from the row above.

    I use this all the time with great success.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-06-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    re: Insert new row into invoice and retain formulas and formatting

    Thanks JBeaucaire, i will give it a go

  4. #4
    Registered User
    Join Date
    03-06-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    re: Insert new row into invoice and retain formulas and formatting

    JBeaucaire i tried what you suggested but there is a problem as one of the columns in the invoice has been merged from 3 columns to one. So when i implement what you said it breaks the merged column back into 3 columns again, any ideas?

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: Insert new row into invoice and retain formulas and formatting

    Do a forum search,I have posted code to copy formulas in the last few days,although I agree you probably do not need VBA
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    03-06-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Insert new row into invoice and retain formulas and formatting

    Thanks JBeaucaire, turns out i just need to adjust my sheet and all work well now, thanks heaps

+ 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