This file contains hidden or 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 | |
Private Const strToolbarName = "SQL_Tool" | |
Public Sub ShowToolbar() | |
On Error Resume Next | |
Application.CommandBars(strToolbarName).Delete | |
On Error GoTo 0 | |
Application.CommandBars.Add strToolbarName, , , True |
This file contains hidden or 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
' ############################ FUNCTION / PROCEDURE LIST ############################ | |
' ################################################################################### | |
' | |
' 1. ListNamedRanges | |
' The function lists all custom named ranges. It is possible to provide optional parameter so that the function checks if validated text string contains this value | |
' 2. ListPivotTableDataSources | |
' The procedures lists all pivot tables and their data sources | |
' 3. NamedRangeHeaders | |
' This function returns header names for particular named range | |
' 4. GetFilePath |
This file contains hidden or 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 | |
Private OTapp As Outlook.Application | |
Private OTemail As Outlook.MailItem | |
Private strTo As String | |
Private strSubject As String | |
Private strAttachmentPath As String | |
Private strBodyHTML As String | |
Private Sub Class_Initialize() | |
On Error Resume Next |
This file contains hidden or 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 | |
Private objChart As ChartObject | |
Enum AxisType | |
Primary = 1 | |
Secondary = 2 | |
End Enum | |
Enum BorderType | |
Hairline = 1 | |
Thin = 2 | |
Medium = -4138 |
This file contains hidden or 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 | |
Private pvt As PivotTable | |
Private blnUpdate As Boolean | |
Private varPivotTables As Variant | |
Enum OrientationType | |
RowField = 1 | |
ColumnField = 2 | |
PageField = 3 | |
DataField = 4 | |
End Enum |
This file contains hidden or 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 | |
Private PPTApp As PowerPoint.Application | |
Private PPTPreso As PowerPoint.Presentation | |
Private PPTPresoReport As PowerPoint.Presentation | |
Private PPTSlide As PowerPoint.Slide | |
Private objObjectToExport As Object | |
Private objNewShape As Object | |
Private strPresoPath As String | |
Enum ResizeRescale | |
Resize = 1 |
This file contains hidden or 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 | |
Private db As DAO.Database | |
Private rst As DAO.Recordset | |
Private strName As String | |
Private blnOptions As Boolean | |
Private blnReadOnly As Boolean | |
Private strConnect As String | |
' | |
' required libraries | |
' Microsoft Office xx.x Access database engine Objects |
This file contains hidden or 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 | |
Private strUser As String | |
Private strProvider As String | |
Private strPath As String | |
Private strProperties As String | |
Private strSQL As String | |
Private strPassword As String | |
Private con As ADODB.Connection | |
Property Let ConnProvider(strCPR As String) |
This file contains hidden or 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 | |
Private Sub Workbook_BeforeClose(Cancel As Boolean) | |
Call UnloadCustomRibbon | |
End Sub | |
Private Sub Workbook_Open() | |
Call LoadCustomRibbon |
NewerOlder