I have the following code as part of my macro whereby I want the user to select the "schedulenumber" by way of cell address and then the macro work out the range of data to copy from this address.
Therefore I have come up with the following but something's not right, can you help me please?
at the moment for testing, the only cell can be contained within a certain location hence I am able to set the "L65536" location.
Once I correct the first part of the code I aim to replicat this for the second address i.e.
thanks in advance.
Therefore I have come up with the following but something's not right, can you help me please?
Code:
Sheets(strActiveSheet).Select
Dim schedulenumber As Range
Set schedulenumber = Application.InputBox _
(Prompt:="Select schedule numebr", Title:="Schedule Number", Type:=8)
ActiveSheet.Range(Range(schedulenumber.Offset(2, -1)), Range(L65536).End(xlUp)).Copy
Sheets("Order Form - Master (2)").Select
Range("I17").Select
Selection.PasteSpecial Paste:=xlPasteValues, _
Operation:=xlNone, SkipBlanks:=False, Transpose:=False
at the moment for testing, the only cell can be contained within a certain location hence I am able to set the "L65536" location.
Once I correct the first part of the code I aim to replicat this for the second address i.e.
Code:
ActiveSheet.Range(Range(schedulenumber.Offset(2, -1)), Range(schedulenumber.End(xlUp)).Copy
thanks in advance.