Skip to main content

VBA Code to Clear Cell Color VBA कोड सेल रंग साफ़ करने के लिए


# VBA Code to Clear Cell Color:-


To clear cell color using VBA, use a statement with the following structure:-
VBA कोड सेल रंग साफ़ करने के लिए

Cells.Interior.Color = xlColorIndexNone


VBA Statement Explanation

  1. Item: Cells.

    • VBA Construct: Range object.
    • Description: Range object representing the cells where you want to clear cell formatting.

      You can usually return a Range object with constructs such as the Worksheet.Range, Worksheet.Cells (with Range.Item), Range.Offset, Range.Resize or Application.ActiveCell properties. If you explicitly declare an object variable to represent Cells, use the Range object data type.
  2. Item: Interior.

    • VBA Construct: Range.Interior property and Interior object.
    • Description: The Range. Interior property returns an Interior object representing the interior of the cell range you specify (Cells).
  3. Item: Color.

    • VBA Construct: Interior.Color property.
    • Description: The Interior.Color property allows you to set the primary color of the cell interior represented by the Interior object returned by Range.Interior.
  4. Item: =.

    • VBA Construct: Assignment operator.
    • Description: The assignment operator assigns the xlColorIndexNone value to the Interior.Color property.
  5. Item: xlColorIndexNone.
    • VBA Construct: xlColorIndexNone constant.
    • Description: The xlColorIndexNone constant specifies that the color of the Interior object representing the interior of Cells is none.


VBA स्टेटमेंट स्पष्टीकरण

1. आइटम: सेल।

VBA निर्माण: रेंज ऑब्जेक्ट।

विवरण: रेंज ऑब्जेक्ट उन कोशिकाओं का प्रतिनिधित्व करता है जहाँ आप सेल फ़ॉर्मेटिंग को साफ़ करना चाहते हैं।

आप आमतौर पर Worksheet.Range, Worksheet.Cells (Range.Item के साथ), Range.Offset, Range.Resize या Application.ActiveCell प्रॉपर्टी जैसे कंस्ट्रक्शन के साथ रेंज ऑब्जेक्ट वापस कर सकते हैं। यदि आप कक्ष का प्रतिनिधित्व करने के लिए स्पष्ट रूप से ऑब्जेक्ट चर घोषित करते हैं, तो रेंज ऑब्जेक्ट डेटा प्रकार का उपयोग करें।

2. आइटम: आंतरिक।

VBA कंस्ट्रक्ट: रेंज.इंटीरियर प्रॉपर्टी और इंटीरियर ऑब्जेक्ट।

विवरण: रेंज। आंतरिक गुण आपके द्वारा निर्दिष्ट सेल श्रेणी के इंटीरियर का प्रतिनिधित्व करने वाली आंतरिक वस्तु देता है।

3. आइटम: रंग।

VBA का निर्माण: आंतरिक। रंग की संपत्ति।

विवरण: आंतरिक। रंग की संपत्ति आपको आंतरिक आंतरिक श्रेणी द्वारा दर्शाए गए सेल इंटीरियर के प्राथमिक रंग को सेट करने की अनुमति देती है।

4. मद: =।

VBA निर्माण: असाइनमेंट ऑपरेटर।

विवरण: असाइनमेंट ऑपरेटर आंतरिक के लिए xlColorIndexNone मान असाइन करता है। रंग संपत्ति।

5. आइटम: xlColorIndexNone।

VBA निर्माण: xlColorIndexNone स्थिर।

विवरण: xlColorIndexNone स्थिरांक निर्दिष्ट करता है कि कोशिकाओं के इंटीरियर का प्रतिनिधित्व करने वाली आंतरिक वस्तु का रंग कोई भी नहीं है।

Comments

Popular posts from this blog

Excel VBA Code For Clear Cell एक्सेल VBA कोड क्लियर सेल के लिए

# VBA Code to Clear Cell :- To  clear cells using VBA , use a statement with the following structure:- VBA का उपयोग :-  सेल  को साफ करने के लिए Cells.Clear VBA Statement Explanation Item:  Cells. VBA Construct:  Range object. Description:  Range object representing the cells you want to clear. You can usually return a Range object with constructs such as the Worksheet.Range, Worksheet.Cells (with Range.Item), Range.Offset, Range.Resize or Application.ActiveCell properties. If you explicitly declare an object variable to represent Cells, use the Range object data type. Item:  Clear. VBA Construct:  Range.Clear method. Description:  The Range.Clear method clears the Range object you specify (Cells). Range.Clear clears the entire Range object, including values, formulas and formatting. VBA स्टेटमेंट स्पष्टीकरण 1. आइटम: सेल। VBA निर्माण: रेंज ऑब्जेक्ट। विवरण: रेंज ऑब्जेक्ट उन कोश...

SQL > SQL Commands > Select

SQL > SQL Commands  >  Select The  SELECT  statement in SQL is used to retrieve data from a relational database. SQL में SELECT स्टेटमेंट का उपयोग रिलेशनल डेटाबेस से डेटा को पुनः प्राप्त करने के लिए किया जाता है। Syntax Number of Columns SQL Syntax 1 SELECT "column_name" FROM "table_name"; More Than 1 SELECT "column_name1"[, "column_name2"] FROM "table_name"; All SELECT * FROM "table_name"; "table_name" is the name of the table where data is stored, and "column_name" is the name of the column containing the data to be retrieved. "table_name" उस तालिका का नाम है जहां डेटा संग्रहीत किया जाता है, और "column_name" उस स्तंभ का नाम है जिसमें डेटा पुनर्प्राप्त किया जाना है। To select more than one column, add a comma to the name of the previous column, and then add the column name. If you are selecting three columns, the syntax will be, एक से अधिक कॉलम का चयन...

Excel Simple Formulas एक्सेल सरल सूत्र

Excel uses Standard Operators for formulas, such as a Plus Sign (+) for Addition , a Minus Sign (-) for Subtraction , an Asterisk Sign (*) for Multiplication , a Forward Slash Sign (/) for Division , and a Caret Sign (^) for Exponents . All these are Mathematical Operators and in Excel All Formulas must begin with an Equals Sign (=). एक्सेल सूत्रों के लिए मानक ऑपरेटर का उपयोग करता है, जैसे अतिरिक्त के लिए प्लस साइन (+), घटाव के लिए एक ऋण चिह्न (-), गुणा के लिए एक तारांकन चिह्न (*), प्रभाग के लिए एक फॉरवर्ड स्लैश साइन (/), और एक कैरेट साइन (^) एक्सपोनेंट्स के लिए। ये सभी गणितीय ऑपरेटर हैं और एक्सेल में सभी सूत्रों को बराबर चिह्न (=) से शुरू होना चाहिए। Addition + Subtraction - Multiplication * Division / Exponents ^ For example  :-