+ Reply to Thread
Results 1 to 3 of 3

Setting an angle

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Guelph, Canada
    MS-Off Ver
    Excel 2003
    Posts
    26

    Setting an angle

    Hey everyone

    Okay so I have a program that rotates an arrow when a button is pushed. I use this code
    Please Login or Register  to view this content.
    This works fine, however i want the image to be back to normal every time the program is opened. I cant just say "When the worksheet is opened rotate it -50" because the "50" will be a random variable.

  2. #2
    Registered User
    Join Date
    07-16-2012
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Setting an angle

    Hi,

    you could create a cell that stores the changes made to the rotation, so when its rotated by 50 add 50 in the cell, if its then rotated -70 add -70 to the cell leaving -20 in the cell,

    then when the workbooks open, rotate by - this cell, and reset the cell to 0.

    Regards,

    Andy

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

    Re: Setting an angle

    code
    Please Login or Register  to view this content.
    Call the reset from the Workbook_Open event, making sure the active sheet contains the arrow
    Last edited by Andy Pope; 10-29-2012 at 11:43 AM.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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