Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default variables in row and cell functions

Curious how you get them to recognize them.

Ex. code

n = 1

do until n 25
Rows("n:n").select
If "ect ect ect"
n = n + 1
loop


It always highlights the ("n:n")in yellow and wont work
properly.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default variables in row and cell functions

n = 1

do until n 25
Rows(n).select
If "ect ect ect"
n = n + 1
loop


or as an example using Cells

n = 1

do until n 25
Cells(n,1).EntireRow.select
If "ect ect ect"
n = n + 1
loop

--
Regards,
Tom Ogilvy

"zeraia" wrote in message
...
Curious how you get them to recognize them.

Ex. code

n = 1

do until n 25
Rows("n:n").select
If "ect ect ect"
n = n + 1
loop


It always highlights the ("n:n")in yellow and wont work
properly.



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
Copying functions without changing most variables in it Ruleroftheblind Excel Discussion (Misc queries) 3 March 12th 09 04:54 AM
How to dealing with functions with 30+ variables? Darius Excel Worksheet Functions 7 July 25th 08 12:52 AM
constructing (complex) variables with worksheet functions broer konijn Excel Discussion (Misc queries) 0 May 16th 06 10:55 PM
LOGICAL FUNCTIONS WITH MULTIPLE VARIABLES luiss Excel Worksheet Functions 3 November 18th 05 04:08 PM
Can I use variables for workheet name references in Excel functions? Amihai Bareket Excel Worksheet Functions 1 February 4th 05 05:11 PM


All times are GMT +1. The time now is 12:04 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"