Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How Do I Create a Range in Excel VBA?
I am trying to figure this one out. I want to create a range on a sheet. I
know the row and column numbers for the upper left and the bottom right. I've tried the following without any luck but I think that I am close: -- begin code -- sheetOfInterest = "Sheet1" topRow = 5 topColumn = 6 bottomRow = 10 bottomColumn = 20 rem THIS DOES NOT WORK newRange = ThisWorkbook.Worksheets(sheetOfInterest).Range(Cel ls(topRow, topColumn), Cells(bottomRow, BottomColumn)) -- end code -- Once I get this working then I can get the rest done :). Thanks, Mike McCollister |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I create button to printout worksheet range in excel 2007? | Excel Discussion (Misc queries) | |||
HOW CAN CREATE THE PRICE RANGE IN EXCEL 2003? | Excel Worksheet Functions | |||
Using a Named Range to create routing slip in Excel | Excel Programming | |||
How do I create a range of months in Excel? | Excel Discussion (Misc queries) | |||
Create a Named Range in Excel with VBA | Excel Programming |