+ Reply to Thread
Results 1 to 5 of 5

Error using datebox on shared folder

  1. #1
    Registered User
    Join Date
    08-25-2016
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    3

    Error using datebox on shared folder

    Hi,

    I have created a datebox that pops up whenever I click specific columns. It works well until I share the file (which is required at all times). This is my error:

    Run-time error '1004':

    Unable to set the Left property of the OLEObject class


    And this is my current code:

    Public Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Cells.Count > 1 Then Exit Sub
    If Not Application.Intersect(Range("C2:C32000, M2:M32000, N2:N32000"), Target) Is Nothing Then
    Calendar1.Left = Target.Left + Target.Width - Calendar1.Width
    Calendar1.Top = Target.Top + Target.Height
    Calendar1.Visible = True

    Calendar1.Value = Date
    ElseIf Calendar1.Visible Then Calendar1.Visible = False
    End If
    End Sub



    I am by no means an advanced excel user and was hoping someone could shed some light as to what needs to be changed.

    Thank you

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Error using datebox on shared folder

    A shared workbook has serious limitations ... See: https://support.office.com/en-us/art...ID=HP010342985
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-25-2016
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    3

    Re: Error using datebox on shared folder

    Quote Originally Posted by TMS View Post
    A shared workbook has serious limitations ... See: https://support.office.com/en-us/art...ID=HP010342985

    My coworker is under the impression it is possible to keep the datebox on the shared folder with certain alterations; personally I do not know. I have researched and made sure the protection settings were correct and the proper areas were enabled with macros. If you are saying it is impossible to do this then I will go with that. Could you advise if this seems to be the situation here? If so, do you know of a different method in which I could create a forced date picker; the goal of this sheet is to create standardization and force the user to pick everything (not just date) from listed options.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Error using datebox on shared folder

    In all honesty, I do not know. I'm just going with:
    (You cannot) Insert or change pictures or other objects - You can view existing pictures and objects
    You are trying to manipulate a Calendar Object and the implication is that you cannot do that.

  5. #5
    Registered User
    Join Date
    08-25-2016
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    3

    Re: Error using datebox on shared folder

    Quote Originally Posted by TMS View Post
    In all honesty, I do not know. I'm just going with:

    You are trying to manipulate a Calendar Object and the implication is that you cannot do that.
    Ah I see. I appreciate you taking the time to guide me in the right direction; it's not the end of the world to manually enter a date. Thank you.

+ 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. VBA: Saving To A Network Shared Folder
    By dumbnut in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2019, 05:54 AM
  2. Save mails sent from shared mailbox in that shared mailbox's Sent folder
    By LordClick in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2016, 03:30 PM
  3. [SOLVED] UserForm on shared folder closing
    By WimpieOosthuizen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-14-2015, 05:24 AM
  4. shared folder outlook vba
    By dulitul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2013, 04:21 AM
  5. Excel post shared folder
    By siisii in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2011, 08:12 AM
  6. [SOLVED] VBA to allow a folder to be a shared folder
    By Shane in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2005, 06:15 AM
  7. How do I lock a folder on a shared drive ?
    By Tony Brown in forum Excel General
    Replies: 1
    Last Post: 02-28-2005, 04:06 AM

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