Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I am trying to copy the contents of the active sheet in the active workbook to sheet1 of a second named workbook. I get an error when starting loop to check each cell[range] in the Active Sheet. What am I doing wrong? Much Thanks... Paul Dim oRange As Range Dim MatrixWB As Workbook Dim ActiveWB As Workbook Set MatrixWB = Application.Workbooks("AssemblyMatrix.xls") Set ActiveWB = Application.ActiveWorkbook 'Error when trying to check each cell in the Active sheet? For Each oRange In ActiveWB.ActiveSheet If Not oRange.Value = "" Then With MatrixWB.Sheets("Sheet1") .Cells(oRange.Row, oRange.Column).Value = _ oRange.Value End With End If Next oRange |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need to copy and match data from one workbook to another workbook | Excel Worksheet Functions | |||
Search Data from one Workbook and copy it into another Workbook | Excel Discussion (Misc queries) | |||
Copy Data from Workbook into specific Worksheet in other Workbook? | Excel Discussion (Misc queries) | |||
copy excel workbook to new workbook without data | Excel Worksheet Functions | |||
conditional copy data from workbook to another workbook | Excel Programming |