Results 1 to 11 of 11

Holiday Function - Show/Hide 1st of May.

Threaded View

gnaske Holiday Function - Show/Hide... 07-17-2019, 04:44 PM
Greg M Re: Holiday Function -... 07-17-2019, 07:19 PM
gnaske Re: Holiday Function -... 07-18-2019, 02:24 AM
gnaske Re: Holiday Function -... 07-18-2019, 02:45 AM
Greg M Re: Holiday Function -... 07-18-2019, 07:35 AM
gnaske Re: Holiday Function -... 07-18-2019, 03:55 PM
gnaske Re: Holiday Function -... 07-19-2019, 12:36 AM
Greg M Re: Holiday Function -... 07-19-2019, 09:02 PM
gnaske Re: Holiday Function -... 07-20-2019, 02:21 AM
Greg M Re: Holiday Function -... 07-28-2019, 02:47 PM
gnaske Re: Holiday Function -... 07-28-2019, 04:04 PM
  1. #1
    Forum Contributor
    Join Date
    01-13-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010 and 2019, but only 2019 to test if my sheets works!
    Posts
    149

    Holiday Function - Show/Hide 1st of May.

    Hi Forum.

    This description is in the attached Test too.

    I need to show the 1st of May in B4, depending of the value in D10 is Yes or No.

    The Case DateSerial(InputYear, 5, 1): HelligdagsNavn = "1. Maj" is working in the Module Function named X_Helligdage_Funktion.

    Instead I need something as the two IF THEN below or maybe an IF THEN ELSE instead and only use the Yes.
    - Rem If Sheets("Indstil").Range("D10") = "Yes" Then Case DateSerial(InputYear, 5, 1): HelligdagsNavn = "1. Maj"
    - Rem If Sheets("Indstil").Range("D10") = "No" Then Case DateSerial(InputYear, 5, 1): HelligdagsNavn = ""


    Anybody who can help me define the Yes(No) in the VBA Function ?

    Thank you in advance.

    Ib
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 03-09-2015, 11:42 PM
  2. [SOLVED] IF function using WORKDAYS and a Bank Holiday list - trying to add new holiday dates
    By jowarks in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-05-2013, 05:42 AM
  3. Function/VBA or something to show hide signature(image) using a pin number.
    By smarcins in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2012, 05:39 AM
  4. Show how many days holiday
    By Newtransistorhero in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 11-23-2009, 12:05 PM
  5. show holiday
    By pichai in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-27-2008, 09:31 AM
  6. [SOLVED] Holiday Planner show holiday taken?
    By Mac5 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-23-2006, 01:23 PM
  7. [SOLVED] show value but hide function
    By idanovich@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2006, 03: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