Challenge

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

I Am keeping all my VBA codes in the anwer box , file is too big and it was taking lot of time to save the changes every time , and the data was getting crash ,my macros are deleting after closing the sheet , i tried creating for 6 to 7 times , i dont have any other option sorry for the inconvinence and i have saved my dashboard in the sheet name as dashboard for quetion number 1 

Q 3, c

Sub spellcheck()
Dim cl As Range
ActiveSheet.UsedRange.Interior.Color = xlNone
For Each cl In ActiveSheet.UsedRange
If Not Application.CheckSpelling(word:=cl.Text) Then
cl.Interior.Color = vbRed
End If
Next cl
End Sub

Q 3 , A

Sub Formatting()

Dim My_Range As Range
Set My_Range = Worksheets("Applivcant Data").Range("C2: C100")

For Each Cell In My_Range

If Cell.Value Like "Cash loans" Then

Cell.Interior.ColorIndex = 3

ElseIf Cell.Value Like "Revolving loans" Then


Cell.Interior.ColorIndex = 4

Else
Cell.Interior.ColorIndex = xlNone

End If

Next

End Sub

*** Q.3.B

Sub SaveAsPDF()
Dim ws As Worksheet
For Each ws In Worksheets


SaveWorksheetAsPDF

ws.ExportAsFixedFormat xlTypePDF, "C:\Users\NIMANDLI\OneDrive - Capgemini\Documents\Selenium IDE" & ws.Name & " pdf"

Next ws

End Sub

Q3.a freze panes with VBA 

Sub freezepanes()


ActiveSheet.Range("A1").Select
ActiveWindow.freezepanes = True
End Sub

Link of drive : https://docs.google.com/spreadsheets/d/18huVc5KxvWU6JHjieV_Tn2Z9bN9lWrzj/edit?usp=share_link&ouid=105648973894732900709&rtpof=true&sd=true

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.