#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Column

if i use

DIM Colset
Colset = ActiveCell.Column

and say the active cell is G10, then Colset will be G

how do i use Colset to select another cell, something like:-
Range("Colset" & 600).Select

but it didnt work

any1 know why!

Cheer

--
Message posted from http://www.ExcelForum.com

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

ActiveCell.Column returns a number. You would need to use anothe
method to select based on it.

Colset = ActiveCell.Column

Cells(600,Colset).Select

Or even better

Cells(600,ActiveCell.Column).Select

BTW, using Range("Colset" & 600).Select would show up in excel a
Range(Colset600).Select. If you wanted to concatenate the colum
number it would b Range(Colset & 600).Select (which still wouldn't wor
in our case). You can however do this with a row:

Range("G" & ActiveCell.Row).Select



--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Column

Hi
use
Cells(600,activecell.column)

--
Regards
Frank Kabel
Frankfurt, Germany


if i use

DIM Colset
Colset = ActiveCell.Column

and say the active cell is G10, then Colset will be G

how do i use Colset to select another cell, something like:-
Range("Colset" & 600).Select

but it didnt work

any1 know why!

Cheers


---
Message posted from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Column

thanks for the speedy replies
But i tried
Cells(600,Colset).Select

it didnt work. im confused, normally its G600, so why is it no
600colset or 600G?

--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Column

Hi
should do (works for me) if colSet is the column NUMBER of column G
(that is 7)

for your other question: Cells has the syntax
cells(row_index,column_index)


--
Regards
Frank Kabel
Frankfurt, Germany


thanks for the speedy replies
But i tried
Cells(600,Colset).Select

it didnt work. im confused, normally its G600, so why is it now
600colset or 600G??


---
Message posted from http://www.ExcelForum.com/




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Column

Cool, thanks loads. Got it working.
Got another question, but i'll do it in another post.

Cheers again

--
Message posted from http://www.ExcelForum.com

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
divide column(x) by column(y) to give column(x/y) in excel? James New Users to Excel 2 April 24th 23 11:46 AM
Calculating column A * column B = Results in another column jhun Excel Worksheet Functions 2 March 30th 10 05:13 AM
Referencing date column A & time column B to get info from column TVGuy29 Excel Discussion (Misc queries) 1 January 24th 08 09:50 PM
Return text in Column A if Column B and Column K match jeannie v Excel Worksheet Functions 4 December 13th 07 07:36 PM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM


All times are GMT +1. The time now is 02:13 AM.

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"