+ Reply to Thread
Results 1 to 4 of 4

Copy and Paste calculated range to another worksheet

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    Bonita Springs, FL
    MS-Off Ver
    Excel 2010
    Posts
    1

    Copy and Paste calculated range to another worksheet

    I need to copy and paste range A4:H# (the row # to include is calculated in a formula called "PRINT END"). For example, Range("PRINT END") = 17 so I need to copy and paste "A4:H17" to another worksheet called "PRINT". I cannot use End.(xlup) calculation for this.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy and Paste calculated range to another worksheet

    Its not clear how things are exactly. This might work for you:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Copy and Paste calculated range to another worksheet

    jmcartwright_fl,

    Welcome to the Excel Forum.

    Your rangename can not contain a space character.

    You did not give us the worksheet name of where the rangename, and/or, raw data are in.

    And, you did not give us where in worksheet PRINT the data would be copied to.

    The below line of code works in my test environment.


    Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).

    Please Login or Register  to view this content.


    You may also want to consider having the macro first check if there is a valid number in the rangename.
    Last edited by stanleydgromjr; 02-23-2014 at 12:09 PM.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  4. #4
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Copy and Paste calculated range to another worksheet

    jmcartwright_fl,

    You marked your thread SOLVED, without any feedback, or, comment(s)?

    You are very welcome. Glad we could help.

    And, come back anytime.

+ 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. VBA Match Cell Range to Worksheet Name and copy/paste to respective worksheet
    By rlsublime in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2014, 04:06 PM
  2. [SOLVED] Copy/Paste Range to the bottom of a range on another worksheet using VBA
    By tsamuels in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-18-2013, 10:11 PM
  3. Copy Range from Worksheet 2, Paste to Next Empty Row Worksheet 1
    By oOarthurOo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2010, 04:07 PM
  4. [SOLVED] copy range and paste to new worksheet
    By Moon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-04-2005, 11:30 AM
  5. [SOLVED] copy range and paste to new worksheet
    By Moon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-02-2005, 06:17 PM

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