Hi i am trying to add code to transpose the row to a column where it pastes in the column M (13) until the last column used in that row 1 and put the values down in cell A2 down
I am having trouble getting the vba to go with it
I am having trouble getting the vba to go with it
VBA Code:
Dim FNames As Variant
Dim Cnt As Long
Dim Wbk As Workbook
Dim MstWbk As Workbook
Dim Ws As Worksheet
'Dim wb As Workbook: Set wb = ThisWorkbook
Dim rng As Range
Dim I As Long
Set MstWbk = ThisWorkbook
FNames = Application.GetOpenFilename(FileFilter:="Excel files (*.xls*), *.xls*", MultiSelect:=False)
If FNames = False Then Exit Sub
Set Wbk = Workbooks.Open(FNames)
Wbk.Worksheets("Calculation").Range("M6:BW6").Copy
shtCompare.Cells(1, 13).PasteSpecial xlPasteValues
Wbk.Close False