+ Reply to Thread
Results 1 to 4 of 4

VBA - load color scheme from SharePoint

  1. #1
    Registered User
    Join Date
    04-06-2014
    Location
    DK
    MS-Off Ver
    Excel 2010
    Posts
    18

    VBA - load color scheme from SharePoint

    Hi guys

    Hope someone can help me with an annoying problem

    I have an excel file which is used by different companies who uses different ColorSchemes. I have buttons in the first tab, so they can chose the colors they want.
    Previously I have had the different color schemes in a folder on a shared server and used the code:

    Please Login or Register  to view this content.
    We have now moved our template to a SharePoint, and I’m trying to open the ColorX.xml from here with the same command:

    Please Login or Register  to view this content.
    But It tells me it can’t access the file. If I paste the path into a browser, I have no problem accessing it.

    If I use IE and go the color theme folder, and click on ColorX.xml, it asks me if I want to open the file as write-protected or editable?

    Does anyone know why I can’t open the file through a macro, and even better does anyone know how I make it work?

    Best
    H

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: VBA - load color scheme from SharePoint

    Have you tried referring to the sharepoint file using a UNC path, instead of a URL?

    e.g. \\SharePoint\team\Shared%20Documents\Color%20themes\ColorX.xml
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    04-06-2014
    Location
    DK
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: VBA - load color scheme from SharePoint

    Thanks for your suggestion, just tried it, but same result

    /H

  4. #4
    Registered User
    Join Date
    04-06-2014
    Location
    DK
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: VBA - load color scheme from SharePoint

    If it is of any help, this is the message I get
    ScreenHunter_132 Oct. 28 12.12.jpg

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 09-08-2014, 08:46 AM
  2. Color Scheme Help
    By rzacharia21 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2012, 11:59 PM
  3. color scheme for charts
    By Barry Au in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-29-2007, 12:37 PM
  4. [SOLVED] Color Scheme
    By [email protected] in forum Excel General
    Replies: 4
    Last Post: 08-14-2006, 01:45 AM
  5. [SOLVED] Color Scheme Trouble
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2006, 04:50 AM
  6. Color scheme trouble
    By [email protected] in forum Excel General
    Replies: 6
    Last Post: 05-16-2006, 02:45 PM
  7. [SOLVED] Filter record on color scheme
    By Prashant in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-12-2006, 07:20 AM

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