Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Help!!
My code below successfully opens a book from the right place, but now Im trying to copy the sheet Results_first into the book which houses the below macro, say book X. How do I tell VB to paste the entire sheet into the book X..? Regards D Dim i As Long, sName As String, sh As Worksheet Dim dest As Range, bk As Workbook, bk1 As Workbook Dim sh1 As Worksheet Set bk1 = ThisWorkbook i = 1 sName = Dir("\\server\_to_combine_files\*.xls") Do While sName < "" Set bk = Workbooks.Open("\\server\_to_combine_files\" & sName) Set sh = bk.Worksheets("Results_first") *** Sent via Developersdex http://www.developersdex.com *** |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
TextToColumn when destination to other sheet | Excel Discussion (Misc queries) | |||
copied formulas refer to destination sheet not source sheet | Excel Worksheet Functions | |||
Copy every 3rd cell, define destination range for paste | Excel Programming | |||
copying and pasting from source sheet to destination sheet without naming source sht? | Excel Programming | |||
Hyperlinks - identifying source in destination sheet | Excel Discussion (Misc queries) |