Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the below code.. But the range is fixed in the below case.. How to
make it dynamic? i.e: if value in peter.xls Sheets("may") A2:AD2 matches value in current sheet A2 then it should copy values from row3 to row 21 from peter.xls Sheets("may") to current sheet D1 Sub GetData_Example3() GetData "D:\SavedFiles\CK\ZSL\May\\peter.xls", "May", _ "E3:E21", Sheets("may").Range("D1"), False, False End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Kashyap
Use other code then to have full control Try this http://www.rondebruin.nl/copy3.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Kashyap" wrote in message ... I have the below code.. But the range is fixed in the below case.. How to make it dynamic? i.e: if value in peter.xls Sheets("may") A2:AD2 matches value in current sheet A2 then it should copy values from row3 to row 21 from peter.xls Sheets("may") to current sheet D1 Sub GetData_Example3() GetData "D:\SavedFiles\CK\ZSL\May\\peter.xls", "May", _ "E3:E21", Sheets("may").Range("D1"), False, False End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Get data from closed file | Excel Programming | |||
Write data in a closed file? | Excel Programming | |||
Write data in a closed file? | Excel Programming | |||
Extract Certain Data from closed file | Excel Programming | |||
How do I copy data from a closed file. | Excel Programming |