+ Reply to Thread
Results 1 to 3 of 3

SharePoint Custom Server Properties and Excel 2007

Hybrid View

  1. #1
    Registered User
    Join Date
    08-10-2011
    Location
    Maryland, US
    MS-Off Ver
    Excel 2007
    Posts
    1

    SharePoint Custom Server Properties and Excel 2007

    Good afternoon, all. I have an Excel 2007 template that has several predefined custom properties, but am running into problems when trying to set them. Here are the details:

    1. I've saved the template spreadsheet (.xlsm) as a content type within a SharePoint library. The file opens from there, and successful saves (this is somewhat flaky) publish the file into that same library.

    2. Within the spreadsheet I have named ranges and set up custom properties that point to these named ranges. Ideally, the information from the named ranges will populate the custom properties, which will then be displayed in the correct columns within the SharePoint library.

    3. I have a simple bit of code in place that is supposed to set the custom properties with data contained within the workbook. This code is currently button-triggered:

    Sub Button2_Click()
        For Each Prop In ThisWorkbook.ContentTypeProperties
            If Prop.Name = "Proj_Title" Then
                Prop.Value = Range("Proj_Title").Value
            End If 
        Next Prop
    End Sub
    When I try to click on the button, however, I get an error message that I haven't been able to track down:

    Run-time error '-2147023728 (80070490)': Unknown name.

    Clicking on the dialog box's Help button yields this bit of information:

    Cannot open the file mk:@MSITStore:mshtml.hlp>LangRef.

    I have verified that I have every range named, and every range is attached to a custom property. The odd thing is that Excel actually does push the properties into the right properties, but this error message is obviously not desirable. What burns me the most is that this worked fine yesterday.

    I welcome any help you can provide.

    Thanks,

    AP

  2. #2
    Registered User
    Join Date
    12-05-2006
    Posts
    81

    Re: SharePoint Custom Server Properties and Excel 2007

    Did you figure it out? I ame getting the same runtime error. it populates then crash.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,168

    Re: SharePoint Custom Server Properties and Excel 2007

    Pindacko,

    This is an old thread. I would suggest you open a thread of your own and you can link back to this thread. You will get faster replies that way.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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