Results 1 to 8 of 8

How can i define below start range as range given in a cell to do a Loop ?? Please help

Threaded View

  1. #1
    Registered User
    Join Date
    07-12-2012
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2010
    Posts
    24

    How can i define below start range as range given in a cell to do a Loop ?? Please help

    How can i define below start range as range given in a cell to do a Loop ?? Please help

    Means range given in cell "B5" and "C5" in sheet 2 I want to use in below code

    So that I can loop like (For counter = startrng To endrng ) Is it possible?

    .Range("Q" & counter).Value

    Dim startrng As String
    Dim endrng As String
    startrng = Sheets("BurnMacro").Range("B5").Value
    endrng = Sheets("BurnMacro").Range("C5").Value
    
    For counter = 16 To 20
    
    
    If Sheets("Actual vs Plan").Range("Q" & counter).Value = Sheets("BurnMacro").Range("C3").Value Then
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Define Range based on another Range loop
    By SierraKilo78 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2015, 11:54 AM
  2. Define range to select from current cell in a full range (using worksheet_change)
    By draddy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2013, 11:48 AM
  3. Why did an inner loop variable start overwriting the outer loop range suddenly?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2012, 03:24 PM
  4. [SOLVED] Using cell value to define a range (for a variable defined as a range)
    By Sccye in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-02-2012, 10:25 AM
  5. HOW CAN I DEFINE A RANGE IN LOOP
    By Didar. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2005, 05:30 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