+ Reply to Thread
Results 1 to 5 of 5

Copy / Paste range from one sheet to another, if cell in column A is not blank

  1. #1
    Forum Contributor
    Join Date
    09-10-2012
    Location
    Slovakia
    MS-Off Ver
    Excel 365
    Posts
    174

    Copy / Paste range from one sheet to another, if cell in column A is not blank

    Dear friends,

    I am trying to write macro, which will copy/paste default range to column B, if cell in column A is not blank.
    Let me explain it as follows:

    1. I got 2 tabs in my workbook (Sheet1 & Sheet2)
    2. In Sheet1 I have data in column A (data are filled every 49 lines, e.q.: A1, A50,A99,A148 ....
    3. In Sheet2, I have one range (basically there is a template of invoice available for printing). This template has 49 lines (from column A1-O49) and its named as range as: Invoice_template

    What I need to catch is following result:
    If cell in column A (in Sheet1 )is not blank, then copy range Invoice_template from Sheet2 and paste it into column B in Sheet1.


    Many thanks for any help and advise from your side.

    Thank you

  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: Copy / Paste range from one sheet to another, if cell in column A is not blank

    Give this a try:
    Please Login or Register  to view this content.

    If that doesn't work, post your sample workbook so I have something to test on...thanks.
    _________________
    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
    Forum Contributor
    Join Date
    09-10-2012
    Location
    Slovakia
    MS-Off Ver
    Excel 365
    Posts
    174

    Re: Copy / Paste range from one sheet to another, if cell in column A is not blank

    Oh, ti works perfectly. I really appreciate your quick response and excellent help.

    Once again, THANK YOU

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

    Re: Copy / Paste range from one sheet to another, if cell in column A is not blank

    Great!
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Forum Contributor
    Join Date
    09-10-2012
    Location
    Slovakia
    MS-Off Ver
    Excel 365
    Posts
    174

    Re: Copy / Paste range from one sheet to another, if cell in column A is not blank

    Yes, sure, I'll do it.

+ 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. Replies: 2
    Last Post: 01-22-2014, 05:36 PM
  2. Replies: 18
    Last Post: 02-10-2013, 05:32 PM
  3. [SOLVED] Copy variable range from sheet to the last row with a specific blank column in new sheet
    By seputus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2012, 07:29 PM
  4. Copy Data from Column and Paste to Next Blank Column on 2nd Sheet
    By adammark in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-19-2010, 11:15 AM
  5. Copy a Range from sheet and paste the next blank line in another s
    By ca1358 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-02-2005, 05:18 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