Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selecting a column , row or cell

I want to select a column, a row or a cell, but the trick is that the cell i
want to select depends on the value of another cell. for example if A1=7 and
A2=5, i want to select the cell with row 5 and column 7, cell G5 is that
possible with a command in VBA?

something like: Range("Value(A1),Value(A2)").Select

Is that even possible with a command in VBA?

or is there any posibility to select a column row or range not by their
coordonates but depending on the current date or depending on the position of
other culumns or cells?


Thank you very much for your help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Selecting a column , row or cell

eg:

Cells(Range("A1").value,range("A2").value).Select

etc

"nghica" wrote:

I want to select a column, a row or a cell, but the trick is that the cell i
want to select depends on the value of another cell. for example if A1=7 and
A2=5, i want to select the cell with row 5 and column 7, cell G5 is that
possible with a command in VBA?

something like: Range("Value(A1),Value(A2)").Select

Is that even possible with a command in VBA?

or is there any posibility to select a column row or range not by their
coordonates but depending on the current date or depending on the position of
other culumns or cells?


Thank you very much for your help

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Selecting a column , row or cell


WITH cells(range("row").Value, Range("Col").Value )
..interior.color = vbRed
END WITH

"nghica" wrote:

I want to select a column, a row or a cell, but the trick is that the cell i
want to select depends on the value of another cell. for example if A1=7 and
A2=5, i want to select the cell with row 5 and column 7, cell G5 is that
possible with a command in VBA?

something like: Range("Value(A1),Value(A2)").Select

Is that even possible with a command in VBA?

or is there any posibility to select a column row or range not by their
coordonates but depending on the current date or depending on the position of
other culumns or cells?


Thank you very much for your help

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
Selecting the first blank cell in a column BZeyger Excel Programming 1 April 17th 07 05:41 PM
Selecting A Column based on Cell Value newguy Excel Discussion (Misc queries) 0 December 14th 06 09:39 PM
Selecting the cell in Column A Fred Holmes Excel Programming 3 November 14th 06 07:18 PM
selecting column down to variant cell John Excel Programming 7 August 3rd 05 05:22 PM
Selecting single column with merged cell at top Paul Kendall[_5_] Excel Programming 3 October 29th 03 09:01 PM


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