Results 1 to 9 of 9

Using range in a macro from cell value

Threaded View

  1. #1
    Registered User
    Join Date
    02-13-2015
    Location
    Baltimore, MD
    MS-Off Ver
    Excel for Mac 2011
    Posts
    43

    Using range in a macro from cell value

    Hi all.

    I am currently running a macro that takes the top 25 lines from one tab and moves to another. Problem is, sometimes I need that 25 to be a smaller or greater number. Currently I am using:


    End With
        Range("A1:B25").Select
        Selection.Copy
        Sheets("Results").Select


    And it works great. Can I use the cell value to change the "B25" above to read something like :


        End With
        Range("A1: (Results q2)").Select
        Selection.Copy
        Sheets("Results").Select

    So it would pull the number from cell Q2 on the results tab and today for instance, it would pull the top 11 lines,

    Thanks for the help!!

    Chris
    Last edited by ckserra; 11-02-2017 at 08:55 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro to find text from a range in another range and fill a cell accordingly
    By aspadaro in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2017, 09:05 AM
  2. [SOLVED] Macro Delete Contents in 23rd corresponding cell if the cell in range is a non-blank cell
    By murtaza.khan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-04-2014, 01:11 AM
  3. macro to find text string in cell range and paste in other cell range
    By slearner1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2013, 11:15 AM
  4. RE:- Write Macro to copy a 2 cell range to another 2 cell range down the columns
    By Eire001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2013, 11:48 PM
  5. Change range of cells within VBA macro and copy and paste to fixed cell range
    By Mannyny in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-20-2012, 11:51 AM
  6. [SOLVED] Highlight range of cells - run macro - select last cell in range
    By chromachem in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-24-2012, 11:46 AM
  7. Macro code to change cell range to named range
    By Orlic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2008, 11:51 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