Challenge

Project 2 - Create a report using PowerQuery, Macro VBA, List Functions and Data Validation functions for Data Reporting of Supply Chain Management companies

https://docs.google.com/spreadsheets/d/1bHPWWp_1iyQvSE8MPX1bTmKHQxD14oxX/edit?usp=sharing&ouid=115838349124086141962&rtpof=true&sd=true

https://drive.google.com/file/d/1xNFkDxN4Mp5KiXxrvTER6594BXjNhI5Q/view?usp=drive_link

Create a macro for conditional formatting & freezing panes

Public Sub DataFormatting()
Dim MyRange As Range
Set MyRange = Range("A1: DR307512")
MyRange. Format Conditions. Add Type:=xlCellValue, Operator:=xlBetween, Formulal:="100", Formula2:="=150" -
MyRange.FormatConditions(1).Interior.Color = RGB(156, 0, 0)
MyRange. FormatConditions.Add Type:=xlCellValue, Operator:=xlLess,
Formulal:="100"
MyRange.FormatConditions(2).Interior.Color = vbGreen
MyRange.FormatConditions. Add Type:=xlCellValue, Operator:=xlGreater,
Formula1:="150"
MyRange.FormatConditions(3).Interior.Color = vbViolet
MyRange. Format Conditions. Add Type:=xlCellValue, Operator:=xlLess,
Formulal:="100"
MyRange.FormatConditions(2).Interior.Color = vborange
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
(InitialFileName:=strfile, FileFilter:="PDF Files (*.pdf), *.pdf",
Title:="Select Folder and File Name to Save as PDF")
If myfile <> "False" Then
ThisRng.ExportAsFixedFormat Type:=xlType PDF, Filename:=
myfile, Quality:=xlQualitystandard, Include DocProperties:=True,
Ignore PrintAreas:=False, OpenAfterPublish:=True
Else MsgBox "No File Selected. PDF will not be saved", vbOKOnly, "No File Selected"
End If
End Sub

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 (word: -cell.Text) Then
cell.Style "Bad"
End If
Next cell
End Sub

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.