![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 103
|
Hi I have created combo box so that when a sheet opens up you can insert a date into cell, I was wondering if anybody knew how I could have it automatically pop up once a week when the sheet is opened up.
please can somebody help me. Thank you |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Try putting in an if statement like the following:
Private Sub Worksheet_Activate() If WeekdayName(Weekday(Date)) = "Tuesday" Then UserForm1.Show End Sub The code will show userform1 every Tuesday, when the worksheet is activated. You can put the code in the module for the worksheet.
__________________
Kind regards, Al Chara |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|