+ Reply to Thread
Results 1 to 3 of 3

Code to select dynamic range based on value in column A

  1. #1
    Registered User
    Join Date
    12-05-2012
    Location
    liverpool
    MS-Off Ver
    Excel 2007
    Posts
    67

    Code to select dynamic range based on value in column A

    Hi Guys,

    Hoping you can help.

    I just need some code to select a range of data based on a value in column A then copying this data to the clip board.

    Value in column A will either be 0 or 1. If it is a 1 then i need this data copied.

    So on the attached sheet the data selected and copied would be range A1:K57

    Test sheet attached.

    Many thanks in advance.
    Tom.
    Attached Files Attached Files
    Last edited by tompee29; 06-16-2015 at 05:18 AM.

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Code to select dynamic range based on value in column A

    Try:
    Please Login or Register  to view this content.
    (output will be in pasted in A1 in Sheet2)

  3. #3
    Registered User
    Join Date
    12-05-2012
    Location
    liverpool
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Code to select dynamic range based on value in column A

    that's great thanks.

    Do you know what the code to just select the data range then set as print area??

    Many thanks,
    Tom

+ 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. [SOLVED] Hide select rows based on value in a dynamic range
    By rhiminee in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-21-2013, 01:19 PM
  2. [SOLVED] Is there a code to select a Range from WS based on Text
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-28-2012, 10:41 PM
  3. [SOLVED] Dynamic Named Range Help - Range Based on Values in Column
    By Filibuster in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-03-2012, 11:13 AM
  4. Need code to select a range of cells based on criteria in column H
    By davekippen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2011, 01:40 PM
  5. Select dynamic range based on non-empty cells
    By oOarthurOo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2009, 01:42 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