reylan

reylan

Board Regular
Joined
Jul 21, 2010
Messages
74
Is there a way that in a Sheet name Discounts cell Y1048576 will autofill up
a name YOUTIMEMEUP

sITUATION:

cell y1048576 is locked and hidden by password NOMOREHAPPYJOB
cell y1048576 is left as blank till the set time comes let us say july 16, 2011
then the word will appear OR FILLE UP in cell y1048576 YOUTIMEMEUP
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I would suggest a workbook open event would be your best option. This will check the date every time you open the workbook. Something like:

Private Sub Workbook_Open()
dim SysDate as String

SysDate = Date
If SysDate = "16/07/2011" Then
With Worksheets("Discounts")
.Unprotect Password:="NOMOREHAPPYJOB"
.Cells(1048576,25).Value = "YOUTIMEMEUP"
.Protect Password:="NOMOREHAPPYJOB", DrawingObjects:=False, Contents:=True, Scenarios:=False
End With
End If

End Sub


I've not tested the code though, so may require some tweaking.
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,696
Members
452,938
Latest member
babeneker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top