-
VBAノート
ユーザーフォームで入力した値の履歴を記録する【VBA】
【経緯】 ユーザーフォームを使って、プログラムを書いてます。 いつ、ユーザーフォームを入力したのか、値は何だったのか、記録を残したくて、 今回、勉強しました。 【コード】 以下がコードです。ユーザーフォームがあり、そこにテキストボックスが2つ... -
VBAノート
プログラムを実行したら、ユーザーフォームを消す。【VBA】
【経緯】 ユーザーフォームを使って、プログラムを書いてます。 プログラムが出来上がって、実行したら、ユーザーフォームがそのまま残っているのが、 気になったので、 今回は、プログラムを実行したら、ユーザーフォームが消える仕様にしました。 【Unlo... -
Pythonノート
Outlookでメールにファイルを添付する【Python】
【概要】 Pythonでコードを書いていて、 Outlookのメール文にファイルが添付できたら便利だな と思い、今回勉強しました。 【コード】 早速、コードです。”Hello Word”という件名、本文を送る設定です。 import smtplib from email.mime.multipart import ... -
Pythonノート
【Python】今の時間を取得する
【概要】 Jupyter notebookでPythonのコードを書いています。 「今の時間が知れたら、便利だな」と思い、今回勉強しました。 【コード】 それでは、コードです。 import datetime # 現在の日付を取得 current_date = datetime.datetime.now().strftime("%Y... -
Pythonノート
【Python】セルの色を変えたい【openpyxl】
【概要】 Jupyter notebookでPythonのコードを書いています。 openpyxlを使って、Excelファイルのいろいろな処理を書く中で、 「セルの文字によって、色が変えられたらな」と思い、今回勉強しました。 【コード】 それでは、コードです。初めにget_color()... -
Pythonノート
【Python】読み込んだExcelファイルの罫線やセル幅、セル行を保存するExcelファイルに展開させたい【openpyxl】
【概要】 Jupyter notebookでPythonのコードを書いています。 openpyxlを使って、Excelファイルのいろいろな処理を書く中で、 「セル幅、セル行、罫線の情報も取得して、展開できないかな」と思い、今回勉強しました。 【コード】 それでは、コードです。... -
Pythonノート
FileNotFoundError: [Errno 2] No such file or directory: ‘Desktop/python_folder/mori.xlsx’【Python】
【概要】 Jupyter notebookでPythonのコードを書いていたら、 FileNotFoundError: [Errno 2] No such file or directory: 'Desktop/python_folder/mori.xlsx' とエラーが出ました。 【理由】 FileNotFoundErrorは、指定したファイルが見つからない場合に発... -
Excelノート
【移植】ExcelのRAND()関数とRANK()関数をPythonに移植する【Python】
【概要】 Excel関数を使って、データを処理していたが、 Pythonで動かしたくて、 今回、RAND()関数とRANK()関数をPythonでやってみました。 【コード】 まず、ランダムな数値を生成し、それらをnamesリストの各要素に割り当てています。次に、pandasのrank... -
Pythonノート
Outlookでメールを送る【Python】
【概要】 Pythonでコードを書いていて、Outlookを使えたら便利だなと思い、 今回勉強しました。 【コード】 早速、コードです。”Hello Word”という件名、本文を送る設定です。 import smtplib from email.mime.text import MIMEText # メールの内容を設定 ... -
Excelノート
時間を数値にしたい【Excel】
【経緯】 Excelで、今、 A1に「8:30」とあり、ユーザー定義が「h:mm」です。 B1に「17:00」とあり、ユーザー定義が「h:mm」です。 C1は数式で「=B1-A1」となって、「8:30」となっています。ユーザー定義は「[h]:mm」です。 この時、私はC1の「8:30」を「8.... -
Excelノート
カウントしたい【Excel】
【経緯】 Excelでsheet1,2があり、 sheet2のデータをsheet1で集計していた。 個数を数えるのを手で入力していたので、それをExcel関数でどうにかできないか、 今回作ってみました。 【COUNTIF(範囲,検索条件)を使う】 結論。COUNTIF()を使うとうまくいきま... -
STEPNノート
2024年1月の結果【STEPN】
2024年12月の結果です。 今回からフォーマットを変えて、暗号通貨の数字をどんどん更新することにしました。 【暗号通貨額】 SpendingWalletGSTGMTSOLSOLGSTGMTUSDC202401318768.76113.050.0384460.663942553741.35000429.78133733179.623651 【1月の反省... -
VBAノート
値をセルにランダムで入れたい【VBA】
【経緯】 VBAでプログラム書いていて、 値をセルにランダムで入ったら、いいなと思い、 今回作ってみました。 【コード】 早速、コードです。Array()に値を入れたい所のセルを書いています。"mori"という値をランダムでArrayで指定したセルに入るようにし... -
C#ノート
画像リサイズアプリ【C#】
【経緯】 デジカメで撮った画像をExcelに貼り付けようとするときに、1枚5MBもあって Excelファイルが重くなってました。 ペイントアプリでリサイズすることは可能ですが、めんどくさいので、 今回,C#でWindowsアプリを作ってみました。 【レイアウト】 ま... -
未分類
WinddowsのPCのデスクトップのパスを変えたい
【経緯】 WindowsPCのデスクトップに保存したら、なぜかOneDrive-Couldに保存されてPC本体に保存されてなかった。 なので、OneDrive-Couldではなく、PC本体に保存する、作業する方法を今回書きます。 【「場所」を変えるとうまくいく】 以下が流れです。 ... -
未分類
【Google Search Console】「noindex タグによって除外されました」の理解と対応方法
イントロダクション Google Search Consoleで「除外」と表示されることに不安を感じる方も多いでしょう。今回は、「noindexタグによって除外されました」という表示がどういう意味か、そしてその対処法を解説します。 「noindexタグによって除外された」と... -
未分類
【Google Search Console】割り当て量を超えています。
【経緯】 Google Search Consoleで「インデックスをリクエスト」をしていた。 たくさんリクエストすると、 「割り当て量を超えています。1日の割り当て量を超えたため、リクエストを処理できませんでした。明日、もう一度お試してください。」 と出たので... -
未分類
【Teams】記憶域のクオータを超過しました。【OneDrive】
【経緯】 Teamsのチャットでいつものようにファイルを添付して、チャット相手に送信しようとしたら、 「記憶域のクオータを超過しました」 とエラーがでました。 なので、その解決までの軌跡を書きました。 【軌跡】 以下の流れで解決まで至りました。 PC... -
VBAノート
ThisWorkbookで各sheetの操作をしたい。【VBA】
【経緯】 VBAでプログラム書いていて、 各sheetに同じプログラムを記入していた。 プログラムの量も多くなるし、仕様を変えるとき、Sheet全部を書き換えないといけなくなるので、めんどくさかった。 なので、今回はThisWorkbookにプログラムを書いて処理で... -
VBAノート
値を入力したら、カーソルが横に動く【VBA】
【経緯】 列の値を入力して、Enterキーを押すと、カーソルが下に動いていた。 カーソルが横に動くと、便利なことあるので やってみました。 【コード】 早速、コードです。B列の入力するととなりのC列にカーソルが動く、C列の入力するとD列に。。。。とい... -
VBAノート
メール送信自動化(Outlook)【VBA】
【経緯】 申請書をExcelで作ったあと、メールを送信していた。 宛先も本文も一緒なので、いちいちメールをコピペするのがめんどくさかったので、今回メール送信を自動化してみました。 【想定】 Excelで申請ファイルがあります。 Sheet1に申請のテンプレが... -
VBAノート
だれがファイルを開いているか知りたい【VBA】
【経緯】 共有サーバーを使っていて、 例えば、森が先にファイルを開いていて、 次に林が開いて、編集作業をすると不具合があった。 なので、今回それの解決した方法をつづります。 【設定】 設定は、 「森がファイルを開いてます。(見てるだけ) 次に林が... -
VBAノート
sheetにあるグラフを全部消したい【VBA】
【経緯】 sheetにグラフがたくさんあるので、それをすべて消すプログラムをVBAで作ってみました。 【コード。】 早速、コードです。sheet名は”ダッシュボード”です。 SSub CopyGraphsToDashboard() Dim dashboardSheet As Worksheet Set dashboardSheet = ... -
VBAノート
ボタンを押すと、グラフが展開される【VBA】
【経緯】 ダッシュボードのようなものを作りたくて、ダッシュボードのsheetにボタンを押して、それを押すと、任意のsheetからグラフを取得し、ダッシュボードに展開するような仕様したくて、 今回、勉強しました。 【コード】 ダッシュボードというsheetに... -
Excelノート
【パワークエリ】時間を平均を出して、列に追加したい。
【経緯】 Excelのパワークエリという機能を使って、時間の平均を出したいと思い、 今回勉強しました。 【コード】 早速コードを書きます。取得したデータの型はユーザー定義で「mm:ss.0」となっています。 let // 時間データを秒に変換する関数の定義 Conv... -
VBAノート
【パワークエリ】”F2″+”Enter”をすべてのセルに行う【VBA】
【経緯】 Excelのパワークエリでデータを更新した後、拾ってきたデータが意図した型になっていなくて、困っていました。 手動で”F2”+"Enter"で意図した型に変わりました。 データを更新したときに、意図した型にする方法をいろいろ調べたのですが、今の私... -
Excelノート
【パワークエリ】”すべての更新”をボタンにする【VBA】
【経緯】 Excelのパワークエリでデータを更新する時に"データタグ"で”すべての更新”をクリックするのが、めんどくさいので、 VBAを使って、ボタンで押せるようにしました。 【コード】 早速、コードを書きます。 Sub RefreshAllConnections() ' すべての接... -
Excelノート
【パワークエリ】M言語ってなに?
【経緯】 Excelのパワークエリを使っていたら、「M言語」という聞きなれない単語がでてきました。 なので、今回はM言語について勉強しました。 【M言語の特徴】 データ変換とクエリ: M言語は、主にデータの取り込み、フィルタリング、変換、集計などのデー... -
Excelノート
【パワークエリ】列の最小値を取得したい
【経緯】 Excelのパワークエリという機能を使って、データの加工をしています。 列の最小値を取得したくて、 今回勉強しました。 【手順】 以下が手順です。column1_Minの列の最小値を取得する想定です。 カスタム列追加 上のタグで”列の追加”を選択。”カ... -
STEPNノート
2023年12月の結果【STEPN】
12月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 利益 = 報酬 - 支出(リペア + MT Box Open Fee + 靴のリペア+GemUpDate) -768.93 = 1143.07- (112+ 280+ 20+1500) 収入内訳 獲得GST合計1145....