Results 1 to 3 of 3

command button only to show on certain weekday

Threaded View

JamesT1 command button only to show... 07-15-2016, 10:30 AM
davesexcel Re: command button only to... 07-15-2016, 11:05 AM
JamesT1 Re: command button only to... 07-15-2016, 02:00 PM
  1. #1
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    430

    command button only to show on certain weekday

    hi guys

    This one has me stumped,,, i thought it would be a small macro..

    when a userform opens,,, I would like a command button/ text box only to show on a certain day..... I thought the code below would show a command button on a friday... cant get it to work.. am I going down the right road..

    I also tried referencing a cell witht eh weekday in it,,, same result... many thanks


    Private Sub UserForm_Open()
    
    If (Weekday(Now())) = 6 Then
    cmd1.Visible = True
    End Sub
    Last edited by JamesT1; 07-15-2016 at 02:01 PM. Reason: additional inforamtion

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Command Button to Show Hidden pivot charts
    By Chioma1975 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2013, 08:56 PM
  2. Command button to show hidden worksheet
    By Chioma1975 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-03-2013, 12:24 PM
  3. Show worksheet from Command Button?
    By themikeford in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2012, 10:32 PM
  4. Worksheet Change Event to Show Command Button
    By ker9 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-21-2011, 04:39 PM
  5. [SOLVED] Hide/Show Command button based on cell value
    By paxile2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2010, 08:59 AM
  6. Show command Button on worksheet when cell = True
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-20-2009, 05:08 PM
  7. command button on/off (show/hide)
    By gobbolino in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2007, 10:35 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