+ Reply to Thread
Results 1 to 4 of 4

Excel Share file CommandButton resize Problem

Hybrid View

Deredrum Excel Share file... 01-17-2014, 06:18 AM
Izandol Re: Excel Share file... 01-17-2014, 07:29 AM
Deredrum Re: Excel Share file... 01-17-2014, 10:03 AM
Izandol Re: Excel Share file... 01-17-2014, 10:04 AM
  1. #1
    Registered User
    Join Date
    09-02-2013
    Location
    Posen
    MS-Off Ver
    Excel 2010
    Posts
    6

    Excel Share file CommandButton resize Problem

    Hi all

    I have a problem with Excel share file.
    I try to resize commondbuttons when file is in use.

    My code:

    Public Sub Worksheet_Open()
    
    Save.Left = 60
    Save.Top = 60
    Save.Width = 230
    Save.Height = 45
    But I getting statement:

    Run-time error 1004: Unable to set the left property of the OLEObject class

    I must used this code becouse commandButton (i don't know why) automaticly resizes.

    Someone recognizes this problem?

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Excel Share file CommandButton resize Problem

    You may not change properties of OLEobjects in Shared Workbook. May you try to use Forms button instead of ActiveX button? It is possible it will not resize like ActiveX version.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    09-02-2013
    Location
    Posen
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Excel Share file CommandButton resize Problem

    Hi

    Thanks for answer.

    You are right. I used Form Button

    Public Sub Worksheet_Open()
    
    
    poz_start_kl_l = 750.25                 
    poz_start_kl_w = 150.25
    szer_kl = 126.75
    wys_kl = 32.25
    
    ActiveSheet.Shapes("Button 1").Left = poz_start_kl_l
    ActiveSheet.Shapes("Button 1").Top = poz_start_kl_w
    ActiveSheet.Shapes("Button 1").Width = szer_kl
    ActiveSheet.Shapes("Button 1").Height = wys_kl

    Works great.

    THX

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Excel Share file CommandButton resize Problem

    You are welcome.

+ 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. share excel file
    By VBisgreat in forum Excel General
    Replies: 2
    Last Post: 09-12-2011, 03:13 PM
  2. share excel file
    By VBisgreat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2011, 02:50 PM
  3. Excel, resize file
    By Dusse in forum Excel General
    Replies: 3
    Last Post: 08-15-2009, 05:59 AM
  4. how do I share an excel file using the internet?
    By ranche secretary in forum Excel General
    Replies: 1
    Last Post: 05-19-2005, 01:27 PM
  5. [SOLVED] how do you share an open excel file
    By <<junkforjohn101@noreply.hotma in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-13-2005, 03:06 PM

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