Consulting

Results 1 to 5 of 5

Thread: Creating an addin and posting to other PCs

  1. #1
    VBAX Tutor lynnnow's Avatar
    Joined
    Jan 2005
    Location
    Mumbai, Maharashtra, India
    Posts
    299
    Location

    Creating an addin and posting to other PCs

    Hi,

    I've created an addin that searches the entire workbook for a given string. It works perfectly on my pc. However, the problem is that when I copied it to another pc for testing, the xls file that I created the macro in was getting referenced and it just failed to show the menu item that I had created in the xla and also the macro doesn't show in the run macro dialog box to run it manually.

    I've attached the xla for you guys to look at and tell me where i've gone and done something wrong.

    Any pointers will be appreciated.

    Thanks and regards,

    Lynnnow

  2. #2
    VBAX Expert Dave's Avatar
    Joined
    Mar 2005
    Posts
    835
    Location
    You need to add a workbook open event to the XLA that shows your userform. Dave

  3. #3
    VBAX Tutor lynnnow's Avatar
    Joined
    Jan 2005
    Location
    Mumbai, Maharashtra, India
    Posts
    299
    Location
    Hi Dave,

    Does the workbook open event have to be in the addin that references the xls file or how. A little more clarification on this point would be helpful.

    Thanks and regards,

    Lynnnow

  4. #4
    VBAX Expert Dave's Avatar
    Joined
    Mar 2005
    Posts
    835
    Location
    Paste this in your workbook code. Dave
    [VBA]
    Private Sub Workbook_Open()
    Call Search_All
    End Sub

    [/VBA]
    edit(x2): paste in XLA and save then re-open
    Last edited by Dave; 10-04-2005 at 10:50 PM. Reason: clarity

  5. #5
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Lynnnow,
    Just for your info, I created this KB ( http://vbaexpress.com/kb/getarticle.php?kb_id=195 ) to search and return all instances of a string. There is an XLA version in for approval at the moment, with a little more functionality if this is of any interest.
    Regards
    MD
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •