excel - how to add horizontal axis labels to chart using macro -


मैंने निम्नलिखित मैक्रो का उपयोग करके एक चार्ट बनाया है:

  ActiveSheet.Shapes.AddChart.Select ActiveChart.SetSourceData स्रोत: = श्रेणी ("'शीट 1'! $ ए $ 1: $ ए $ 13") ActiveChart.ChartType = xlLine  

चार्ट में क्षैतिज अक्ष लेबल जोड़ने के लिए, क्योंकि यह कोड केवल मेरे ऊर्ध्वाधर स्तंभों को जोड़ता है।

मुझे भी क्षैतिज पंक्तियों को इनपुट करने की आवश्यकता है।

मैक्रोज़ के लिए काफी नया है, कृपया मेरी मदद करें।

आपको क्या चाहिए:

  ActiveChart.SetElement (msoElementPrimaryCategoryAxisTitleAdjacentToAxis) ActiveChart.Axes (xlCategory, xlPrimary) एक्सिसटिटल। पाठ = "द टिटल आईवॉंट"  

यह पहले चार्ट को एक्स अक्ष का शीर्षक सेट करता है, फिर पाठ सेट करता है।


Comments

Popular posts from this blog

javascript - How to use the code plugin with popcornjs -

python - rpy2 import is not working -

Python, converting png to gif using ImageMagick -