+ Reply to Thread
Results 1 to 7 of 7

DataLabels: Setting fill transparency in VBA.

  1. #1
    Registered User
    Join Date
    01-19-2009
    Location
    UK
    MS-Off Ver
    2007
    Posts
    60

    DataLabels: Setting fill transparency in VBA.

    Simple query.

    I can change the font colour, style, and fill colour, I just can't seem to change the Transparency.

    Please Login or Register  to view this content.

    Everything else works apart from that Transparency line. It's also worth noting that the transparency can be changed within Excel in the "Format DataLabels" properties window.
    Last edited by AKK9; 09-28-2010 at 10:37 AM. Reason: Solved.
    .
    - AKK9 -

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: DataLabels: Setting fill transparency in VBA.

    50% transparent Red data labels
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    01-19-2009
    Location
    UK
    MS-Off Ver
    2007
    Posts
    60

    Re: DataLabels: Setting fill transparency in VBA.

    Brilliant. Similarly, how would I set a shadow on the text in the Data Labels?

    Also related, where do you find this sort of info? Is there something I can refer to when trying to find paths like "Format.Fill.ForeColor" etc. I was trying out random combinations like "Fill.Color" and tried Googling to no avail.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: DataLabels: Setting fill transparency in VBA.

    Object browser and help.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-19-2009
    Location
    UK
    MS-Off Ver
    2007
    Posts
    60

    Re: DataLabels: Setting fill transparency in VBA.

    Thanks again.

    I don't know if I should start a new thread for this and mark this solved; but I used the object browser to find DataLabels, and then in that class I found Format, but I didn't know how to find out what could come after format.. I'm not sure how to explain it, don't know the terminology, but hopefully you can understand what I'm trying to say.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: DataLabels: Setting fill transparency in VBA.

    If you click the DataLabel > Format property you should see in the Property panel at the bottom

    Property Format As ChartFormat

    Click ChartFormat to move deeper into the Object Model

  7. #7
    Registered User
    Join Date
    01-19-2009
    Location
    UK
    MS-Off Ver
    2007
    Posts
    60

    Re: DataLabels: Setting fill transparency in VBA.

    Oh, I see. Thanks anyway, always good to learn something new.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1