Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Take a look at this:
http://www.rondebruin.nl/copy2.htm I believe you can modify it (slightly) for your purpose. Regards, Ryan-- -- RyGuy "Mike H" wrote: Hi if = 1 as string It looks like your trying to select "Sheet14. If so try this Set b = Sheets("sheet" & a & "4").Range(Cells(33, 3), Cells(33, 8)) Mike "ranswert" wrote: I am trying to get a name of a sheet from a cell then go to that sheet to put data into a range of cells. I get an error on the following code: Set b = Sheets(a(4)).Range(Cells(33, 3), Cells(33, 8)) 'b' is a range and 'a' is an array(1 to 8) as string What am I doing wrong? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print sheets by "All Sheets in workbook, EXCEPT for specific named sheets". Possible? | Excel Programming | |||
Multiple Sheets (Need to create 500 individual sheets in one workbook, pulling DATA | Excel Worksheet Functions | |||
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? | Excel Worksheet Functions | |||
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? | Excel Programming | |||
Macro for filter on protected workbook that works for all sheets, no matter what sheets are named? | Excel Programming |