-
STEPNノート
レベルアップ戦略【STEPN】
私はレベルを19までアップさせたのち、原資回収に走ります。 理由は特にありません。 ネットではレベルを「9」か「19」か「29」か「30」と色々な意見があるので、 レベリングってなんか楽しいので、まずは「19」にします。 ステータスについては私は「Comm... -
VBAノート
テキストボックスの順番が変【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、ユーザーフォームに複数テキストボックスを作成しました。 テキストボックスに値を入力して、「Enter」を押すと、すぐ下のテキストボックスに移ってほしいので... -
VBAノート
ユーザーフォームを閉じる【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、ユーザーフォームを作成して、”キャンセル”というボタンを作って、それを押したらユーザーフォームが閉じるというものを作ろうとしました。がうまくいきません... -
STEPNノート
自分は時速何キロ?【STEPN】
スニーカーには「Walker」「Jogger」「Runner」「Trainer」というクラスがあるらしく、 自分に適したクラスのスニーカーを選ばないと行けないらしい。 【アップルウォッチで平均ペースがでる】 私は普段から走っているので、また、それをいつもアップルウ... -
VBAノート
outlookで認識されない名前があります objMail.send【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、メールを送ろうとしたら、「outlookで認識されない名前があります」とエラーがでました。デバックを見ると”objMail.send”のところに印がありました。 なので、... -
VBAノート
「FileSystemObject」がない【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、ファイル名を抜き取ろうとして、「FileSystemObject」を使うといいと聞いたのですが、 ありませんΣ( ̄ロ ̄lll)ガーン なので、今回、どこにあるのか勉強しました... -
VBAノート
ファイル名を取得【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、データを抜き取るプログラムを作っていました。 抜き取るデータのファイル名も欲しかったので、 今回勉強しました。 【「fso.GetFile」を使う】 「fso.GetFile... -
STEPNノート
2022年4月19日、STEPNはじめました。【STEPN】
【STEPNとは】 ウォーキングやランニングをお金(仮想通貨)に変えることができるアプリゲームです。 「Play to Earn」という言葉が流行りましたが、 STEPNは「Move to Earn」という概念らしいです。 【はじめたきっかけ】 「Voicy」パーソナリティの大河内... -
VBAノート
OutLookで今開いているファイルを添付したい【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、メールを送信することはできたのですが、今開いているファイルも添付したいと思い、 今回勉強しました。 【「Attachments.Add」を使う】 「Attachments.Add」... -
VBAノート
新しくフォルダを作りたい【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 Excelファイルを作成して、そのファイルをフォルダに入れるということを手動でやっていました。 なので、今回はVBAを使って、フォルダを作る方法を勉強しました。 【「MkDir... -
VBAノート
カレントディレクトリを変更したい【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、フォルダを作成していたのですが、作成したフォルダが思ったところにできてなくて困ってました。 なので、今回はカレントディレクトリの変更について勉強しま... -
VBAノート
格納するフォルダを選びたい【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、ファルダを作成して、そのフォルダの中にExcelファイルを保存するプログラムを作ってみました。 実装したところ、私が書いたプログラムでは作成したフォルダを... -
VBAノート
OutLookの本文を改行したい【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAを使って、メール送信を試みたのですが、メールの本文の改行がうまくいかず、つながって出力してしまいます。 なので、今回は本文を改行する方法を勉強しました。 【「vb... -
Pythonノート
DataFrameを並び替える【python】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 pythonでプログラムを書いてて、dfに大量のデータが入っていたので、並び替えたいと思い、今回勉強しました。 【sort_values()を使う】 sort_values()を使うとできました。↓... -
Pythonノート
ValueError: Shape of passed values is (3493518, 2), indices imply (2611, 2)【python】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 pythonでプログラムを書いてて、concat()を使って、結合しようとしたら、”ValueError: Shape of passed values is (3493518, 2), indices imply (2611, 2)”というエラーが出... -
Pythonノート
行数を数える【python】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 pythonでプログラムを書いてて、concat()を使って、結合しようとしたら、エラーが出た。 データ数を数えて、データ数がそろっているか確認してみました。 【Shape()は使えな... -
VBAノート
セルの値の”1200”以上のセルは空白にしたい【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 データを抽出するとき、不要な値”1200以上”まで抽出して、のちにその不要な値 ”1200以上” は手動で消していた。 なので、今回は条件分岐を使って不要な値”1200以上” は空白... -
Pythonノート
TypeError:’set’object is not callableが出る【python】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 pythonでプログラムを書いていたら、「TypeError: 'set' object is not callable」とでました。 【"{}"ではなくて、"[]"だった。】 書いたコードを確認すると、 days = {'Mo... -
自動運転ノート
【自動運転#32】追従させる【ソフトウェアPart20】
【環境】 Raspberry pi zero iphone8 エディターはラズパイに初めから付いている、Thonnyを使ってます。 【今回は】 カメラとサーボモータを使って、追従できると知ったのでやってみました。 【部品】 ピンソケット基板モータドライバRaspberry Pi Zeroジ... -
VBAノート
「Microsoft MonthView Control」がない【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 Excelのバージョン:2108 【経緯】 ガントチャートを作ったのですが、日付入力が面倒くさいので、カレンダーの日付をクリックする方法を思いつきました。 調べると、ユーザーフォーム... -
Excelノート
「#N/A」が邪魔【Excel】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 Excelのバージョン:2108 【経緯】 Vlookupを使ってて「#N/A」となります。”Delete”で一つずつ消すのが面倒くさいので、 今回勉強してみました。 【勉強した内容】 条件付き書式を使う... -
VBAノート
文字列の3番目の文字を判別したい。【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 アルファベットと数字と記号が混ざっている文字列があります。 初めの2文字は必ずアルファベットなので、それをleft()関数を使って、抜き取っていました。 本当は3文字目も... -
VBAノート
CurrentRegionって何?【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAのプログラムをつかっていたら、やたら、”CurrentRegion”って使うけどこれってなんだっけ?と思い、 今回勉強してみました。 【CurrentRegionとは?】 CurrentRegionとは... -
VBAノート
文字を識別して、文字列の一部を取り出す。【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAのプログラムでファイル名を取得して、"_"以降は邪魔だったので、消せないか試してみた。 【やったこと】 ↓の感じでできました。 Dim sheetname As String Dim t As Long... -
VBAノート
カラムのサイズを合わせる【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAのプログラムでカラムの幅を”AutoFit”で合わせていたのですが、これだとグラフ複数を挿入するとき、グラフを形が変になるので、カラムの幅を固定してみました。 【やった... -
VBAノート
Sheet名を取得する【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAのプログラムでファイル名を取得しようと思ったがうまくいかず、シート名がファイル名になっている Excelファイルだったので、Sheet名を取得してみました。 【やったこと... -
Excelノート
セルに定義された名前を削除する【Excel】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 もらったExcelを使っていて、セルが定義されていて、邪魔だったが削除の仕方がわからなったので、今回勉強してみました。 【勉強した内容】 削除する方法は”ファイル”とか”... -
Excelノート
オートセーブを解除したい【Excel】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 Excelを使っていて、勝手保存されるのが癪でした。 【やったこと】 ↓の感じでできました。 Excelファイル開く左上に”ファイル”とあるので、それをクリック左下にある”オプシ... -
VBAノート
.Deleteを使ったら、関数で選択した範囲まで消されてしまう。【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAのプログラムでA列の値を消したと思って、Range("A1:A3").Deleteを使ったら、 AVERAGE関数の(A1:A100)が(A4:A100)となっていた。 なので、 AVERAGE関数 はそのままでA列... -
VBAノート
列の一番下の値を得る【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 VBAのプログラムで読み込んだファイルのE列の一番下の値を別のExcelファイルの指定の位置に貼り付けたいと思い、やってみました。 【やったこと】 ↓の感じでできました。 Wo...