Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Select Range problem

Hi all

I am having trouble working out the code to select the range,

Its difficult this time as i need to work out the Letter rather then number
in the
range().select code

From the code below, you will see i have asked it to select row A7 then
start going accross
until it picks up on a date, where then i want to select the cell, 2 cells
down from that

eg if the date is found on M7, I then want to select range M9 but how to i
show that using the varible i used to find the date, eg using my QQQ code ?

This is the part i am having probs with Range(QQQ & ":9").Select

Full code below, Many Thanks!



For QQQ = 0 To 200
checkfordate = Cells(7, 1 + QQQ).Value
If checkfordate = dateoftt Then GoTo doneqqq
Next QQQ

doneqqq:

Range(QQQ & ":9").Select ' to equal range(M9).select somehow ?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Select Range problem



If I understand you rigth this will help you.

For QQQ = 0 To 200
checkfordate = Cells(7, 1 + QQQ).Value
If checkfordate = dateoftt Then
Cells(9, 1 + QQQ).Select
Exit For
End If
Next QQQ


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Select Range problem

Theres a good lad!
Cheers very much!



Anders Andersson wrote in message
...


If I understand you rigth this will help you.

For QQQ = 0 To 200
checkfordate = Cells(7, 1 + QQQ).Value
If checkfordate = dateoftt Then
Cells(9, 1 + QQQ).Select
Exit For
End If
Next QQQ


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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
Select used range [email protected] Excel Worksheet Functions 2 February 19th 09 03:46 AM
How can change range to select active rows instead of :=Range("S10 ldiaz Excel Discussion (Misc queries) 7 August 29th 08 03:52 PM
When entering data into a range of cells, select the entire range. Q Excel Discussion (Misc queries) 0 September 26th 07 04:36 AM
Range("cell").Select Problem CWillis Excel Discussion (Misc queries) 2 June 5th 06 09:16 PM
Select Using Range vijaya Excel Discussion (Misc queries) 1 November 2nd 05 07:33 PM


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