Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Defining Loop Ranges

I want to set the loop range to be equal to the value of two cells.


Example:
For i = "Value of Cell A1" to "Value of Cell B1"

Next i

Thanks for your help,
Scott

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Defining Loop Ranges

For i = range("A1").value to Range("B1").value

wrote in message
oups.com...
I want to set the loop range to be equal to the value of two cells.


Example:
For i = "Value of Cell A1" to "Value of Cell B1"

Next i

Thanks for your help,
Scott



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Defining Loop Ranges

Thanks.

PCLIVE (RemoveThis) wrote:
For i = range("A1").value to Range("B1").value

wrote in message
oups.com...
I want to set the loop range to be equal to the value of two cells.


Example:
For i = "Value of Cell A1" to "Value of Cell B1"

Next i

Thanks for your help,
Scott


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Defining Ranges Steve Excel Worksheet Functions 5 May 28th 05 07:41 AM
Re-defining Ranges in VBA aehan Excel Programming 3 March 24th 05 05:15 PM
Problems Defining Object Variable in For Each Loop ExcelMonkey[_190_] Excel Programming 7 February 28th 05 10:46 PM
Defining Range of For Each Loop for Cells and Worksheets ExcelMonkey[_190_] Excel Programming 2 February 22nd 05 01:04 PM
Defining Ranges Greg Ghavalas Excel Programming 2 July 9th 03 10:10 PM


All times are GMT +1. The time now is 06:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"