+ Reply to Thread
Results 1 to 2 of 2

Precedents and Dependents

  1. #1
    Registered User
    Join Date
    08-16-2008
    Location
    India
    Posts
    11

    Precedents and Dependents

    Hi

    As a part of a macro I am trying to figure out the functionality of Dependents and precedents. I've pretty much understood the concept of Precedents and have been able to use them in macros.

    So this macro i'm writing would have 2 basic conditions:
    1. Precedents.Count = 0
    2. Dependents.Count <> 0


    Please Login or Register  to view this content.
    Basically, the macro should test that, firstly, A1 is not a formulae itself and secondly, alteast one of the cells in the active worksheet is linked to A1.

    Now I'm able to get the precedents thing to work. But the 'Dependents' is not working. Rather new at this mind you

    Where am I going wrong?

    Thanks in advance
    Last edited by roy1987; 06-26-2009 at 12:16 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Precedents and Dependents

    You will get a debug if no dependents/precedents can be found so you should capture with Error Handler etc... eg:

    Please Login or Register  to view this content.
    Is that what you meant ?

+ 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