jordanburch
Active Member
- Joined
- Jun 10, 2016
- Messages
- 443
- Office Version
- 2016
Hey guys,
Im trying to build a list of imported bills into a new workbook. This workbook will become increasingly larger and large of a list as we import new bills each day. I need to to select from the active workbook and select the active rows and copy and paste into the same workbook each time, but I need the data to grow and grow each time. Here is what I have so far from recording maybe im going about this the wrong way. What are your thoughts?
Sub copypaste()
'
' copypaste Macro
'
'
Workbooks.Open Filename:="A:\Imported Entries\Ademero\Historical imports.xls"
Windows("Approval process (12).csv").Activate
'I need this to be based on active workbook and not be that particular workbook name because it changes each time
ActiveWindow.SmallScroll Down:=-48
Range("E5").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Windows("Historical imports.xls").Activate
Range("A1").Select
ActiveSheet.Paste
Windows("Approval process (12).csv").Activate
End Sub
THANKS!
Im trying to build a list of imported bills into a new workbook. This workbook will become increasingly larger and large of a list as we import new bills each day. I need to to select from the active workbook and select the active rows and copy and paste into the same workbook each time, but I need the data to grow and grow each time. Here is what I have so far from recording maybe im going about this the wrong way. What are your thoughts?
Sub copypaste()
'
' copypaste Macro
'
'
Workbooks.Open Filename:="A:\Imported Entries\Ademero\Historical imports.xls"
Windows("Approval process (12).csv").Activate
'I need this to be based on active workbook and not be that particular workbook name because it changes each time
ActiveWindow.SmallScroll Down:=-48
Range("E5").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Windows("Historical imports.xls").Activate
Range("A1").Select
ActiveSheet.Paste
Windows("Approval process (12).csv").Activate
End Sub
THANKS!
Last edited: