I want to select one cell in my worksheet to have a date of 1st of the month. when I open worksheet no matter which day of the month Or Which month that cell show the date of the 1st day of the current month.
Thanks
I want to select one cell in my worksheet to have a date of 1st of the month. when I open worksheet no matter which day of the month Or Which month that cell show the date of the 1st day of the current month.
Thanks
try this UDF function
paste above code into standard module and refer to it in cell You need to![]()
Please Login or Register to view this content.
i.e. A1 formula = ThisMonthFirstDay()
Best Regards
MaczaQ
---------------------------------------------------------------------------------------------------------------------------
If you are satisfied with the solution(s) provided, please mark your thread as Solved
If you are pleased with my answer consider to rate it. To thank someone who has helped you, click on the star icon below their name.
- This way you will add him some reputation points ... thanks in advance.
Sorry, did not work for me may be I am doing something wrong here, I have few sheet in my workbook, how I am able to set this to sheet1, cell a5 ?
Please explane,
Thanks
RR
this is global function You have to copy my code into Module and then in Sheet1 in cell a5 set formula "=ThisMonthFirstDay()"
Thanks a lot it work now,
![]()
Your Welcome !![]()
When I open workbook today it did not change to June 1st, It work last time when I set it in may.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks