Rows("2:" & Range([A1], ActiveSheet.UsedRange).Rows.Count - 1).Copy
Hi thanks for the reply.
It really select the second rows but it does not select the 2 before the last used
Rows("2:" & Range([A1], ActiveSheet.UsedRange).Rows.Count - 1).Copy
Sub OpenData()
Dim myValue As Variant
myValue = InputBox("File name?")
ChDir "L:\..."
Workbooks.OpenText Filename:= _
"L:\...\PRO " & myValue & ".txt" _
, Origin:=437, StartRow:=1, DataType:=xlDelimited, TextQualifier:= _
xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, _
Comma:=False, Space:=False, Other:=False, FieldInfo:=Array(1, 1), _
TrailingMinusNumbers:=True