カテゴリー
excell macro

04_determination of a holiday

today’s theme is holiday judgement by excell macro.

I think holiday doesn’t have cycle.
some enterprises has a special holiday.
it is anniversary of founding, and so on.

After some thought,
I decided coding holidays judgement per day.

bellow is macro statement of holiday judgement.

ーーーーーーーーーーーーーーーーーーーーーー
Dim D_num As Date
Dim myData(9) As String
Dim i As Integer

myData(0) = “”
myData(1) = #12/30/2020#
myData(2) = #12/31/2020#
myData(3) = “”
myData(4) = “”
myData(5) = “”
myData(6) = “New Year’s Holiday”
myData(7) = “New Year’s Holiday”
myData(8) = “”
myData(9) = “”

For i = LBound(myData) To UBound(myData)

Dim F_num As Long
For F_num = 1 To 10

D_num = CDate(Cells(F_num, 1))
’assume that there are day of 10 cells from left corner to downward direction
’and format of these cells is day form without asterisk.
’(not *3/14/2012, but 2012/3/14)

If InStr(myData(i), D_num) <> 0 Then
Cells(F_num, 1).Font.ColorIndex = 46
’if the cell matched holiday change the character color.
Cells(F_num, 2) = myData(i + 5)
’and writing holiday name next to this.

Exit For
End If
Next F_num
Next i
ーーーーーーーーーーーーーーーーーーーーーー

i used one-dimensional matrix as two-dimensional
by IF sentence.

thank you.

カテゴリー
エクセル マクロ

04_祝日判定

今回のテーマはエクセルのマクロで祝日判定です。

祝日には周期がないようです。
また企業によっては創立記念日などの祝日もあります。

考えた結果、一日一日 書き込む
ことにしました。

次 コードです

Dim D_num As Date
Dim myData(9) As String
Dim i As Integer

myData(0) = “”
myData(1) = #12/30/2020#
myData(2) = #12/31/2020#
myData(3) = “”
myData(4) = “”
myData(5) = “”
myData(6) = “年末年始の休み”
myData(7) = “年末年始の休み”
myData(8) = “”
myData(9) = “”

For i = LBound(myData) To UBound(myData)

Dim F_num As Long
For F_num = 1 To 10

D_num = CDate(Cells(F_num, 1))
’左角のセルから下に向かって10セル分日付があるとします
’この10セル分の表示はアスタリスクのない日付形式とします

’(*3/14/2012ではなく、2012/3/14とする)

If InStr(myData(i), D_num) <> 0 Then
Cells(F_num, 1).Font.ColorIndex = 46
’祝日に該当するセルの文字色を変更します
Cells(F_num, 2) = myData(i + 5)
’祝日に該当するセルのすぐ右のセルに祝日名を記載します

Exit For
End If
Next F_num
Next i

if文を使って 一次元の行列を
二次元の行列のように
処理しました。

以上です


カテゴリー
take a certification exam

03_2nd class Certified Electrician skills test

the other day, I took 2nd class Certified Electrician
skills test.

The test consisted of the following
・test time:40 minutes
・Complete small scale low voltage wiring work.
・The performance of this construction will be scored to determine pass or fail.
・The test center is indoors.

announcement of pass or fail is some time in the future.
I hope I’m passing.
Actually i took same exam last year and failed it

i have taken variety of certification test,
skills test is second time.

Mark sheet test and skills test are different.
[difference]
1. skills test has a risk of injury.
2. You’ll need physical strength
― strong grip and so on too.
3. And you’ll need feel too that clean wiring is beautiful.
4. It’s noisy during testing for making a circuit.
5. A large amount of wiring scraps and other debris is generated during practice before the test.

skills test makes you serious about injury, physical strength,noise, beauty of wiring.
unlike Mark sheet test.
so skills test more real than mark sheet.

i think i can said, The person who passes this test
is very human.

That’s how I felt when I took the test.

Thank you



カテゴリー
資格挑戦

03_第二種電気工事士 技能試験

先日 第二種電気工事士 技能試験を受けました。
この試験は次の内容で行われました。
・試験時間:40分
・小規模の低圧配線工事を完成させる。
・工事の出来が採点されて合否が決定します。
・試験場は屋内です。

合否発表は少し先です。合格しているといいなと思います
実は昨年も同じ試験を受けて不合格となりました。

今まで私は資格の試験はいろいろと受けてきましたが
技能試験は二度目です。
マークシート試験と技能試験は異なります。
[違い]
1. 技能試験は怪我をする可能性がある。
2. 握力など体力も必要になる。
3. きれいな配線をきれいと感じられる感性も必要。
4. 試験時は工事の音で騒がしい。
5. 試験前の練習中に配線くずなどのごみが大量にでる。

すべて頭の中で考えるマークシート試験と違って
技能試験は怪我・体力・音・配線のきれいさなどに
向き合うため、よりリアルです

この試験に合格する人は人間味ある人ではないでしょうか。
受験を通じて 私はそのように感じました。

以上です



カテゴリー
social events

02_CoronavirusDisease 2019(COVID-19)

20200725,Saturday

this topic is playing on tv everyday.
The increase in the number of people infected across the country has been the main focus.

Coronavirus
l can’t see it, it doesn’t have scent, i can’t here the sound when it come to me.

lack of presence, i thought It’s a bit like electricity.

AC electricity constantly changing from plus peak to minus peak. i can say it a fancy move.

Coronavirus a fancy move too.
It is spreading in Japan and abroad.

They’re a flashy move in spite of they don’t have presence.
It’s an uncomfortable sentence.

I’d like to rephrase the sentence “they have no presence.”
my five senses can’t capture them.
or
I’m not interested in them.

If I imagine they exist, I can take their presence
from 0 to 1.

To imagine where exactly it exists
One way to do that, I suppose, is to learn the traits.

now i ‘m getting Coronavirus information on web.
Hmmm. I’m learning.

Coronavirus
I thought people should get Coronavirus information
actively. To take their presence from 0 to 1.

カテゴリー
社会のできごと

02_コロナウイルス

20200725土曜日

テレビで連日放映されている話題です。
全国での感染者の増加が主に取り上げられています

コロナウイルス
見えないし、香りもないし、近づいてきても音がしない。
この存在感のなさ 電気と似ているところがあるなと思いました

交流の電気はプラスのピークからマイナスのピークまで絶えず変化していますので そこそこ派手な動きをしています

コロナウイルスも日本国内・海外にも拡散しています
派手な動きです。

彼らは存在感がないのに派手な動きです
違和感ある文章になりました。

彼らは存在感がないを言い換えてみます
彼らは私の五感ではとらえられない。
もしくは 私は彼らに興味がない。

もし私が存在すると想像すれば存在感を0から1にできます。

具体的にどのあたりに存在するか想像するためには
特徴を学ぶことが ひとつの方法と言っていいでしょう。

コロナウイルスの特徴をインターネットで調べてみます。
ふむふむ勉強になります。

コロナウイルス
存在感を0から1にすべく 能動的に学ぶべきだと思いました

以上です

カテゴリー
good to see you

01_ I’m happy to meet you!

20200724
It is during 4 consecutive holidays
I’d like to start a blog.
I thought start a new thing.

First, I’ll do my best with this blog for three months.
If I can continue, I will continue.

this blog is only writting Earnestly that yukihyo thinking.

Contents are
・Excel macro
・English
・Social problems
・take a certification exam
・Memories of when I went somewhere
・other

I wish perason who read this blog is glad.

That’s it.

カテゴリー
挨拶

01_はじめまして

20200724
現在4連休中です。あたらしいことを始めたいと考えてブログを
開設することにしました。
まずは3か月がんばってみて 続けられそうなら続けます

このブログはyukihyoが考えたことをひたすら書くだけです

書く内容は
・エクセルのマクロ
・英語
・社会の問題
・資格挑戦
・どこかに出かけた際の思い出
・その他
です。英語の勉強のため 英語版もできる限り作ります

読んだ人が面白いと思ってくれたらいいなと思います

以上です