Results 1 to 19 of 19

Can you execute a macro or shortcut keystroke within an "IF" function?

Threaded View

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    Hollister, CA
    MS-Off Ver
    Excel 2003
    Posts
    16

    Can you execute a macro or shortcut keystroke within an "IF" function?

    Situation: I have 4 rows that are Hidden. I have a checkbox that is linked to cell "D6". The question before the checkbox is "Do you have financing?". If the user leaves the checkbox unchecked, cell "D6" stays FALSE and the 4 rows remain Hidden. If the user checks the checkbox, cell "D6" changes to TRUE and the 4 rows become Unhidden. The 4 rows display cells that the user can fill in the requested information. I created Macro1 that Unhides the 4 rows and Macro2 that Hides the 4 rows. Ideally, the "IF" statement would look like =IF(D6,Macro1,Macro2), but it does not work. Is there anyway I can accomplish what I want to do?? Maybe not using the IF function, but some other function?? I really appreciate your help in this matter. Ty
    Last edited by Tholmq; 12-15-2013 at 11:12 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Can't execute a macro whit text inside procedure header's "()" *Help*
    By Timestamp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-24-2012, 06:55 AM
  2. function (UDF) to execute "application.CalculateFullRebuild"
    By cg4 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-16-2012, 04:30 PM
  3. How to execute macro requiring an entry on the "save as" menu
    By anmck in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-09-2010, 04:45 PM
  4. Replies: 1
    Last Post: 05-25-2010, 02:25 PM
  5. Excel 2003 should have "multiply multiple cells" macro / shortcut
    By Tommy D in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2005, 05:05 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