+ Reply to Thread
Results 1 to 12 of 12

Clear Contents, Independent Instances; Separate Worksheet VBA

  1. #1
    Registered User
    Join Date
    01-28-2015
    Location
    TX, USA
    MS-Off Ver
    2013
    Posts
    69

    Clear Contents, Independent Instances; Separate Worksheet VBA

    It's me again...

    So to explain I have a series of 15 sheets.
    Each sheet provides it's own references, dynamic ranges and so on.
    I have provided an "Options" Tab. But, this by no means where all selections and fields are filled in.
    I have a number of options on the Options tab, that I need to change corresponding cell in Sheet1 to blank,
    if the referring cell in the Options tab changes.

    WORKSHEET15 (Options Tab)
    Please Login or Register  to view this content.
    However, I also need dependent dropdown cells in Sheet1 to clear when their source is changed in Sheet1.

    Please Login or Register  to view this content.
    While I am learning what all of this means; in no way do I claim to understand the breakdown or code as a whole. I have only recently started tinkering with VBA, whereas I am generally good enough with functions and data validation to cobble things together.

    As always, any help is greatly appreciated.
    Last edited by Entregan; 10-03-2018 at 02:56 AM.

  2. #2
    Registered User
    Join Date
    01-28-2015
    Location
    TX, USA
    MS-Off Ver
    2013
    Posts
    69

    Re: Clear Contents, Independent Instances; Separate Worksheet VBA

    Just checking in.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Clear Contents, Independent Instances; Separate Worksheet VBA

    What's your question?
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    01-28-2015
    Location
    TX, USA
    MS-Off Ver
    2013
    Posts
    69
    How to I make both of these work in vba
    Without assigning a macro.
    One set clears contents from cells in the
    same tab 'Comparative Data' when parent cell
    changes.
    The other clears cell in 'Comparative Data'
    When the parent cell in the tab 'Options'
    changes.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Clear Contents, Independent Instances; Separate Worksheet VBA

    How to I make both of these work in vba
    Without assigning a macro.
    I don't understand; those are macros, and they run automatically in response to changes on the worksheet.

  6. #6
    Registered User
    Join Date
    01-28-2015
    Location
    TX, USA
    MS-Off Ver
    2013
    Posts
    69

    Re: Clear Contents, Independent Instances; Separate Worksheet VBA

    I applied the code. But, not the assignment of a hotkey or used the macro function.
    And while they do operate automatically as individual items,
    I input the code for Sheet15, and sheet1 stopped working.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Clear Contents, Independent Instances; Separate Worksheet VBA

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-28-2015
    Location
    TX, USA
    MS-Off Ver
    2013
    Posts
    69

    Re: Clear Contents, Independent Instances; Separate Worksheet VBA

    I think I understand - Application.EnableEvents
    On Error Goto Oops - Is this the equivalent of a coded 'IFERROR' function?
    and in kind can the same be said for - Case with regard to the if function?

  9. #9
    Registered User
    Join Date
    01-28-2015
    Location
    TX, USA
    MS-Off Ver
    2013
    Posts
    69

    Re: Clear Contents, Independent Instances; Separate Worksheet VBA

    Thanks again.
    Last edited by Entregan; 10-04-2018 at 02:22 PM.

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Clear Contents, Independent Instances; Separate Worksheet VBA

    You're welcome.

    I'm happy to answer any of your questions after you've invested the time to look at Help for those statements.

  11. #11
    Registered User
    Join Date
    01-28-2015
    Location
    TX, USA
    MS-Off Ver
    2013
    Posts
    69

    Re: Clear Contents, Independent Instances; Separate Worksheet VBA

    Easier to find, if you know what statements to look for.
    Thanks for that too.

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Clear Contents, Independent Instances; Separate Worksheet VBA

    You're welcome.

+ 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. [SOLVED] Clear Contents, Independent Instances; Same Worksheet VBA
    By Entregan in forum Excel General
    Replies: 2
    Last Post: 10-01-2018, 07:35 PM
  2. Need VBA to Clear Contents of All Instances for Data Validation
    By SStreckfuss in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2018, 01:49 PM
  3. [SOLVED] Clear Contents in an another worksheet
    By Keibri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-26-2015, 02:21 AM
  4. [SOLVED] Clear Cell Contents on Worksheet Change
    By nickhunt in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-22-2015, 03:18 AM
  5. Independent SheetX.cells.clear command per sheet
    By paradoxofthecat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2014, 04:43 AM
  6. [SOLVED] Clear Contents in Multiple WorkSheet
    By Allansdc in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 12-18-2013, 10:32 AM
  7. Clear Contents of Cells On Another Worksheet
    By Tellm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2012, 05:27 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