# 12. Macros आणि VBA — repeat होणारं काम automate करा

Source: https://ravindrabagale.com/mr/excel/ch12-macros-and-vba/
Language: mr (Marathi with English technical terms)

Formatting, cleaning आणि reportsसाठी macros record करणे, code वाचणे, variables, conditions, loops, UDFs आणि debugging या chapterमध्ये शिकू.

Examples मुख्यतः Windows desktop VBAसाठी आहेत. Mac/Webमध्ये support आणि APIs वेगळे असू शकतात. Macro तुमच्या filesमध्ये बदल करू शकतो; स्वतःच्या practice copyवर शिका. Lessonमधल्या destructive source examplesना स्पष्ट notes दिल्या आहेत; ते production-ready scripts नाहीत.

Lessons

12.1 Developer tab, macro settings आणि .xlsm

12.2 Macro record करा — absolute की relative?

12.3 Macro button, shortcut आणि dialogमधून चालवा

12.4 VBA Editor ओळखा

12.5 Sub procedure — काम करणारा macro

12.6 Variables आणि data types

12.7 Range, Cells आणि Worksheets

12.8 MsgBox आणि InputBox

12.9 If आणि Select Case

12.10 For, For Each आणि Do loops

12.11 Last row आणि last column

12.12 Practical macros — code वाचा, मग copyवर तपासा

12.13 UDF — worksheetमध्ये वापरायचं स्वतःचं function

12.14 On Error आणि cleanup

12.15 Debugging — प्रत्येक lineचा result पाहा

12.16 PERSONAL.XLSB — स्वतःचे रोजचे macros
