I
ianripping
I have this code:-
Sub Macro3()
Dim val
Dim rng1
val = Range("R1").Value
Set rng1 = "H:\[Book1.xls]Sheet1".Range(val)
rng1.Select
Selection.Copy
Sheets("Mar").Select
Range("R4").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:
_
False, Transpose:=False
End Sub
At cuttent it doesn't work because of line :-
Set rng1 = "H:\[Book1.xls]Sheet1".Range(val)
The value I want to grab is in H:\Book1\Sheet1 - Cells B1:B5
In R1, I have the range B1:B5 as a value.
Can anyone help
Sub Macro3()
Dim val
Dim rng1
val = Range("R1").Value
Set rng1 = "H:\[Book1.xls]Sheet1".Range(val)
rng1.Select
Selection.Copy
Sheets("Mar").Select
Range("R4").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:
_
False, Transpose:=False
End Sub
At cuttent it doesn't work because of line :-
Set rng1 = "H:\[Book1.xls]Sheet1".Range(val)
The value I want to grab is in H:\Book1\Sheet1 - Cells B1:B5
In R1, I have the range B1:B5 as a value.
Can anyone help