+ Reply to Thread
Results 1 to 3 of 3

Run Time Error 424 - Animating your companys logo code.

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Run Time Error 424 - Animating your companys logo code.

    Hi,

    I am trying to use Craig Hatmakers "Animating your companys logo" VBA code. However i get the above error when in immediate window and the another error in the workbook code window "sub or function not defined".


    I have named the picture "Logo" in a sheet called data.

    In the immediate window
    [Code]
    “Selection.Name = “Logo”
    [\code]


    in the workbook code window

    [Code]
    Private Sub Workbook_Open()

    Worksheets("Data").Activate
    ActiveSheet.Shapes("Logo").LockAspectRatio = False
    GrowShape ActiveSheet.Shapes("Logo"), 10
    SpinShape ActiveSheet.Shapes("Logo"), 10

    End Sub
    [\code]


    Can anyone help, this is very frustrating.

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

    Re: Run Time Error 424 - Animating your companys logo code.

    You need to use the forward slash for code tags.

    For the immediate window code did your really include the first quote marks? Also the quote mark characters need changing as I don't think they have cut/pasted correctly.

    Please Login or Register  to view this content.
    Have you got the GrowShape and SpinShape routines?
    Do you manually name the shape if the immediate window code failed?

    What is the actual error with that code?

    Maybe you should include a link to Craig's article so we can see what he is suggesting.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    09-14-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Run Time Error 424 - Animating your companys logo code.

    Hi Andy,

    Link to the code http://itknowledgeexchange.techtarge...logo-in-excel/

    I got rid of the run time error message on the immediate window. You were right, quotation marks did not copy/paste correctly...!!!!!!!!

    I do not have the grow shape , spin shape routines.

    I'm new to VBA and apart from the obvisious instructions on the site - i did not add these routines.

+ 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