+ Reply to Thread
Results 1 to 2 of 2

Finding code associated with a worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    01-18-2016
    Location
    UK
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    1

    Finding code associated with a worksheet

    This has probably been asked and answered before. So apologies for that, but I couldn't find it from cursory searching.

    Is there a good way to find code associated with a particular workbook. I have recently inherited some worksheets and there are some macros (specifically there appears to be a macro that hides rows in a sheet depending on the contents of another cell) - There's a cell wherein you select a name from a dropdown (I believe created using the data validation tool). Column A is set to 1 if the name matches the Name column, or the selected name is All and 0 otherwise. The row (used) to be hidden if column A was 0. But I've added some columns, and now the macro doesn't behave as expected.

    =IF(OR(ISBLANK($C$1),$C$1="All"),1,IF($C$1=F12,1,0))
    I can't find the (I guess) VBA code that does this. Is there a list of places I should look for it. I've added developer mode to my ribbon, and had a flick through the Workbooks/Sheets etc for the routine in the Visual Basic editor.

    Is there a way to interrogate a cell to find out what it's doing when it is updated?

    Thanks in advance for your help
    (Office Pro 2013 if it's important).

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Finding code associated with a worksheet

    If you are in the VBEditor and double click on on all object or modules in the Project Explorer, that should open windows where you can look for the code you seek.
    From your description, it should be in the code module associated with the sheet in question or in ThisWorkbook.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 01-06-2016, 10:04 AM
  2. Replies: 2
    Last Post: 12-11-2014, 03:26 PM
  3. [SOLVED] Finding a name in a cell within a worksheet in another worksheet
    By antb2000 in forum Excel General
    Replies: 5
    Last Post: 07-30-2013, 09:43 AM
  4. Worksheet Code Launches Diifferent Worksheet Code - PivotTableUpdate
    By sample57 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2013, 04:33 PM
  5. Finding Queries in code
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2012, 07:08 AM
  6. Pasting code into a worksheet by finding the last liine of text
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-21-2011, 07:28 AM
  7. Code not finding records
    By ojackiec in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2005, 12:55 PM

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