Traditional Culture Encyclopedia - Almanac inquiry - How to automatically display the day of the week of the current date in the perpetual calendar compiled by excel? For example, if I select C6 cell with the mouse, the current date will become 65438+Fe
How to automatically display the day of the week of the current date in the perpetual calendar compiled by excel? For example, if I select C6 cell with the mouse, the current date will become 65438+Fe
How to automatically display the day of the week of the current date in the perpetual calendar compiled by excel? For example, if I select C6 cell with the mouse, the current date will become 65438+February 3rd.
You must use VBA to activate and change the contents of one cell by selecting another.
This function does not judge the selected operation.
Right-click the worksheet tab to view the code.
Just paste the following code into the code window.
Private worksheet _ selection change (byval target as range)
If the target. Then Count = 1
If the target < > "and then _
【E22】=【E2】& amp; "Year"&; 【G2】& amp; "Month"&; Target. Value and value. "day"
If ... it will be over.
End joint
- Related articles
- Dreaming of the wonderful flowers in the coffin
- Lunar calendar in 2022 10
- Year, month and day attribute query calendar
- Cixi was silent, kind and afraid of ghosts in her later years.
- What does evil mean in the yellow calendar?
- Dream of blasting rocks and opening mountains
- What's the quality of Tianshide calendar wall clock?
- Measure the auspicious day of moving in Gregorian calendar.
- When will you choose to get married and register? Is there any special significance?
- 2022 is the best date for rabbits to get married in December of the lunar calendar. When is the best day for a wedding?