Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
divide column(x) by column(y) to give column(x/y) in excel? | New Users to Excel | |||
Calculating column A * column B = Results in another column | Excel Worksheet Functions | |||
Referencing date column A & time column B to get info from column | Excel Discussion (Misc queries) | |||
Return text in Column A if Column B and Column K match | Excel Worksheet Functions | |||
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 | Excel Discussion (Misc queries) |