Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Where is the code using ADO, as you mentioned in previous post?
"keri" wrote in message ups.com... My code (or not at all mine - thanks to ron) (obviously the path in this first sub isn't correct - nor the range I am trying to get - "a1:s5000" should be "a1:s60000" but obviously I can't do that. I would want to filter the dourcerange by column C (value to equal 0804). Sub File_in_network_folder() getrange("C:\documents and settings\here \desktop","south.xls","south","a1:s5000",sheets("s heet4").range("a1") end sub Sub GetRange(FilePath as String, FileName as String, SheetName as String, SourceRange as String, DestRange as Range) Dim start Application.Goto.DestRange Set DestRange = DestRange.Resize(Range(SourceRange).Rows.Count,Ran ge(SourceRange).Columns.Count) With DestRange .FormulaArray = "='" & FilePath & "/[" & FileName & "]" & SheetName & "'!" & SourceRange Start = Timer Do While Timer < Start + 2 DoEvents Loop .copy .PasteSpecial xlPasteValues .Cells(1).select Application.CutCopyMode = False End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problems copying Large Amounts of Data in Excel 2007 | Excel Discussion (Misc queries) | |||
Best practices for pulling data from a network Excel file (mult users) | Excel Programming | |||
Problems copying XLA file | Excel Discussion (Misc queries) | |||
Copying Data across a network or internet | Excel Programming | |||
Copying files ...Network to Network | Excel Programming |