+ Reply to Thread
Results 1 to 7 of 7

Addin Help

  1. #1
    Registered User
    Join Date
    06-03-2006
    Posts
    2

    Addin Help

    Hi All,

    I created a macro and saved it as a ".xla". The macro selects sheet7 and updates few values and selectes sheet6 and updates few values.

    I have used code:
    Please Login or Register  to view this content.
    when I install the addin and run it in diffrent workbook it give me the below error.

    Run-time error '424'
    Object required

    please help me out with this.
    Last edited by VBA Noob; 01-30-2009 at 03:42 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Addin Help - Please urgent.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    I will add them this time, but make sure you read & understand the Forum Rules
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

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

    Re: Addin Help - Please urgent.

    The code will error if the active workbook does not have Sheet6. As your reference is not specific to the addin.

    looks like we were both adding code tags Roy
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Addin Help - Please urgent.

    Hi Andy, that locked up my post completely I had to re-open the forum.

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

    Re: Addin Help - Please urgent.

    Sorry about that.

  6. #6
    Registered User
    Join Date
    06-03-2006
    Posts
    2

    Re: Addin Help - Please urgent.

    Sorry for not adding the tags. will do it hence forth.

    I have around 15 sheets in that workbook and I have a variable which stores the active workbook which shows correctly but still I am getting the error.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Addin Help - Please urgent.

    As Andy says the way your code is written the addin is looking for Sheet6 in the addin, you must reference the correct workbook using either ActiveWorkBook or your variable

    Please Login or Register  to view this content.
    You should also remember it is generally unnecessary to activate/select sheets or ranges in VBA.

+ 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