maxx_daddy
Board Regular
- Joined
- Dec 3, 2010
- Messages
- 74
Hi all.
here is what I have.
I am guessing that not specifically calling out the sheet where the ranges are is my issue here.
I am trying to copy a range in workbook "A" and paste it in workbook "BUTTON" without activating it.
here is the full code
thanks, as always for your help.
Joe
here is what I have.
I am guessing that not specifically calling out the sheet where the ranges are is my issue here.
I am trying to copy a range in workbook "A" and paste it in workbook "BUTTON" without activating it.
Code:
Windows("BUTTON.xlsm").Range("joey") = Windows("a.xls").Range("joe").Value
here is the full code
Code:
Sub test2()Windows("BUTTON").Activate
Dim joey As Range
Set joey = Range("A30")
Windows("a.xls").Activate
With Worksheets("Page1")
Dim joe As Range
Set joe = Range("BD6")
End With
Windows("BUTTON.xlsm").Activate
Windows("BUTTON.xlsm").Range("joey") = Windows("a.xls").Range("joe").Value
End Sub
thanks, as always for your help.
Joe
Last edited: