+ Reply to Thread
Results 1 to 3 of 3

Two procedures not playing nicely together

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Perth, Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Two procedures not playing nicely together

    Dear Forum

    Please find attached my spreadsheet with two modules. The first module is called “Tree” and does a lovely expanding and contracting tree when you click on “+” or “-“. The second module is called “TextSearch”. When you click on the button on the first worksheet it allows you to do a text search across the entire workbook, creates a sheet called “FindWord” and populates this sheet with hyperlinks to where the text is to be found.(try searching for “bread”) It replicates the “find all” functionality built into Excel. The problem is that when you click on the button and conduct a text search, it prevents the expanding and contracting procedure from working properly.

    Can anyone identify what code needs to be inserted to allow these two procedures to run happily alongside each other?

    As always any help is greatly appreciated.

    Regards

    Scott N
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Two procedures not playing nicely together

    I haven't formulated a solution but I noticed:
    Please Login or Register  to view this content.
    several times in the code??? When I commented them out, something happened but I get reference not valid when I click on the hyperlinks!!
    Last edited by xladept; 02-25-2013 at 03:13 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Two procedures not playing nicely together

    hi Scott N, please check attachment
    Attached Files Attached Files

+ 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