Dark0Prince
Active Member
- Joined
- Feb 17, 2016
- Messages
- 433
Right now the code I have takes the data I've selected and moves it to a new sheet then I have to save, it's a great code. Doing this around 300 times seems like there should be a better way. I'm always selecting my data based on the number in column A so if there are a list of different numbers some of them are alike. I would select from the last alike number all the way over to the column J and up to J1 and copy it. Here is the code I'm currently using.
Code:
Sub VOPSRELATIVE()
'
' VOPSRELATIVE Macro
'
' Keyboard Shortcut: Ctrl+Shift+R
'
Selection.Copy
Workbooks.Add
ActiveSheet.Paste
Columns("A:L").Select
Range("A2").Activate
Columns("A:L").EntireColumn.AutoFit
Columns("A:A").Select
Range("A2").Activate
Selection.ColumnWidth = 10.5
Range("F14").Select
Application.CutCopyMode = False
Selection.Copy
Range("A7").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveWorkbook.Password = "SECRET"
Columns(6).EntireColumn.Delete
Range("A7:K7").Select
Selection.Copy
End Sub