Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Refer to a column

I have a macro that finds a cell containing certain data. Once it's found, I need to move to column F, keeping the row the same.
Example:
Criteria found in cell AA42. I need to now move to F42 so i can use the values for the 10 cells beginning at F42 though O42.
If the data is found in Z9, I need the data in F9 through O9.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Refer to a column

Patti,

Range("F" & Activecell.row).Select ' or .Activate

John

"Patti" wrote in message
...
I have a macro that finds a cell containing certain data. Once it's found,

I need to move to column F, keeping the row the same.
Example:
Criteria found in cell AA42. I need to now move to F42 so i can use the

values for the 10 cells beginning at F42 though O42.
If the data is found in Z9, I need the data in F9 through O9.



  #3   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 234
Default Refer to a column

Try refering to cells with row and column rather than A1 style.

range("A1") cells(1,1)
range("B6") cells(6,2)
range("A3:C5") range(cells(3,1),cells(5,3))
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Refer to a column

Thanks John. I'm still a bit of an idiot on this one. Once I've identified the F column in whatever row I happen to be in. How do I then get the data (I have to put it into another worksheet) in the F column beginning at the active cell for a range of a totals of 10 columns such as F34:O34. The thing is since I never know what row I'll be in, don't know how to active the 10 cells once I find a match on the input parameter.

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
refer to whole column Ken Excel Discussion (Misc queries) 2 February 3rd 10 10:58 PM
How can I refer to an entire column? Katyounge New Users to Excel 4 September 24th 07 02:10 PM
Countif forumulas that refer to more than one column Karl Excel Worksheet Functions 4 March 6th 07 12:11 AM
How to refer to current column in a formula? jmg092548 Excel Discussion (Misc queries) 4 August 10th 05 08:00 PM
Trying to get a column of numbers to refer back Overbaked Excel Worksheet Functions 1 December 30th 04 07:36 PM


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