-
未分類
同じ単語を一括編集したい【VSCode】
【経緯】 VSCodeを使っていて、変数や関数の何回も使う単語や文字を一括編集したいと思い、 今回、勉強しました。 【「Shift + Ctrl + L」で一括編集。】 「Shift + Ctrl + L」で出来ました。 いい機能ですよね。 参考になれば幸いです。 ここまで読んでい... -
VBAノート
切り取りモード、コピーモードを解除する方法【VBA】
【経緯】 VBAで「セルをコピーして、それを別のExcelファイルに貼り付けて、そして、コピー元のファイルは閉じる」というプログラムを作ったのですが、「コピー元を閉じる」という命令でエラーがでました。 なので、今回勉強しました。 【「Application.Cu... -
Excelノート
文字をカウントしたい【Excel】
【経緯】 Excelで”〇”や”×”をカウントしたくて、 今回、勉強しました。 【COUNTIF関数を使う】 COUNTIF関数を使うとうまくいきました。「E5からE20までに”〇”が何個あるか数える」と想定です。 =COUNTIF(E5:E20,"〇") って感じです。 私は、COUNT関数やLEN... -
Excelノート
小数点を打つのがめんどくさい【Excel】
【経緯】 Excelで14.3とか9.8とか3.4とか小数を使った数字を打ち込む業務がありました。 テンキーもなく、キーボードだと「.」の位置が悪いため、小数点を打つが億劫でした。 なので、今回、勉強しました。 【「小数点位置を自動的に挿入する」のチェック... -
未分類
アンケートの回答数が増える度、メールで通知できるようにようにしたい【Forms】
【経緯】 Formsを使って、アンケートを作成しました。 少数でのアンケートで結果がすぐ知りたくて、都度都度Formsにアクセスして回答が増えてないかチェックしてました。 それがめんどうなので、回答したら、メールが届く方法はないか、 今回、勉強しまし... -
Excelノート
「ドキュメント検査機能では削除できない個人情報がドキュメントに含まれていることがありますので、ご注意ください。」【Excel】
【経緯】 Excelで保存したら、「ドキュメント検査機能では削除できない個人情報がドキュメントに含まれていることがありますので、ご注意くだい。」と毎回出て、鬱陶しかったので、これが出なくなる方法を今回、勉強しました。 【「ファイルを保存するとき... -
STEPNノート
2022年9月の結果【STEPN】
月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 +460.62GSTでした。 利益 = 報酬 - 支出(リペア + MT Box Open Fee) 460.62 = 795.62 - (95 + 220 + 20) 収入内訳 獲得GSTMT Box合計795.620.00... -
Pythonノート
jupyter labで「()」や「””」が補完されない【python】
【経緯】 pythonで私はjupyter labを使っているのですが、前までは「(」と入力したら、後ろの括弧も自動で入力されていたのですが、それができなくなりました。「"」も同様です。 なので、自動で後ろの括弧もつく方法を今回勉強しました。 【「Auto Close ... -
VBAノート
Excelファイル開くとセル”A1”になるようにしたい【VBA】
【経緯】 上司が「誰かに見てもらうExcelファイルのRangeは”A1”にしておくように」と言われ、私はそれをわすれてしまうので、 VBAでどうにかできないか考えてみました。 【ThisWorkbookにコードを書く】 手順を書きます。 まず、 VBA開きます。 左のプロジ... -
VBAノート
Private Sub Worksheet_SelectionChange(ByVal Target As Range)で範囲選択したい【VBA】
【経緯】 VBAで、Private Sub Worksheet_SelectionChange(ByVal Target As Range)を使うとき、 1つのセルでの処理をやっていたが、もっと広い範囲で処理を行いたくて、 今回勉強しました。 【IF Not intersect(Target, Range("A1":"B3")) Is Nothing Then.... -
VBAノート
時間を比較する【VBA】
【経緯】 VBAを使って、取得した時間の比較をしたくて、 今回勉強しました。 【日付型にする「CDate」を使う】 まず、プログラムを書きます。”今の時間now_timeと制限時間limit_timeがあり、今の時間が過ぎたら、この処理”って設定です。 Dim now_time, li... -
VBAノート
今日をセルを見つける【VBA】
【経緯】 VBAを使って、セルに日にちが記載してあります。その中で今日のセルを選択できるようにしたいと思い、 今回勉強しました。 【「WorksheetFunction.Match(CLng(Date), Range("A1:A1000"), 0)」】 まずはプログラムを書きます。find_dateという変数... -
VBAノート
セルをロック【VBA】
【経緯】 VBAを使って、セルをロックしたくて、 今回勉強しました。 【セル"A1"をロックするには「ActiveSheet.Range("A1").Locked = True」を使う】 まずはプログラムを書きます。 ActiveSheet.Cells.Locked = False こんな感じでプログラムを書くとセル... -
VBAノート
シートを保護【VBA】
【経緯】 VBAを使って、シートを保護したくて、 今回勉強しました。 【シート保護解除は「ActiveSheet.Unprotect」を使う】 まずはプログラムを書きます。 ActiveSheet.Unprotect こんな感じでプログラムを書くといけますよ。 パスワードを指定したい場合... -
VBAノート
Excelを開いたら、プログラムが実行される【VBA】
【経緯】 VBAを使って、Excelを開いたら、プログラムが実行できないか 、 今回勉強しました。 【「ThisWorkbookモジュール」を使う】 VBAを開いて、VBA Projectフォルダーを展開し、ThisWorkbookモジュールをダブルクリックします。 モジュールウィンドウ... -
VBAノート
今の時間を取得する【VBA】
【経緯】 VBAを使って、今の時間を取得したくて、 今回勉強しました。 【「Now」を使う】 まず、プログラムを書きます。 1行で済みました。 now_time = Now こんな感じです。 私は取得した時間で「何時になったら、この処理」って感じで使っています。 参... -
VBAノート
If ElseIf Else【VBA】
【経緯】 VBAを使って、分岐を増やしたくて、 今回勉強しました。 【「If Elself Else」を使う】 まず、プログラムを書きます。今の時間を見て、9時以前ならこのプログラム、17時以降ならこのプログラムを実行するという設定です。 now_time = Now if now_... -
VBAノート
shift + →【VBA】
【経緯】 VBAを使って、キーボードで「shift + →」ができないか、 今回勉強しました。 【Range(Selection, Selectoin.Offset(0,10)).Selectを使う】 まず、プログラムを書きます。セル("A1")からセル("J1")まで選択するという設定です。 Cells(1,1).Select... -
STEPNノート
2022年8月の結果【STEPN】
月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 +702.35GSTでした。 利益 = 報酬 - 支出(リペア + MT Box Open Fee) 702.35 = 1141.15 - (90.80 + 348) 収入内訳 獲得GSTMT Box合計1141.150.00... -
VBAノート
ユーザーフォームのテキストボックスを半角だけ入力できるようにする。【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、ユーザーフォームを作成しテキストボックスを入れました。そのテキストボックスには半角数字しかいれたくないので、 今回勉強しました。 【「IMEMode」を「8」... -
VBAノート
検索機能の”Ctrl” + “F”を使いたい【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、”Ctrl” + ”F”の検索機能を使いたくて、 今回勉強しました。 【「Find()」を使う】 まず、プログラムを書きます。sheetの中に”森”がいるかどうかをみるという設... -
VBAノート
“F2″キーと”エンター”キーを押したい。【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、Excel上でキーボードの”F2"キーと”エンター"キーを押す処理を 今回勉強しました。 【「SendKeys」を使う】 プログラムを書きます。 SendKeys "{F2}", True Sen... -
VBAノート
ユーザーフォームのテキストボックスに初めから今日の日付をいれたい。【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、ユーザーフォームでテキストボックスを作成して、そのなかに日付を記入することにしました。 初めは空白だったのですが、「今日の日付をいれてほしい」という... -
VBAノート
全角を半角に変換する【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、バーコードで値を読み込ませていたが、全角で読んでしまうときがあって、困っていました。 なので、今回は全角を半角にする方法を勉強しました。 【「StrConv(... -
Pythonノート
【自動運転#33】VideoCaptureで制御するのを諦めました
【環境】 Raspberry pi zero エディターはラズパイに初めから付いている、Thonnyを使ってます。 【カメラを使って、障害物を認識して、止まったり、避けたりする使用はできませんでした。】 私は当初の目的として、カメラを使って、障害物を認識させて、車... -
VBAノート
セルの値を消す【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、セルの値を消したいと思い、 今回、勉強しました。 【「.ClearContents」を使って、Excelのセルの値を消す。】 「.ClearContents」を使うとうまくいきました。... -
STEPNノート
2022年7月の結果【STEPN】
7月の結果です。 uncommonのランナー買いました。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 +30.48GSTでした。 利益 = (報酬 + MTBox) - 支出(レベル上げ + リペア + Transfer Fee + MT Box Open Fee) 3... -
未分類
【NFT】CNP Jobsの偽物を買ってしまってました。。。
こんにちは。 今回、”CNP Jobs”のNFTの偽物を買ってしまった経緯を知らせて、 今後、被害者が出ないために書きました。 【時系列】 まず、時系列からお話しします。 2022年7月、「イケハヤ」さんのVoicyでCNP JobsというNFTがリリースされると知る。 2022... -
Pythonノート
startswith(),endswith()以外で途中にある文字を確認する方法【python】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 pythonで文字列の文字を確認するのにstartswith()とendswith()を使っていたが、この2つは「初めの文字から~」「終わりの文字から~」ってことなので、文字列の真ん中あたり... -
Pythonノート
TkinterでComboboxを使いたい【python】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 pythonでThinter()関数を使っていて、プルダウンみたいなことができないか調べていたら、 Comboboxというのがでてきたので、 今回勉強しました。 【TkinterでComboboxを使う...