+ Reply to Thread
Results 1 to 2 of 2

Sharing workbook causes error 1004

Hybrid View

  1. #1
    Registered User
    Join Date
    09-03-2007
    Posts
    5

    Unhappy Sharing workbook causes error 1004

    I have a workbook that has code for a VB label. The label width may be altered by inbuilt VBA code that enacts when the worksheet is activated.

    This works fine when the workbook is in single user mode, but when I switch the workbook into shared mode the line

    Label1.Width = <numeric val>
    causes the following error:

    runtime error 1004
    Unable to set width proprty of the OLE object class


    Has anyone seen a similar problem to this and how can I get this to work in when in shared mode?

    Thanks

  2. #2
    Registered User
    Join Date
    09-03-2007
    Posts
    5

    Re: Sharing workbook causes error 1004

    Ok, just found out that OLE objects are not available in shared workbooks:
    http://support.microsoft.com/kb/130560/en-us
    So does anyone know of a way of switching code in /out depending if in shared mode or not?

+ 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