Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Using VB to find next cell in range

Hi Tim,
By range set up that could be a specific range, a defined name,
or selection. So by selecting A3:A350 ahead of time, you
can run a macro to go through the cells left to right and down
to next row of selection and across. There is no need to
change the selection as you run through the macro
Take a look at
Rearranging Data in Columns
http://www.mvps.org/dmcritchie/excel/join.htm
specifically the macro MarkCells
http://www.mvps.org/dmcritchie/excel/join.htm#markcells

Information on writing the macro efficiently read descriptive
information on my
Proper, and other Text changes -- Use of SpecialCells
http://www.mvps.org/dmcritchie/excel/proper.htm

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Don Pistulka" wrote in message ...
Tim,

Sub Dtest()
Range("a3").Select
Selection.Offset(1, 0).Select
End Sub

Don Pistulka

"Tim" wrote in message
...
Can someone help me find the code that will allow me to
find the next cell in a range. I have a range set up,
i.e. Range("A3:A350"), and a range variable set to the
first cell A3. As my code executes I need the range
variable originally set to A3 to move down the larger
range of ("A3:A350"), say to A4. I thought the Next
property might work but I am having trouble with it. Any
help would be appreciated!!

Tim McPhillips





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
Find Last cell in Range when range is date format default105 Excel Discussion (Misc queries) 5 July 7th 09 03:11 PM
find last cell in range with data, display cell address sevi61 Excel Worksheet Functions 14 October 29th 07 08:36 PM
Find a Cell Value In a Range Michael Excel Worksheet Functions 4 July 17th 07 10:03 PM
Find if any cell in range is above Zero [email protected] Excel Discussion (Misc queries) 3 April 19th 06 11:01 AM
Using VB to find next cell in range Bob Kilmer Excel Programming 0 July 23rd 03 02:19 AM


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

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

About Us

"It's about Microsoft Excel"