-
VBAノート
Wordのテーブルの座標に文字を入力したい。【VBA】
【経緯】 WordにはExcelみたいに”A1”とか”F6”とかなくて、どうやったら、狙った位置に文字や数字が入力できるのか、 今回勉強しました。 【テーブル1を読んで、そのテーブルの座標をとる】 私が操作したいWordファイルではテーブルを使っていたので、まず... -
VBAノート
Wordでもマクロ(VBA)が使いたい。【VBA】
【経緯】 Wordにも開発タグがあることを知り、Wordでもマクロ(VBA)を使う方法を、 今回勉強しました。 【基本、Excelと一緒】 基本的にExcelと一緒でリボンで開発タグを追加して、マクロを登録する感じです。 手順を書きます。 マクロを記録する 1.1. 「ビ... -
STEPNノート
2023年7月の結果【STEPN】
7月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 利益 = 報酬 - 支出(リペア + MT Box Open Fee + 靴のリペア) 711.37 = 1187.77 - (116 + 290 + 70) 収入内訳 獲得GST合計1187.371187.37 支出... -
VBAノート
Split関数を使って、文字列を分割して、文字を取得したい。【VBA】
【経緯】 A1の文字をVBAのコード分割できないか、 今回勉強しました。 【「Split()」を使う】 まず、コードを書きます。A1の文字は「サッカー、8月1日、8時から、学校グラウンド」とします。 ' セルの内容をコンマで分割 splitValues = Split("A1", "、") ... -
VBAノート
フォルダの中のExcelファイルを取得して、そのファイルのD行をリストにしたい。【VBA】
【経緯】 タイトルのままですが、VBAでフォルダの中のExcelファイルを取得して、そのファイルのD行をリストにしたくて、 今回勉強しました。 【Do while Loopを使う】 まず、コードを書きます。 Sub GetExcelFiles() Dim FolderPath As String Dim FileNam... -
VBAノート
パソリPC-S300で読み取ったデータをExcelに出力したい【VBA】
【経緯】 非接触ICカードリーダーを使って、そのカードの中の数値でいろいろできないか試したくて、 今回勉強しました。 【ドライバーをインストール】 はじめに以下のドライバーをダウンロードして、https://www.sony.co.jp/Products/felica/consumer/sup... -
VBAノート
B列になにか記入したら、A列に今日の日付が入る【VBA】
【経緯】 タイトルのままですが、B列になにか記入したら、A列に今日の日付が入るようにしたくて、 今回勉強しました。 【「Worksheet_Change」イベントを使う】 まず、コードを書きます。 Private Sub Worksheet_Change(ByVal Target As Range) Dim rng As... -
STEPNノート
2023年6月の結果【STEPN】
6月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 利益 = 報酬 - 支出(リペア + MT Box Open Fee + 靴のリペア) 509.27 = 887.27 - (88 + 220 + 70) 収入内訳 獲得GST合計887.27887.27 支出内訳... -
未分類
【ゲーム】Whie Luna And Black Luna【Unity】【CNP】
【ゲームのリンク】 ↓はGoogle Playのリンクです。ゲームが出来次第貼り付けます。 【操作方法】 ”Move First(先手)”か”Move Second(後手)”を押して、手番を決めます。 "Kitten(簡単)"か"Doe(普通)"を選ぶとゲームが始まります。 ルールはリバーシーと同じ... -
VBAノート
セルを編集不可にする方法【VBA】
【経緯】 Excelで特定のセルに入力できないようにしようとしました。「セルをロックして、シードの保護で…」ってやるのは時間がかかるので、同じようなことがVBAでできないか、 今回勉強しました。 【「Worksheet_Change」イベントを使う】 まず、コードを... -
未分類
【ゲーム】OROCHI PANIC【Unity】【CNP】
【ゲームのリンク】 ↓はGoogle Playのリンクです。 https://play.google.com/store/apps/details?id=com.DefaultCompany.OROCHIPANIC 【操作方法】 ”Please enter your name”にローマ字で名前を記入します。 ”Game Start”をクリックします。 オロチがいる... -
VBAノート
「未知の実行時エラーです。」VBSScript Scriptファイル実行できない【VBA】
【経緯】 VBSScript Scroptファイルを作成して、実行しようとしていましたが、「未知の実行エラーです。」と出たので、 今回勉強しました。 【「VBAプロジェクトオブジェクトモデルへのアクセスを信頼する」にチェック】 Excelのセキュリティ設定がマクロ... -
STEPNノート
2023年5月の結果【STEPN】
5月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 利益 = 報酬 - 支出(リペア + MT Box Open Fee + 靴のリペア) 611.83 = 1011.83 - (110 + 250 + 50) 収入内訳 獲得GST合計1011.831011.83 支出... -
未分類
【ゲーム】Mitama’s Agile Avoid Avoidance【Unity】【CNP】
【ゲームのリンク】 ↓はGoogle Playのリンクです。 https://play.google.com/store/apps/details?id=com.morishuhei.MitamasAgileAvoidance ↓がUnityゲームのリンクになります。 Mitama's Agile Avoidance 【操作方法】 ”Please enter your name”にローマ... -
VBAノート
マクロにしたファイルを開くとき、毎回、マクロを有効にするか聞かれるのがうざい。【VBA】
【経緯】 マクロを作ってできた.xlsmファイルを開くとき、毎回、「マクロを有効にする」か聞かれるのがめんどくさいので、 今回勉強しました。 【自動的に有効にすることはできるがしない方がいい。】 Excelがマクロを自動的に実行するかどうかを制御する... -
VBAノート
セルに値を入力したら、列を一つセルを飛ばしたところを選択したい。【VBA】
【経緯】 VBAで「値を入力して、ひとつセルを飛ばしたところにまた値を入植したい」との要望を受けて、 今回勉強しました。 【Tartgetを使う】 まず、プログラムを書きます。これはA1セルに値を入力するとC1にセルがセレクトされるというコードです。 Priv... -
C#ノート
集めたデータから最大値、最小値、平均値、中央値、1σ、2σを取得する方法【C#】
【経緯】 CSVファイルを読み込めて、データを集められたので、これの、最大値、最小値、平均値、中央値、1σ、2σを取得したいと思い、 今回勉強しました。 【MathNet.Numerics.Statistics;を使って、取得する】 まず、プログラムのコードを書きます。フォー... -
C#ノート
CSVファイルから特定の行と列を読み取る方法【C#】
【経緯】 CSVファイルを読み込めたので、ファイルの中の特定の値を読みたいと思い、 今回勉強しました。 【File.ReadLines(file)を使用して、Skipさせて、値を読む】 まず、プログラムのコードを書きます。フォームで「btnReadcsv」というボタンを作成して... -
C#ノート
相対パスを使って、.csvファイルを読み込む。【C#】
【経緯】 いつも絶対パスを使っていたが、他の人がコードを使うときに、絶対パスではエラーが起こりやすいので、今回、相対パスを使って、.csvファイルのデータを読み込んでみます。 【手順】 まず、プログラムのコードを書きます。フォームで「btnReadcsv... -
C#ノート
.csvファイルを読み込む。【C#】
【経緯】 .csvファイルのデータを読み込んで、加工したいと思い、 今回勉強しました。今回は読み込むだけです。 【手順】 まず、プログラムのコードを書きます。フォームで「btnReadcsv」というボタンを作成して、ボタンを押すと、「csvファイルが読まれる... -
未分類
【WordPress】”サイト訪問者へエラー表示を行う設定になっています”【php】
【経緯】 WordPressでヘルスサイトステータンスで改善が必要ですと言われいます。 その欄をみると、「サイト訪問者へエラー表示を行う設定になっています」とあり、 中身は”セキュリティ”、「デバッグモードを有効化するとエラーやサイトの失敗の詳細情報... -
VBAノート
VBAでも例外処理がしたい。【VBA】
【経緯】 VBAでも例外処理(try.chatchみたいな)ことができないか、 今回勉強しました。 【On Errorステートメントを使う】 まず、プログラムを書きます。 Sub 例外処理() On Error GoTo ErrorHandler ' エラーハンドラーへのジャンプを設定 If ans = vbYes... -
VBAノート
バックアップファイルを取りたい。【VBA】
【経緯】 Excelファイルのバックアップを取りたいと思い、 できないか、 今回勉強しました。 【タスクスケジューラとVBA(Visual Basic for Applications)を使う】 手順を書きます。 VBAを使ってExcelを保存するマクロを作成。 VBAマクロを実行するバッチ... -
未分類
【ゲーム】MissileShip【Unity】
【ゲームのリンク】 ↓がゲームのリンクになります。 MissileShip キーボードの「←」キーと「→」キーで船が動きます。 「ミサイル」を避けるとScoreが加算します。Scoreが増えるほど「ミサイル」のどんどん落ちてきます。 「ミサイル」に当たると、右上の「... -
Excelノート
VBAを使わずに、Excelでエラーメッセージを表示させたい。【Excel】
【経緯】 Excelで「B1セルの値が、A1セルと比べて、±5%の乖離があったら、エラーメッセージがでる」 というのを作ろうと思い、 今回勉強しました。 【”データの入力規則”を使う】 早速、やり方を説明します。順番は以下の通りです。 ”Excel開く” → ”B1セ... -
C#ノート
.tsvファイルのデータを加工する。【C#】
【経緯】 .tsvファイルのデータを加工したいと思い、 今回勉強しました。 【手順】 まず、プログラムの流れを説明します。 .tsvファイルを読む 351行目から開始して5つずつ間引く 347行目から350行目までの行を先頭に追加 output.tsvとして出力する 指定し... -
C#ノート
.tsvファイルを.xlsxに変換したい。【C#】
【経緯】 .tsvファイルを.xlsxに変換したいと思い。 今回勉強しました。 【「Microsoft.Office.Interop.Excel」を使用する】 まず、プログラムの流れを説明します。 btn_TSVtoExcelボタンを押す ダイアログが出てきて、変換したいtsvファイルを選ぶ デスク... -
C#ノート
Unityのスコアやユーザー名をデータベースに送ったり、取得する【php】【C#】【Unity】
【経緯】 Unityでゲームを作っている時に、「スコアをランキング形式にできたらいいな。」と思っていました。 「ゲーセンでもスマホゲーでもランキングがあるとユーザーも燃えるかな」とも、思いました。 正直、めちゃくちゃ時間がかかってしまいどのよう... -
STEPNノート
2023年4月の結果【STEPN】
4月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 利益 = 報酬 - 支出(リペア + MT Box Open Fee + 靴のリペア) 653.07 = 1115.07 - (112 + 280 + 70) 収入内訳 獲得GST合計1115.07115.07 支出... -
未分類
この項目は現在カメラ上のメディアを参照しているため、共有できません【Final Cut Pro X】
Final Cut Pro Xで動画編集を行っているときに、書き出しの段階で「現在、カメラ上のメディアを参照しているため、共有できない」という表示が出ることがあります。 「あとは書き出すだけなのに(T ^ T)編集し直し!?」 こんな風に焦ってしまうことがあり...