Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Frank
Thanks for your help but there is a problem with it. I get an "Object required." error in the foo-main macro on line "foo_sub (myrng)". Otto "Frank Kabel" wrote in message ... Hi sub foo_main() dim myrng as range set myrng=activesheet.range("A1:B2") foo_sub(myrng) end sub sub foo_sub(rng as range) dim cell as range for each cell in rng msgbox cell.value next end sub "Otto Moehrbach" wrote: Excel 2002, WinXP I feel a little silly asking this question, but I have tried every which way to do this to no avail. When calling one macro from another, how do you pass a range in the call? Not the value of the range, but the range itself. Say it's MyRng. Thanks for your help. Otto |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
passing arguments from an excel macro to a word macro | Excel Discussion (Misc queries) | |||
Stored Procedure call and passing parameters | Excel Programming | |||
passing variables from an excel macro to a powerpoint macro | Excel Programming | |||
Passing range as argument | Excel Programming | |||
Passing range to subprocedure - maybe? | Excel Programming |