+ Reply to Thread
Results 1 to 4 of 4

VBA code for not copy data in Sheet2 if all cells in range in Sheet1 are not filled

  1. #1
    Registered User
    Join Date
    07-09-2013
    Location
    zege
    MS-Off Ver
    Excel 2010
    Posts
    2

    VBA code for not copy data in Sheet2 if all cells in range in Sheet1 are not filled

    Hello all

    Please if someone can help me with the problem.
    In Sheet1 I have the data from range D6:D13.
    After the user is filling the required data with command button it copies it to Sheet2 where I have
    formatted the table as Table.

    The answer which I'm looking for is that someone please provide me the Vba code that it's not copying the data if the range from D6:D13 is not filled completely.

    On Sheet1 on Command button I've added the code which works and copy the data in Sheet2 but I have to restrict it not to copy if the criteria for all data in range D6:D13 is not met.

    And yes, at the end is when data is added that range is reseted but the current date stays. (in D8)

    Any help is highly appriciated.

    NOTE: Through the User form I can do this but now I need it for data which are entered in sheet and not the user form.

    Regards!

    Here is the code for Command button:

    Please Login or Register  to view this content.
    Last edited by ginodauri; 07-09-2013 at 05:14 PM.

  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: VBA code for not copy data in Sheet2 if all cells in range in Sheet1 are not filled

    Perhaps:

    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

  3. #3
    Registered User
    Join Date
    07-09-2013
    Location
    zege
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: VBA code for not copy data in Sheet2 if all cells in range in Sheet1 are not filled

    This was excatly what I was looking for.

    The code is working as it should, so this Thread is [SOLVED] :-)

    Many thanks!!!

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

    Re: VBA code for not copy data in Sheet2 if all cells in range in Sheet1 are not filled

    You're welcome!

+ 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