Sub ExcelVBA_030_Example2()
Dim BufDate1 As Date
Dim BufDate2 As Date
BufDate1 = #4/1/2020# '日付1(計算の起点)
BufDate2 = Now '日付2
Debug.Print "経過した年数:", DateDiff("yyyy", BufDate1, BufDate2)
Debug.Print "経過した年数:", DateDiff("m", BufDate1, BufDate2)
Debug.Print "経過した年数:", DateDiff("d", BufDate1, BufDate2)
End Sub
Sub ExcelVBA_030_Example2()
Dim BufDate1 As Date
Dim BufDate2 As Date
BufDate1 = #4/1/2020# '日付1(計算の起点)
BufDate2 = Now '日付2
Debug.Print "経過した年数:", DateDiff("yyyy", BufDate1, BufDate2)
Debug.Print "経過した年数:", DateDiff("m", BufDate1, BufDate2)
Debug.Print "経過した年数:", DateDiff("d", BufDate1, BufDate2)
End Sub
Sub ExcelVBA_030_Example3()
Dim Cnt As Long
Dim BufDate1 As Date
Dim BufDate2 As Date
Dim Limit As Long
For Cnt = 2 To 4
BufDate1 = Cells(Cnt, 3).Value '導入日
Limit = Cells(Cnt, 4).Value '耐用年数
BufDate2 = DateAdd("yyyy", Limit, BufDate1) '導入日+耐用年数=使用期限
If DateDiff("d", Now, BufDate2) >= 0 Then '現時刻と使用期限の差分で判定
Cells(Cnt, 5).Value = "期限内" '現時刻<=使用期限なら期限内
Else
Cells(Cnt, 5).Value = "期限超過" '現時刻>使用期限なら期限超過
End If
Next
End Sub
Sub ExcelVBA_030_Example3()
Dim Cnt As Long
Dim BufDate1 As Date
Dim BufDate2 As Date
Dim Limit As Long
For Cnt = 2 To 4
BufDate1 = Cells(Cnt, 3).Value '導入日
Limit = Cells(Cnt, 4).Value '耐用年数
BufDate2 = DateAdd("yyyy", Limit, BufDate1) '導入日+耐用年数=使用期限
If DateDiff("d", Now, BufDate2) >= 0 Then '現時刻と使用期限の差分で判定
Cells(Cnt, 5).Value = "期限内" '現時刻<=使用期限なら期限内
Else
Cells(Cnt, 5).Value = "期限超過" '現時刻>使用期限なら期限超過
End If
Next
End Sub
[マクロ実行前]
[マクロ実行後]
今回の記事は以上になります。
それでは、また次回お会いしましょう!
Birthday celebration system.
We offer a special surprise during the birth month for employees and their dependent family members.
Monthly employee surveys.
We conduct a survey every month to focus on employee’s views and accomplishments, actively working to enhance our workplace environment. This allows us to receive direct feedback from employees, helping us to create a better working environment.
Thanks cards system.
We’ve implemented a Thanks Card system to enhance appreciation and communication within our company. This allows us to give physical form to everyday expressions of gratitude, fostering positive relationships among employees. We have also implemented a digital card system, making it possible for employees who are located far apart to share their gratitude.
Annual company trips.
Annually, we enhance interactions outside of the workplace through company trips. These outings are planned not just as events, but as precious moments designed to strengthen relationships among employees.
Certification acquisition incentive program.
To enhance communication between employees, we facilitate the hosting of dining events. This encourages interactions between employees who do not usually have much contact with each other.
Hosting educational sessions within the company.
We regularly conduct group discussions to enhance communication skills while exposing participants to various perspectives. These sessions also foster teamwork and problem-solving abilities, essential skills in the IT industry.
Company events.
We foster employee interaction through various internal events such as BBQs, bowling, and cherry blossom viewing. Additionally, we are registered with a health promotion organization in Fukuoka City and regularly hold bowling events. Plans to expand into other activities are currently under consideration for the future.
Internal socialization promotion system.
To enhance communication between employees, we facilitate the hosting of dining events. This encourages interactions between employees who do not usually have much contact with each other.
Inviting external speakers.
We host lectures by external specialists, providing valuable perspectives that benefit both personal and professional development. This approach helps our employees expand their knowledge base.
End-of-month reporting sessions.
At the end of each month, all employees gather to share work updates and company announcements. This enhances communication and information sharing among staff. After the meeting, a social gathering is also held to foster camaraderie.
In-house training sessions.
In response to the rapid advancements in IT technology, we regularly hold study sessions aimed at updating and applying knowledge. This contributes to the improvement of our employee’s technical skills and the sharing of specialized knowledge.
Team development [Open Lab].
This initiative is a team development project designed to bring employee’s creative ideas to life. It’s an open effort that enables staff with varied skills to work together on innovative projects.
Internal library system.
We have implemented an internal library system that allows employees to freely borrow books to enhance their technical and business skills. This enables staff to flexibly acquire the knowledge they need.
Participation in external training programs.
We offer external training sessions focused on improving communication skills and business etiquette. Through these sessions, employees acquire practical skills that enhance teamwork and leadership abilities.
Company newsletter.
We send out a monthly internal newsletter through email, offering diverse content such as updates on technology trends and vital growth-related information. It also covers updates for our remote employees and highlights company events and profiles of featured employees.
Regular 1on1 meetings.
In our company, we hold routine one-on-one sessions with supervisors. These sessions are designed as opportunities for employees to freely discuss various topics, including job challenges, the work environment, career aspirations, and areas where the company could improve. The goal of these meetings is to work together to find solutions and promote personal and professional growth.
Conducting stress assessments.
We conduct periodic stress assessments for all employees, following the guidelines set by the Ministry of Health, Labour and Welfare. This initiative aims to prevent and mitigate mental health issues and to detect potential stressors at an early stage. We collaborate to promote a workplace conducive to overall well-being.