Hi,
I am using the below code copying horizontally from one workbook and pasting vertically to another. but once pasting it's making a mess.
Sub Alldrrdata()
Dim sourceworkbook As Workbook
Dim currentworkbook As Workbook
Set currentworkbook = ThisWorkbook
Set sourceworkbook = Workbooks.Open("C:\Users\babar\OneDrive\Desktop\New Folder\DRR.xlsx")
sourceworkbook.Worksheets("Month Actual").Range("E58:AI58").Copy
currentworkbook.Activate
currentworkbook.Worksheets("Daily Pickup").Activate
currentworkbook.Worksheets("Daily Pickup").Range("V5:V34" & ActiveCell.Row).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
I am using the below code copying horizontally from one workbook and pasting vertically to another. but once pasting it's making a mess.
Sub Alldrrdata()
Dim sourceworkbook As Workbook
Dim currentworkbook As Workbook
Set currentworkbook = ThisWorkbook
Set sourceworkbook = Workbooks.Open("C:\Users\babar\OneDrive\Desktop\New Folder\DRR.xlsx")
sourceworkbook.Worksheets("Month Actual").Range("E58:AI58").Copy
currentworkbook.Activate
currentworkbook.Worksheets("Daily Pickup").Activate
currentworkbook.Worksheets("Daily Pickup").Range("V5:V34" & ActiveCell.Row).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub