+ Reply to Thread
Results 1 to 2 of 2

Assistance with Macro copying entire row instead of moving range

  1. #1
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2003
    Posts
    1

    Assistance with Macro copying entire row instead of moving range

    Hi. I am new to writing macros. I have successfully created several macros using this website, so I am hoping you can help me with the code in one of my macros in the attached workbook. On tab "Business Detail Input", I have created a button "Insert Row" which is running the macro titled "Insert_Row". The macro is not running 100% correctly and I would like to figure out the corrections needed before I share this workbook with other users. Here's what I want the macro to do and what is working/not working so far:

    1. Insert a row at the bottom of the table - Working
    2. Expand the table range (BusinessDetailInput)- Working
    3. Copy data validation in column A for new row - Working
    4. Copy formulas in columns B & C down to new row - Working
    5. Copy formulats in columns G & H down to new row - NOT WORKING. Currently the data validation is copying based on using entire row as range.
    6. Data validation is copying to all columns (yes to column IV) on the new row through out the worksheet. There should be no data in columns I - IV and data validation should only be in column A for the new row. I think this is happening due to the current code copying data based on entire row as range.

    Can you please provide explanation and corrections needed to VBA code so that data validation only copies in column A and formulas copy down in columns B, C, G, & H? I appreciate any help you can provide. Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Assistance with Macro copying entire row instead of moving range

    Hi jessls,

    You were erasing those formulas in G & H, try replacing
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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. copying a entire row based on a date range criteria
    By workallday in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2012, 04:18 AM
  2. [SOLVED] Require assistance with Macro for copying cell from one sheet to another.
    By bml-lwilliams in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-30-2012, 05:05 PM
  3. Copying moving range based on moving cell reff.
    By Varmark in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2011, 04:47 AM
  4. Replies: 2
    Last Post: 03-03-2009, 07:55 PM
  5. Command for copying last 25 entries (Moving range)
    By MOHE92 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-21-2009, 08:09 AM

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