+ Reply to Thread
Results 1 to 3 of 3

UserForm - vba errors only when opening Excel file from Spaces site

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    UserForm - vba errors only when opening Excel file from Spaces site

    I have a working Excel file that contains vba to display a userform. It works fine run locally or from network.

    When I put the document on a browser-based, Spaces site we use for sharing documents,I start to get code errors and they al;l seem to relate to the work/book/worksheet not being found (e.g. subscript out of range).

    I have tried using Application.Workbook("workbook.xls").Worksheets("worksheet1") to give a full path. I have also tried using ThisWorkbook. I still have errors.

    The VBA project consists of 1 user form and 1 module. Currently, references to the worksheet in the userform seem ok and don't produce errors. References in the module do produce errors.

    Has anyone seen anything similar. I was really hoping to find some way of getting this working on Spaces. It's so annoying!

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: UserForm - vba errors only when opening Excel file from Spaces site

    Hi DannyBoy,

    The full path requires the drive designation - did you code that??
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    05-13-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: UserForm - vba errors only when opening Excel file from Spaces site

    I didn't actually give the full path because i wasn't sure what to use - as it is browser based, I don't know if I would use url (e.g. http://spaces.com/excel.xls) or what. I can give it a try.

    I need to look at what format is for specifying path - e.g. Workbooks("http://spaces.com/excel.xls).Worksheets etc

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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