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 SummarizeCampaignData() | |
Dim Wks As Worksheet | |
Dim PTCache As PivotCache | |
Dim PT As PivotTable | |
Dim PF As PivotField | |
Dim i As Integer | |
Dim Title As String | |
Dim Field As String | |
'~~~~~~~~~~~~~~~~~~~~~~~~ |
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 AddAndShowPTCalculatedFields() | |
Dim Wks As Worksheet | |
Dim PT As PivotTable | |
Dim PF As PivotField | |
Dim PI As PivotItem | |
Dim Title As String | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
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 ModifyDataFieldsSummaryFunction() | |
Dim PT As PivotTable | |
Dim PF As PivotField | |
Dim PI As PivotItem | |
Dim i As Integer | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'written by Angelina Teneva, 2014 | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
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 Export_PPT_Internal() | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'Angelina Teneva, Aug 2014 | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
Dim Sh As Shape | |
Dim PT As PivotTable | |
Dim PL As String | |
Dim PPApp As PowerPoint.Application | |
Set PPApp = GetObject(, "Powerpoint.Application") 'use if you are planning on having your ppt open |
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 ExcelToPowerPoint_Open() | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'Angelina Teneva, Aug 2014 | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
Dim Sh As Shape | |
Dim PPApp As PowerPoint.Application | |
Dim PPpres As PowerPoint.Presentation | |
Dim PPS As Integer | |
Dim Wks As Worksheet |
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 Utilization() | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'written by Angelina Teneva, 2013 | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
Application.Calculation = xlCalculationAutomatic | |
Dim PT As PivotTable | |
Dim PF As PivotField | |
Dim PI As PivotItem | |
Dim L As String |
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 Select_Actual() | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'written by Angelina Teneva, 2014 | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
Dim Msg As Integer, Ans As Integer | |
Dim Sh As Shape | |
Dim PPApp As PowerPoint.Application | |
Dim PPpres As PowerPoint.Presentation | |
Dim PPSlide As PowerPoint.Slide |
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 ExportFSCSlides() | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'written by Angelina Teneva, 2015 | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
Dim PPApp As PowerPoint.Application | |
Dim PPpres As PowerPoint.Presentation | |
Dim pptx As String | |
pptx = ActiveWorkbook.Worksheets("calculated fields").Range("F2") |
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 ExportFSCSlides() | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'written by Angelina Teneva, 2015 | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
Dim PPApp As PowerPoint.Application | |
Dim PPpres As PowerPoint.Presentation | |
Dim pptx As String | |
pptx = ActiveWorkbook.Worksheets("calculated fields").Range("F2") |
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
---------------------------Vertica---------------------------------------------------------------------------- | |
select | |
Now(), ---find current timestamp | |
Date(Now()), ---find today's date | |
Year(Now()), ---find today's year | |
Quarter(Now()), ---find today's quarter | |
Month(Now()), ---find today's month |