Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I was trying to get it to execute, even after compiling. It is working now
in the original format. don't understand why it did not work earlier. Thanks all for your help "Bernard Liengme" wrote: This also works -- note the comma not semi-colon with the Range arguments Sub onemore() row1 = 5: col1 = 1 row2 = 12: col2 = 4 Range(Cells(row1, col1), Cells(row2, col2)).Select End Sub best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Rick" wrote in message ... This example works Range("A3:F" & SheetEnd).Select... How do I make this one work? Range("A" & SheetStart & ":D" & SheetEnd).Select The statement has to be as generic as possible. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
function range | Excel Worksheet Functions | |||
dynamic range based on criteria, within a dynamic range, passed to a function | Excel Programming | |||
creating a dynamic range based on criteria, within a dynamic range, and passing it to a function | Excel Programming | |||
DBSUM function but with function as criterion, not a range | Excel Worksheet Functions | |||
Translate range name passed as string to a custom function to range addresses! | Excel Programming |