+ Reply to Thread
Results 1 to 4 of 4

copy/add row macro

Hybrid View

  1. #1
    Registered User
    Join Date
    11-28-2008
    Location
    New York
    Posts
    9

    copy/add row macro

    I have a form which people are going to use to fill in quantity, description, and total for items they are purchasing.

    I was able to create the macro for adding a row with no problem, but when I try to create the macro to copy the table it will start cutting off rows at the bottom if I add more rows first. Is there a way to avoid this?

    This is my first time using macros, and I don't really know vb (I'm trying though!) Also, I am using Excel 2003.

    Thanks so much!

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Welcome to Excel Forum!, to better explain why not attach a workbook, this is done by using the Manage Attachments button below your reply window, this way we can see your structure and help you directly.
    Not all forums are the same - seek and you shall find

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Take a look at the databaseform example here

    http://www.excel-it.com/vba_examples.htm

    For help with your code try posting it, using Code Tags, or attach the workbook.
    Hope that helps.

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

    Free DataBaseForm example

  4. #4
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Adding rows

    Hi

    When you talk about adding rows to the table, do you mean a named range ?

    If so there are a couple of ways to solve the problem, a dynamic named range which expands as you add data, or with a fixed range you need to make the range one row bigger at the top and then hide that row and then when adding rows, start from the second row and the range will expand as each row is added.

    If you have a small example you can post it will be possible to make the changes for you to see.

    Regards

    Jeff

+ 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