Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 743
- Office Version
- 365
- 2019
- Platform
- Windows
Greetings,
I have a VBA that has about 15 Macros, and it works great. The only problem I have 4 macros that seem to take way too long. Fortunately, they're are short macros. I believe it has something to do with "Entire Column". I am hoping it is just a small tweak. I do apologize for having 4, but I thought these were short ones. Again they work fine, but for whatever reason it takes longer than I think it should.
Thank you very much indeed.
I have a VBA that has about 15 Macros, and it works great. The only problem I have 4 macros that seem to take way too long. Fortunately, they're are short macros. I believe it has something to do with "Entire Column". I am hoping it is just a small tweak. I do apologize for having 4, but I thought these were short ones. Again they work fine, but for whatever reason it takes longer than I think it should.
Thank you very much indeed.
VBA Code:
Sub delCol()
Dim sourceSheet As Worksheet
Set sourceSheet = Sheet1
sourceSheet.Range("A:A, E:E, G:G, I:K, M:X").EntireColumn.Delete
End Sub
VBA Code:
Sub FIRST_TAIL()
Dim sourceSheet As Worksheet
Set sourceSheet = Sheet1
sourceSheet.Range("C:C").EntireColumn.Delete
End Sub
VBA Code:
Sub moveColumn()
With ActiveSheet
Columns("G").Cut
Columns("D").Insert Shift:=xlToRight
Columns("H").Cut
Columns("f").Insert Shift:=xlToRight
End With
End Sub
VBA Code:
Sub Left_Align()
With Sheets("Global Reach Out").Cells
.Font.Name = "Times New Roman"
.Font.Size = 12
.HorizontalAlignment = xlLeft
.BorderAround xlNone
.VerticalAlignment = xlCenter
.EntireColumn.AutoFit
.WrapText = False
End With
End Sub