This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ResetPTDefaultSettings() | |
Dim Wks As Worksheet | |
Dim PT As PivotTable | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'written by Angelina Teneva, 17/09/2016 | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
For Each Wks In ActiveWorkbook.Worksheets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub RefreshMonthly() | |
Dim Cell As Range | |
Dim Source As String | |
Dim Target As String | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'written by Angelina Teneva, September 2016 | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
Application.ScreenUpdating = False | |
Application.DisplayAlerts = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub TweakAllFiles() | |
Dim Cell As Range | |
Dim path As String | |
Dim file As String | |
Dim fullfilepath As String | |
'------------------------------------------------------------ | |
'written by Angelina Teneva, 2017 | |
'----------------------------------------------------------- | |
Application.DisplayAlerts = False | |
For Each Cell In ThisWorkbook.Worksheets("UCAS").Range("A2:A103") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Sub FilterAllTablesInActiveSheet() | |
Dim Wks As Worksheet | |
Dim T As ListObject | |
Dim i As Integer | |
Dim bU As String | |
bU = ActiveSheet.Range("C6").Value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub logo() | |
Dim Wks As Worksheet | |
Dim Sh As Shape | |
Dim x As Integer | |
Dim y As Integer | |
Dim Cell As Range | |
'****************************************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub RemoveGridlines() | |
Dim Wks As Worksheet | |
'-------------------------------- | |
'written by Angelina Teneva, 2014 | |
'-------------------------------- | |
For Each Wks In ActiveWorkbook.Worksheets | |
If Wks.Visible = True Then Wks.Activate | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub Workbook_Open() | |
Dim Cell As Range | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
Application.Calculation = xlCalculationAutomatic | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'update paths | |
Worksheets("MACROS").Activate | |
If Application.UserName = "Angelina Teneva" Then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub AuthUser() | |
Dim Cell As Range | |
Dim person As String | |
Dim authperson As String | |
person = Application.UserName | |
'---------------------------------------- | |
'written by Angelina Teneva, 2013 | |
'----------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub KeepData() | |
Dim Wks As Worksheet | |
'~~~~~~~~~~~~~~~~~~~~~~ | |
'written by Angelina Teneva | |
'toggling sheet and workbook protection on/off with a password | |
If ActiveWorkbook.ProtectStructure = True Then | |
ActiveWorkbook.Unprotect ("annie") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub Workbook_AfterSave(ByVal Success As Boolean) | |
Dim Wks As Worksheet | |
Dim PT As PivotTable | |
Dim PF As PivotField | |
Dim Ans As String | |
Dim Ans2 As Integer | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'written by Angelina Teneva 2013 | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |