Project 2 - Create a report using PowerQuery, Macro VBA, List Functions and Data Validation functions for Data Reporting of Supply Chain Management companies
Check Spelling mistakes in the workbook using VBA Code
Public Sub SpellingCheck()
Dim cell As Range
For Each cell In ActiveSheet.UsedRange
If Not Application.CheckSpelling(
cell.Style -"Bad"
End If
Next cell
End Sub
Create a Macro for Data Formatting (Conditional Formatting, Freezing Panes) of workbook as same will be applied to the data of next quarter.
Public Sub DataFormatting()
Dim MyRange As Range
Set MyRange = Range("A1:DR307512")
MyRange.FormatConditions.Add Type:=xlCellValue, Operator:=xlBetween, Formulal:="100", Formula2:="=150"
MyRange.FormatConditions(1).
MyRange.FormatConditions.Add Type:=xlCellValue, Operator:=xlLess, Formulal:="100"
MyRange.FormatConditions(2).
MyRange.FormatConditions.Add Type:=xlCellValue, Operator:=xlGreater, Formulal:="150"
MyRange.FormatConditions(3).
MyRange.FormatConditions.Add Type:=xlCellValue, Operator:=xlLess, _
Formulal:="100"
MyRange.FormatConditions(2).
End Sub
Create VBA Code to convert selected data into pdf from applicant data
Public Sub Savetopdf()
Dim ThisRng As Range
Dim strfile As String
Dim myfile As Variant
If Selection.Count = 1 Then
Set ThisRng = Application.InputBox("Select a range", "Get Range", Type:=8)
Else
Set ThisRng = Selection
End If
strfile = "Selection" & "_" & Format(Now(), "yyyymmdd_hhmmss") & ".pdf"
strfile = ThisWorkbook.Path & "\" & strfile
myfile = Application.GetSaveAsFilename(
If myfile <> "False" Then
ThisRng.ExportAsfixedForomat Type:=xlTypePDF, Filename:=myfile, Quality:=xlQualityStandard, IncludeDocPropertiesistive:=
Else
MsgBox "No File Selected. PDF will not be saved", vbOKOnly, "No File Selected"
End If
End Sub