Challenge

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

VBA Code to convert selected data into pdf

Public Sub convertintoPDF()

Dim WS As Worksheet

Dim FileName As String
Dim FilePath As String

Set WS = ActiveSheet

FileName = "Result PDF"

WS.PageSetup.Orientation = xlPortrait

FilePath = ThisWorkbook.Path

WS.convertinto pdf Type:=xlTypePDF, FileName:=FilePath & "\" & FileName & ".pdf", _ Quality:=xlQualityStandard

IncludeDocProperties:=True, IgnorePrintAreas:=False

MsgBox "Completed", vbInformation, ""

End Sub

VBA Code to check spelling mistakes

Public sub spellcheck()

Dim cell as Range

For each cell in activesheet.usedrange

If not Application.checkspelling(word:=cell.text) then

cell.interior.colorindex=6

next

End sub

* Freeze panes macro name is 'create'.

https://drive.google.com/file/d/1mbLIHiubUOGJTR1FVgWBysipaXuWNf8t/view?usp=share_link

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.