+ Reply to Thread
Results 1 to 5 of 5

(.left property) and (LockAspectRatio) don't work

  1. #1
    Forum Contributor
    Join Date
    07-20-2012
    Location
    Kingdom of Saudi Arabia
    MS-Off Ver
    Excel 2016
    Posts
    103

    Lightbulb (.left property) and (LockAspectRatio) don't work

    Hi,

    In need help …

    I have macro to insert picture into a sheet:

    Please Login or Register  to view this content.
    My problem is:
    In "empty" sheet: macro work perfectly. But

    In "L-R" sheet and In "R-L" sheet: (.left property) and (LockAspectRatio) don't work.

    How can I Solve these issues in (L-R) and (R-L)?

    Thank you. (I attached the file)
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: (.left property) and (LockAspectRatio) don't work

    The lockaspect is working for me.

    Try changing the order of the .left and .width

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    07-20-2012
    Location
    Kingdom of Saudi Arabia
    MS-Off Ver
    Excel 2016
    Posts
    103

    Re: (.left property) and (LockAspectRatio) don't work

    Thanks Andy Pope,

    .left now works perfect but .lockAspectRatio still not work

    When the picture inserted its hight to width ratio changes

    Thank again Andy Pope

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: (.left property) and (LockAspectRatio) don't work

    You need to clarify what you mean by LockAspectRatio does not work. The property is set after running code.

    If you mean the inserted shape is not the correct dimensions then perhaps you should not apply that setting uptil after you size and position the shape.

  5. #5
    Forum Contributor
    Join Date
    07-20-2012
    Location
    Kingdom of Saudi Arabia
    MS-Off Ver
    Excel 2016
    Posts
    103

    Re: (.left property) and (LockAspectRatio) don't work

    THANKS ANDY POPE for Your REPLY

    YES, that what i mean,

    To i solve this issue, some lines of the macro adjusted to:

    Please Login or Register  to view this content.
    THANKS ANDY POPE AGAIN
    Last edited by exceere; 06-13-2014 at 08:43 AM.

+ 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. GetAsyncKeyState work rclick, not left
    By rcamarda390 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-31-2016, 12:36 PM
  2. [SOLVED] LEFT function error (excelVBA) - Wrong number of arguments or invalid property assignment
    By wazimu13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2014, 07:48 AM
  3. =LEFT won't work with =IF
    By o'h3nry in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-14-2009, 12:33 PM
  4. Column Width property does not work
    By LizW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2005, 02:05 PM
  5. [SOLVED] The left function does not work when displaying times, how is thi.
    By Nambo27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-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