top of page

1. MS Word में Macro क्या है? (What is a Macro in MS Word?)

  • Writer: Siddharth Sharma
    Siddharth Sharma
  • Oct 15, 2025
  • 2 min read

Macro commands और instructions की एक series होती है जिसे आप group करके एक single command बना देते हैं. इसका मुख्य उद्देश्य repetitive tasks (बार-बार किए जाने वाले काम) को automatically (स्वचालित रूप से) करना है.

A Macro is a series of commands and instructions that you group to form a single command. Its main purpose is to perform repetitive tasks automatically.


Key Concept (मुख्य अवधारणा)

Explations

Automation (स्वचालन)

Macro का सबसे बड़ा फायदा यह है कि यह आपके समय और effort (प्रयास) को बचाता है. यह एक click या एक keyboard shortcut से कई steps को execute कर सकता है.

Recording (रिकॉर्डिंग)

आप Word में Macro Recorder का उपयोग करके अपने actions (कार्य) record कर सकते हैं, जैसे कि आप अपने steps को एक video में record कर रहे हों. Word उन steps को Visual Basic for Applications (VBA) code में convert कर देता है.

Single Command (एकल कमांड)

एक बार record होने के बाद, आप उस पूरे series of steps को केवल एक button दबाकर या एक shortcut key का उपयोग करके Run कर सकते हैं.

Programming

Advanced users Macros को खुद VBA (Visual Basic for Applications) programming language का उपयोग करके लिख भी सकते हैं.


उपयुक्त उदाहरण (Suitable Example)


मान लीजिए कि आप एक Student हैं और आपको अपने हर Assignment में एक Standard Heading डालनी होती है जिसमें आपका नाम, Roll Number, Subject, और Date शामिल हो.

Imagine you are a student, and for every assignment, you have to insert a Standard Heading which includes your Name, Roll Number, Subject, and Date.


Task: Standard Assignment Heading Format करना (Formatting a Standard Assignment Heading)


इस Heading को manually (खुद से) बनाने में 5-6 steps लगते हैं:

  1. Type "Name: [Your Name]"

  2. Type "Roll No: [Your Roll No]"

  3. Select the entire Heading.

  4. Change the Font to Times New Roman, Size 12.

  5. Apply Bold formatting.

  6. Change the Line Spacing to 1.5.


Macro Solution (मैक्रो समाधान)


आप इन 6 steps को एक Macro में Record कर सकते हैं और उसे Ctrl + Shift + H (या कोई अन्य shortcut) assign कर सकते हैं.

You can Record these 6 steps into one Macro and assign it a shortcut like Ctrl + Shift + H.

Step-by-Step in Macro (मैक्रो में चरण-दर-चरण)

Description (विवरण)

Recording Start

आप Macro Recorder शुरू करते हैं.

Step 1 & 2

आप सभी heading text (Name, Roll No, Subject, Date) type करते हैं.

Step 3-6

आप text को select करते हैं, Font बदलते हैं, Bold करते हैं, और Line Spacing 1.5 set करते हैं.

Recording Stop

आप Macro Recorder बंद कर देते हैं.

Result (परिणाम):

अब, जब भी आप एक नया document खोलते हैं, तो आपको केवल Ctrl + Shift + H दबाना होगा, और Word automatically आपके लिए Heading को सही format में insert कर देगा. यह बार-बार किए जाने वाले time-consuming clicks को eliminate कर देता है.

 
 
 

Comments


bottom of page