I want to put this code
in workbook1, workbook1 will open several workbooks (six) with vba.
How can i adapt that code to select the range from the other workbooks and past on workbook1.sheet(named with the name of the files open)?
Here is a sample of the code
Thanks
Code:
Rows("2:" & Range([A1], ActiveSheet.UsedRange).Rows.Count - 2).Copy
How can i adapt that code to select the range from the other workbooks and past on workbook1.sheet(named with the name of the files open)?
Here is a sample of the code
Code:
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
Thanks