Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Tweaking Code

This code works fine. Is there a way to keep it from repeating over the next
5 days. Once Enter is selected I don't want to be asked again untill the next
year. Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Tweaking Code

OOps sorry for got to post code.
If Month(Date) = 1 Then
If Day(Date) = 1 And Day(Date) < 5 Then
UserForm1.Show
If MsgBox("Do you qualify for Bank Day?", _
vbYesNo) = vbYes Then
Worksheets("Vacation").Range("C3").Value = 1
Else
Worksheets("Vacation").Range("C3").Value = 0
End If
End If
End If

"Richard" wrote:

This code works fine. Is there a way to keep it from repeating over the next
5 days. Once Enter is selected I don't want to be asked again untill the next
year. Thanks in advance!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Tweaking Code

Add the following line after UserForm1.Show...

"If Len(Worksheets(1).Range("C3").Value) = 0 Then"

Also, add another "End If" at the bottom.

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Richard" wrote in message...
OOps sorry for got to post code.
If Month(Date) = 1 Then
If Day(Date) = 1 And Day(Date) < 5 Then
UserForm1.Show
If MsgBox("Do you qualify for Bank Day?", _
vbYesNo) = vbYes Then
Worksheets("Vacation").Range("C3").Value = 1
Else
Worksheets("Vacation").Range("C3").Value = 0
End If
End If
End If

"Richard" wrote:
This code works fine. Is there a way to keep it from repeating over the next
5 days. Once Enter is selected I don't want to be asked again untill the next
year. Thanks in advance!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with tweaking formula Johndb Excel Worksheet Functions 5 July 24th 09 11:28 PM
Need help - track changes code needs tweaking purpleme3 Excel Programming 0 December 13th 05 11:46 PM
Tweaking Code - Experts Only! Gordon Excel Programming 4 August 6th 04 04:09 PM
combining 2+ wkbks into 1. Code needs tweaking please ian123[_31_] Excel Programming 12 January 3rd 04 11:20 PM
Searching range for value (code written but needs 'tweaking'!) ian123[_26_] Excel Programming 8 December 23rd 03 05:19 PM


All times are GMT +1. The time now is 05:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"