08‘͆i”O“Z†j

Size: px
Start display at page:

Download "08‘͆i”O“Z†j"

Transcription

1

2 Microsoft Excel VBA Microsoft Excel VBA 127

3 Sub () ' ' []A2 A3A19 ' B19C19 ' ' []ABC ' DE ' ' ' [] ' ' [] ' ' Dim KaisyaName As String ' Dim TantouName As String ' Dim ShouhinName As String ' Dim Tanka As Long ' Dim ChumonSuu As Integer ' Dim IchiranGyo As Long Dim SeikyuGyo As Integer Dim InsatsuYN As Integer For IchiranGyo = 2 To ' [] ' [] ' ' [] Sheets("").Select A' [] ' Range("A" & IchiranGyo).Select ' KaisyaName KaisyaName = Selection.Value Range("B" & IchiranGyo).Select TantouName = Selection.Value Range("C" & IchiranGyo).Select ShouhinName = Selection.Value Range("D" & IchiranGyo).Select Tanka = Selection.Value Range("E" & IchiranGyo).Select ChumonSuu = Selection.Value ' TantouName ' ShouhinName ' Tanka ' ChumonSuu ' [][] Sheets("").Select Range("A2").Select ' [] ' A2 If Selection.Value <> KaisyaName Then ' ' A2 ' ' [] ' InsatsuYN = MsgBox("?", vbyesnocancel) If InsatsuYN = vbcancel Then Exit For If InsatsuYN = vbyes Then ActiveWindow.SelectedSheets.PrintOut Copies=1B ' Range("A19C42").Select C Selection.ClearContents ' 19 SeikyuGyo = 19 Range("A2").Select A Selection.Value = KaisyaName 'A2 Range("A3").Select 'A3 Selection.Value = TantouName & " " Range("A" & SeikyuGyo).Select 'ASeikyuGyo Selection.Value = ShouhinName Range("B" & SeikyuGyo).Select 'BSeikyuGyo Selection.Value = Tanka Range("C" & SeikyuGyo).Select 'CSeikyuGyo Selection.Value = ChumonSuu SeikyuGyo = SeikyuGyo + 1 Next IchiranGyo MsgBox "!" End End Sub '()! !1 If KaisyaName = "" Then Exit For ' ' Microsoft Excel VBA Microsoft Excel VBA 129

4 3 Dim SeikyuGyo1 Dim 2 ForNextIchiranGyo1 For For IchiranGyo2 For If 11 4 Sheets(""). SelectRange("A" & "IchiranGyo").SelectIchiranGyo A = Selection.Value A B DelC Microsoft Excel VBA Microsoft Excel VBA 131

5 2 DimAs 71 Dim KaisyaName As String ' Dim TantouName As String ' Dim ShouhinName As String ' Dim Tanka As Long ' Dim ChumonSuu As Integer ' DimAs DimAs DimAs VBA Dim KaisyaName As StringKaisyaNameString Dim ChumonSuu As Integer Enter Enter 62 Dim u 1 ChumonSuuInteger 1 Dim KaisyaName As String, TantouName As String, ShouhinName As String 132 Microsoft Excel VBA Microsoft Excel VBA 133

6 3 Sheets().SelectSelection.Value Excel2 Sheets()Worksheets()Charts() Sheets() Sheets("").Select Range("A" & IchiranGyo).Select KaisyaName = Selection.Value ' [] ' KaisyaName Sheets().Select Range().SelectA 7A1A2A3 Sheets().Select Sheets().Select Range("A" & IchiranGyo).Select Range() " String 1 A10 Range("A10").Select [A10].Select A10B15 Range("A10B15").Select [A10B15].Select Range("").Select.Select = Selection.Value Selection.Value Range().Select KaishaName Sheets("").Select Range("A" & IchiranGyo).Select KaisyaName = Selection.Value 134 Microsoft Excel VBA Microsoft Excel VBA 135

7 4 If ThenElse AXBY If TrueFalse If Selection.Value <> KaisyaName Then ' ' Range("A19C42").Select Selection.ClearContents ' 19 SeikyuGyo = 19 Tokuten10050 If Tokuten = 100 Then MsgBox "" If Tokuten <= 50 Then MsgBox "" If ThenElse IfThenIfThen If Then End If Else If Then Else If Tokuten = 100 Then MsgBox "" Else MsgBox "" Tokuten If Tokuten < 60 Then MsgBox "" Else MsgBox "" 136 Microsoft Excel VBA Microsoft Excel VBA 137

8 If If 2If X If Selection.Value <> KaisyaName Then ' ' A2 ' = If X = 100 Then X100 > If X > 100 Then X100 < If X < 100 Then X100 >= If X >= 100 Then X100 <= If X <= 100 Then X100 <> If X <> 100 Then X100 2 ' [] ' InsatsuYN = MsgBox("?", vbyesnocancel) If InsatsuYN = vbcancel Then Exit For If InsatsuYN = vbyes Then ActiveWindow.SelectedSheets.PrintOut Copies=1 ' Range("A19C42").Select Selection.ClearContents If X < 100 Then If 100 > X Then ' 19 SeikyuGyo = 19 NameString If If Name = "" Then If Name <> "" Then 1 2 Name If Selection.Value <> KaisyaName Then ' ' KaisyaName 1If 124 MsgBox "" Range("A19C42").Select Selection.ClearContents SeikyuGyo = 19 (A19C42) 2 SeikyuGyo IfA2 KaisyaName KaisyaName A2If A2KaisyaName 13 Microsoft Excel VBA Microsoft Excel VBA 139

9 5 ForExit For To For IchiranGyo = 2 To Exit For For Next IchiranGyo Exit For ForNextNextExit For A19C42 SeikyuGyo 19 For IchiranGyo = 2 To If KaisyaName = "" Then Exit For Next IchiranGyo MsgBox "!" KaisyaName Exit For For 140 Microsoft Excel VBA Microsoft Excel VBA 141

10 6 MsgBox MsgBox MsgBoxIf InsatsuYN = MsgBox("?",vbYesNoCancel) MsgBox "!" MsgBox MsgBox (,,) MsgBox MsgBox VBA MsgBox vbokonly 0 vbokcancel 1 vbabortretrylgnore 2 vbyesnocancel 3 vbyesno 4 vbretrycancel 5 OK MsgBoxIf MsgBox If Microsoft Excel InsatsuYN = MsgBox("?", vbyesnocancel) '[] If InsatsuYN = vbcancel Then Exit For '[] If InsatsuYN = vbyes Then ActiveWindow.SelectedSheets.PrintOut Copies=1 142 Microsoft Excel VBA Microsoft Excel VBA 143

11 IfEnd If 1 \ Next 3 IfMsgBox \ 2 InsatsuYNInteger InsatsuYN = MsgBox("?", vbyesnocancel) \ 2 2 A19C42 InsatsuYN 3 vbcancel2vbyes6 vbno7 If 4 19 vbok 1 vbcancel 2 vbabort 3 vbretry 4 vbignore 5 vbyes 6 vbno Microsoft Excel VBA Microsoft Excel VBA 145

12 7 ActiveWindow.SelectedSheets.PrintOut ActiveWindow.SelectedSheets.PrintOut ActiveWindow.SelectedSheets.PrintOut Copies=1 Activewindow.SelectedSheets Copies Copies 1 From From To To PrintOut.PrintOut CopiesFromTo PrintOut ActiveWindow.SelectedSheets.PrintOut Copies=1 With ActiveSheet.PageSetup.LeftHeader = "".CenterHeader = "".RightHeader = "".BlackAndWhite = False.Zoom = 100.PrintErrors = xlprinterrorsdisplayed End With 146 Microsoft Excel VBA Microsoft Excel VBA 147

13 Selection.ClearContents 9 Selection.Value Selection.Clearcontetns Del Selection.ValueSelection.Value Range("A19C42").Select Selection.ClearContents 'A2KaisyaName Range("A2").Select Selection.Value = KaisyaName Range().SelectSelection.ClearContents Range().SelectSelection.ClearContents Range().Select Selection.ClearContents ClearContents Selection.Clear Worksheets("").Range("A19C42").ClearContents Selection.Value Selection.Value Selection.Value "1,005,050" Selection.Value "2002/11/27" Selection.Value "045030" Selection.Value "Asaka" 14 Microsoft Excel VBA Microsoft Excel VBA 149

14 10 2 Value 2IchiranGyo SeikyuGyo1IchiranGyoFor 1SeikyuGyo 1 IchiranGyo Range().SelectSelection.Value 'A2KaisyaName Range("A2").Select Selection.Value = KaisyaName 'A3TantouName Range("A3").Select Selection.Value = TantouName & " " 'ASeikyuGyoShouhinName Range("A" & SeikyuGyo).Select Selection.Value = ShouhinName 'BSeikyuGyoTanka Range("B" & SeikyuGyo).Select Selection.Value = Tanka 'CSeikyuGyoChumonSuu Range("C" & SeikyuGyo).Select Selection.Value = ChumonSuu For IchiranGyo = 2 To Sheets("").Select Range("C" & IchiranGyo).Select ShouhinName = Selection.Value Range("D" & IchiranGyo).Select Tanka = Selection.Value Next IchiranGyo Microsoft Excel VBA Microsoft Excel VBA 151

15 For SeikyuGyo 1SeikyuGyo1SeikyuGyo 1 19 SeikyuGyoSeikyuGyo1 SeikyuGyo11 11 End End Sub () End End Sub End End End End SubEnd Function If Selection.Value <> KaisyaName Then SeikyuGyo = 19 Sheets("").Select Range("A" & SeikyuGyo).Select Selection.Value = ShouhinName SeikyuGyo = SeikyuGyo EndEnd End Visual Basic Editor Microsoft Excel VBA Microsoft Excel VBA 153

16 C Len Len() Right\ c = Right(FolderName, 1) If c <> "\" Then FolderName = FolderName & "\" End if InputBox MidFor 1 For i=1 To Len(Moji) c = Mid(Moji, i, 1) Next i Moji1 c LeftRight Left, Right, Left Right 0"" Left c = Left(Moji, 1) If c = "" Then MsgBox "" Microsoft Excel VBA Mid Mid,, 1 11, Len LCaseUCase LCase UCase LCaseUCase Chk1 = UCase(Code) Chk2 = Ucase(DBCode) If Chk1 = Chk2 Then MsgBox ""

My関数の作成演習問題集

My関数の作成演習問題集 Excel Sum,Average,Max 330 BMI Excel My Excel VBA Visual BASIC Editor AltF11 Visual BASIC Editor My Function Function -1- Function ( As Single, As Single) As Double Function Funciton Funciton As Single

More information

untitled

untitled ST0001-1- -2- -3- -4- BorderStyle ControlBox, MinButton, MaxButton True False True False Top Left Height,Width Caption Icon True/False -5- Basic Command1 Click MsgBox " " Command1 Click Command1 Click

More information

Excel Excel Excel = Excel ( ) 1

Excel Excel Excel = Excel ( ) 1 10 VBA / 10 (2016 06 21 ) Excel Excel Excel 20132 20 = 1048576 Excel 201316 100 10 (2016 06 21 ) 1 Excel VBA Excel Excel 2 20 Excel QR Excel R QR QR BLASLAPACK 10 (2016 06 21 ) 2 VBA VBA (Visual Basic

More information

コンピュータ概論

コンピュータ概論 5.1 VBA VBA Check Point 1. 2. 5.1.1 ( bug : ) (debug) On Error On Error On Error GoTo line < line > 5.1.1 < line > Cells(i, j) i, j 5.1.1 MsgBox Err.Description Err1: GoTo 0 74 Visual Basic VBA VBA Project

More information

SEO対策サービスパッケージ

SEO対策サービスパッケージ EXCELマクロ/VBA プログラミング( 基 礎 編 ) あなたもVB/VBAプログラミングを 習 得 しエキスパートになりましょう! 学 習 フロー 第 1 部 EXCELの 基 本 機 能 EXCEL 操 作 機 能 コントロールボックス マクロの 扱 い 第 2 部 VBAの 基 本 VBAの 基 本 構 造 コーディング 仕 様 作 法 第 3 部 VBAの 応 用 EXCELシート VBAを

More information

B 5 (2) VBA R / B 5 ( ) / 34

B 5 (2) VBA R / B 5 ( ) / 34 B 5 (2) VBAR / B 5 (2014 11 17 ) / 34 VBA VBA (Visual Basic for Applications) Visual Basic VBAVisual Basic Visual BasicC B 5 (2014 11 17 ) 1 / 34 VBA 2 Excel.xlsm 01 Sub test() 02 Dim tmp As Double 03

More information

45 VBA Fortran, Pascal, C Windows OS Excel VBA Visual Basic Excel VBA VBA Visual Basic For Application Microsoft Office Office Excel VBA VBA Excel Acc

45 VBA Fortran, Pascal, C Windows OS Excel VBA Visual Basic Excel VBA VBA Visual Basic For Application Microsoft Office Office Excel VBA VBA Excel Acc \n Title 文 系 学 生 のための VBA プログラミング 教 育 についての 考 察 Author(s) 五 月 女, 仁 子 ; Soutome, Hiroko Citation 商 経 論 叢, 46(1): 45-60 Date 2010-10-31 Type Departmental Bulletin Paper Rights publisher KANAGAWA University

More information

94 expression True False expression FalseMSDN IsNumber WorksheetFunctionIsNumberexpression expression True Office support.office.com/ja-jp/ S

94 expression True False expression FalseMSDN IsNumber WorksheetFunctionIsNumberexpression expression True Office   support.office.com/ja-jp/ S Excel VBA a Excel VBA VBA IsNumeric IsNumber SpecialCells SpecialCells MSDNMicrosoft Developer NetworkIsNumeric IsNumber SpecialCells IsNumeric VBA IsNumericexpression SpecialCells 94 expression True False

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション 演習課題レッスン (1) '(1) ワークシートどうしのやりとり ' ワークシート 請求書 1 から ワークシート データ収集 にデータを転記しましょう Sub example01() ' 請求書番号 ( 請求書 1のE2からデータ収集のA2へ ) Worksheets(" データ収集 ").Range("A2").Value = Worksheets(" 請求書 1").Range("E2").Value

More information

2 X Y Y X θ 1,θ 2,... Y = f (X,θ 1,θ 2,...) θ k III 8 ( ) 1 / 39

2 X Y Y X θ 1,θ 2,... Y = f (X,θ 1,θ 2,...) θ k III 8 ( ) 1 / 39 III 8 (3) VBA, R / III 8 (2013 11 26 ) / 39 2 X Y Y X θ 1,θ 2,... Y = f (X,θ 1,θ 2,...) θ k III 8 (2013 11 26 ) 1 / 39 Y X 1, X 2,..., X n Y = f (X 1, X 2,..., X n,θ 1,θ 2,...) (y k, x k,1, x k,2,...)

More information

ホームページ (URL) を開く 閉じる 益永八尋 VBA からホームページを開いたり 閉じたりします ホームページを開くはシート名 HP_Open で操作し ホームページを閉じるはシート名 "HP_Close" で操作します ホームページを開く方法はいくつかありますがここでは 1 例のみを表示します なお これは Web から入手したサンプルプログラムから使い勝手が良いように修正 追加したものです

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション Excel VBA の基本 2 はじめに 前回のおさらい 反復処理 (For...Next) ステップ実行 参考文献の 転記処理 VBA 関数 ( 引数と戻り値 ) 参考文献 立山秀利 入門者の ExcelVBA 講談社,2012. 1 ( はじめに )Excel でこんなこともできるよ! 1 開発 メニュー 挿入 から [ フォームコントロール ] [ スピンボタン ] を選択 2 ワークシート上でドラッグドロップする

More information

Excel Excel Excel 20132 20 = 1048576 Excel 201316 100 III 7 (2014 11 18 ) 1

Excel Excel Excel 20132 20 = 1048576 Excel 201316 100 III 7 (2014 11 18 ) 1 III 7 VBA / III 7 (2014 11 18 ) Excel Excel Excel 20132 20 = 1048576 Excel 201316 100 III 7 (2014 11 18 ) 1 Excel VBA Excel Excel 2 20 Excel QR Excel R QR QR BLASLAPACK III 7 (2014 11 18 ) 2 VBA VBA (Visual

More information

Excel ではじめる数値解析 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 初版 1 刷発行時のものです.

Excel ではじめる数値解析 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます.   このサンプルページの内容は, 初版 1 刷発行時のものです. Excel ではじめる数値解析 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. http://www.morikita.co.jp/books/mid/009631 このサンプルページの内容は, 初版 1 刷発行時のものです. Excel URL http://www.morikita.co.jp/books/mid/009631 i Microsoft Windows

More information

D0090.PDF

D0090.PDF 400. 1 1 1 3 500g 180cm A A 0g 500g 500g 500g 0.2 0.3 cm 500g 1kg 12 2 4 2 1 2 1 500g 500g 500g 2 A FreeFall 2 VBEditor 1 1 Option Explicit Declare Sub Sleep Lib "kernel32" (ByVal dwmilliseconds As Long)

More information

情報科学概論 第1回資料

情報科学概論 第1回資料 1. Excel (C) Hiroshi Pen Fujimori 1 2. (Excel) 2.1 Excel : 2.2Excel Excel (C) Hiroshi Pen Fujimori 2 256 (IV) :C (C 65536 B4 :2 (2 A3 Excel (C) Hiroshi Pen Fujimori 3 Tips: (1) B3 (2) (*1) (3) (4)Word

More information

D0050.PDF

D0050.PDF Excel VBA 6 3 3 1 Excel BLOCKGAME.xls Excel 1 OK 2 StepA D B1 B4 C1 C2 StepA StepA Excel Workbook Open StepD BLOCKGAME.xls VBEditor ThisWorkbook 3 1 1 2 2 3 5 UserForm1 4 6 UsorForm2 StepB 3 StepC StepD

More information

2X Y Y X θ 1, θ 2,... Y = f(x, θ 1, θ 2,...) θ k III 8 (2013 05 28 ) 1 / 39

2X Y Y X θ 1, θ 2,... Y = f(x, θ 1, θ 2,...) θ k III 8 (2013 05 28 ) 1 / 39 III 8 (3) VBA, R / III 8 (2013 05 28 ) / 39 2X Y Y X θ 1, θ 2,... Y = f(x, θ 1, θ 2,...) θ k III 8 (2013 05 28 ) 1 / 39 Y X 1, X 2,..., X n Y = f(x 1, X 2,..., X n, θ 1, θ 2,...) (y k, x 1,k, x 2,k,...)

More information

D0020.PDF

D0020.PDF n 3 X n Y n = Z n 17 1995 300 n n 2 3 2 a b c c 2 a 2 b 2 600 2000 322 3 15 2 3 580 3 1 5 4 3 2 1 300 2 1 2 1 1 ExcelVBA 2 VBA 1 VBA 2 API Sleep ExcelVBA 2 100 60 80 50 ExcelVBA API Sleep 3 100 60 (80

More information

Microsoft PowerPoint - vp演習課題

Microsoft PowerPoint - vp演習課題 演習課題 (1) 27 Nov., '18 katakan2hiragana.xlsm は, 下図のように 4~8 行目の B 列に漢字で表記した氏名,C 列にカタカナで表記したヨミガナ,D 列にひらがなで表記したよみがなを表示させることを意図している. このシートは, セル範囲 "B4:B8"( 図の赤枠内 ) に, キーボードから漢字で氏名を入力すると C 列にカタカナのヨミガナが自動的に表示されるようになっている.

More information

PSCHG000.PS

PSCHG000.PS a b c a ac bc ab bc a b c a c a b bc a b c a ac bc ab bc a b c a ac bc ab bc a b c a ac bc ab bc de df d d d d df d d d d d d d a a b c a b b a b c a b c b a a a a b a b a

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション Excel VBA の基本 1 VBA Visual Basic for Applications Office シリーズに搭載されているプログラミング言語 マクロを作成するために使われる 1 プログラミングとは 人間の意図した処理を行うようにコンピュータに指示を与えること セル A1 の内容をセル B1 にコピーしなさいセル A1 の背景色を赤色にしなさいあれをしなさいこれをしなさい 上から順番に実行

More information

untitled

untitled StiLL StiLL Excel VBA IT Excel2000 2003 StiLL StiLL! Excel2007 StiLL -- -- Excel!!!! DB CSV VBA VBA ' VBA Public Sub SampleProgramDAO1() Dim SheetName As String Dim strname As String SheetName = "Sheet2"

More information

VBAfiüŒåŁÒver2

VBAfiüŒåŁÒver2 Microsoft Excel 1 2 3 4 5 Application.CommandBars("Stop Recording").Visible = True 6 Range("A1").Value = WorksheetFunction.RoundDown(9.27, 0) 7 modorichi = MsgBox(" ",, "") modorichi = MsgBox(prompt:="

More information

ExcelVBA Excel VBA Microsoft Excel VBA Visual Basic for Applications Excel Excel VBA ExcelVBA Excel ExcelVBA Excel VBA Excel ExcelVBA ExcelVBA VBA Ran

ExcelVBA Excel VBA Microsoft Excel VBA Visual Basic for Applications Excel Excel VBA ExcelVBA Excel ExcelVBA Excel VBA Excel ExcelVBA ExcelVBA VBA Ran Excel VBA Microsoft Excel VBA Visual Basic for ApplicationsExcel Excel VBA Excel ExcelVBA Excel VBA Excel ExcelVBA VBA Range Excel 174 VBA VisualBasicforApplications Microsoft ExcelWordAccessPowerPoint

More information

コンピュータ概論

コンピュータ概論 4.1 For Check Point 1. For 2. 4.1.1 For (For) For = To Step (Next) 4.1.1 Next 4.1.1 4.1.2 1 i 10 For Next Cells(i,1) Cells(1, 1) Cells(2, 1) Cells(10, 1) 4.1.2 50 1. 2 1 10 3. 0 360 10 sin() 4.1.2 For

More information

untitled

untitled コンピュータリテラシ B での VBA 教 育 内 容 の 共 有 化 永 井 喜 則 同 時 開 講 に 至 った 経 緯 理 工 学 部 1 年 生 の 履 修 科 目,コンピュータリテラシ A, B は 学 系 によって 必 修 になっている 学 生 の 履 修 が 特 定 の 時 間 に 集 中 し, 教 育 用 端 末 室 の 人 数 を 大 幅 に 超 過 して 学 年 初 めの 調 整

More information

1. 入力画面

1. 入力画面 指定した時刻に指定したマクロ (VBA) を実行するプログラム (VBA) 益永八尋 様々な業務を行っている場合には 指定した時刻に指定したマクロ (Macro VBA) を実行したくなる場合がある たとえば 9:00 17: 00 や 1 時間 6 時間間隔に指定したマクロ (Macro VBA) を実行する この様な場合に対応できるように汎用性の高いプログラムを作成した この場合に注意する必要があるのは

More information

EXCEL VBA講座

EXCEL VBA講座 EXCEL VBA 講座 sheet 振り分け 目次 sheets の中身をデータによって分類する... 3 全行ループを作る... 3 各市のシートの行数を覚えておく連想配列を作る... 3 各シートにオートフィルタを掛ける... 4 変更が目に見えると遅くなる... 5 これらの処理をボタンから呼び出す... 5 現在のシートを印刷する... 6 sheets の中身をデータによって分類する 前回の練習で

More information

再利用して保存する場合は 新規登録 ボタン 1000 件まで登録できます 読み込んだ見積もりデータを 請求書に送るときは 請求へ複写 ボタン 2 請求書の作成 請求書 ボタンを押し 必要な項目を入力し 印刷 新規登録 ボタン data 読込 ボタンで作成済みデータを読みこめます 登録修正番号の数値の

再利用して保存する場合は 新規登録 ボタン 1000 件まで登録できます 読み込んだ見積もりデータを 請求書に送るときは 請求へ複写 ボタン 2 請求書の作成 請求書 ボタンを押し 必要な項目を入力し 印刷 新規登録 ボタン data 読込 ボタンで作成済みデータを読みこめます 登録修正番号の数値の 見積書請求書作成 V2.0 メニュー ( 表紙 ) このメニューにあるボタンのマクロはシートへの移動マクロです このファイルを 利用する場合には シートの保護を解除しないでください データの削除や移動はしないでください ファイルが壊れます 見積請求作成平成 25 年 7 月作業の流れは 1 見積書の作成 見積書 ボタンを押し 必要な項目を入力し 印刷 新規登録 ボタン data 読込 ボタンで作成済みデータを読みこめます

More information

最初に VBA が使用できるように マクロ と呼ばれるエクセル上のアプリ ( のようなもの ) を準備します Excel メニューの ファイル オプション を選択 表示される Excel のオプション から リボンのユーザー設定 を選択 メインタブ 内の 開発 にチェックを付けて OK をクリック

最初に VBA が使用できるように マクロ と呼ばれるエクセル上のアプリ ( のようなもの ) を準備します Excel メニューの ファイル オプション を選択 表示される Excel のオプション から リボンのユーザー設定 を選択 メインタブ 内の 開発 にチェックを付けて OK をクリック ブログ自動投稿ツールの作り方 (Excel 2013 版 ) さとうちはる さんの無料レポート 超簡単! 誰にでも出来る ブログ記事自動投稿ツールを作成する方法をご紹介 アフィリエイトにはめんどくさい作業や退屈な作業がたくさんあります やりたくない作業はツールを使って自動化しよう 文末にはツールの無料プレゼントあります http://mailzou.com/get.php?r=82982&m=15301

More information

ii

ii Excel VBA VBA 2002 ii CONTENTS 1 2 3 4 5 6 7 8 9 10 1 2 2 EXVBA2_2002 1-2 1-2.xls 12 Sub () Dim FstValue(6) As Integer Dim NextValue(6) As Integer Dim TtlValue(6) As Integer Dim i As Integer Set WS =

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション エクセルが自動化する マクロ VBA の魔法 4 大量ファイルを自動処理する! ブック & シートの処理入門 第 0 章 このコースの進め方 ゴール設定 サンプルマクロの体験 エクセル兄さんの マクロ VBA 講座シリーズでの位置づけ シリーズ 2,500 人以上が受講 ( 収録時点 ) 第 1 弾 超入門ショートマクロ編小さな作業を自動化 第 2 弾 脱入門請求書マクロ編一覧表 帳票作成 第 3

More information

OS Windows Mac OS Windows Mac OS Windows XP Mac OS X OS Windows 95 Mac OS

OS Windows Mac OS Windows Mac OS Windows XP Mac OS X OS Windows 95 Mac OS About use of the Chinese character which is not in a computer Reuse and sharing of data by the large-scale character set and the Macro program HUKUDA Sinobu 1 125000 800 JIS 2 2000 3 1 488 545 2 JIS X

More information

Lesson 1 1 EXVBA2000 Lesson01 Lesson01.xls 2

Lesson 1 1 EXVBA2000 Lesson01 Lesson01.xls 2 Excel2000VBA L e a r n i n g S c h o o l 1 Lesson 1 1 EXVBA2000 Lesson01 Lesson01.xls 2 3 Module1:(General)- Public Sub () Dim WS As Object Dim DiffDate As Integer Dim MaxRows As Integer, CopyRows As Integer

More information

卒業論文.PDF

卒業論文.PDF 234 1 1 1.1 1 1.2 4 1.3 4 2 5 2.1 5 2.2 6 2.3 7 2.3.1 7 2.3.2 8 2.3.3 9 2.3.4 9 2.3.5 9 2.3.6 9 3 1 3.1 3.2 3.3 11 3.4 14 3.4.1 14 3.4.2 15 3.5 16 3.6 17 i 4 2 18 4.1 18 4.2 19 4.2.1 2m/sec 2 4.2.2 3m/sec

More information

BASICとVisual Basic

BASICとVisual Basic Visual Basic BASIC Visual Basic BASICBeginner's All purpose Symbolic Instruction Code Visual Basic Windows BASIC BASIC Visual Basic Visual Basic End Sub .Visual Basic Visual Basic VB 1-1.Visual Basic

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション 全コース Web フォロー付!! Excel VBA 初心者の方から始められる入門コースから 基本文法が学べるベーシックや 高度なプログラミングが学べるスタンダードまでしっかりと学習できます!! 学習の流れ Excel VBA 入門 VBA 初心者の方 Excel の基本知識をお持ちの方 Excel VBA ベーシック 基本文法を理解し 読解 ( 編集 ) 能力を身につけたい方 Exce lvba

More information

D0120.PDF

D0120.PDF 12? 1940 Stanislaw Ulam John von Neumann Cellular Automaton 2 Cellular Automata 1 0 1 2 0 1 A 3 B 1 2 3 C 10 A B C 1 ExcelVBA 1 1 1 1 0 1 1 B7 BD7 road1 B8 BD31 board 0 Road1 50 board 0 1 0 1 Excel 2 2

More information

情報資源組織演習B:

情報資源組織演習B: 情報資源組織演習 A( 書誌の作成 ) 第 13 回書誌データ管理 検索システムの構築 第 14 回ネットワーク情報資源のメタデータ作成の実際 第 15 回まとめ 2013 年度跡見学園女子大学文学部准教授福田博同 検索システムの構築 ( 静的データベース ) 第 12 回で HTML ファイルに Google 検索窓を埋め込む方法は理解した 今回 :Excel の VBA を使い データベース的検索処理を行う

More information

Microsoft Word _VBAProg1.docx

Microsoft Word _VBAProg1.docx 1. VBA とマクロ 1.1 VBA とは VBA(Visual Basic for Applications) は 1997 年に Microsoft 社がマクロを作成するために開発された言語である Windows 対応のアプリケーションを開発するためのプログラミング言語 Visual Basic をもとにしているため 次のような特徴がある 1 VBA は Excel Word, Access,

More information

単語の比較とスペルチェック COMPARA Word のテキスト内にある単語を抽出し 異なり語のリストを作成するプログラムです また Word のテキスト内の単語 ( または単語リスト ) を 先に作成した単語リストと照合して その異同を確かめます フォーム 単語リスト単語集計同語検索異語検索同語リ

単語の比較とスペルチェック COMPARA Word のテキスト内にある単語を抽出し 異なり語のリストを作成するプログラムです また Word のテキスト内の単語 ( または単語リスト ) を 先に作成した単語リストと照合して その異同を確かめます フォーム 単語リスト単語集計同語検索異語検索同語リ 単語の比較とスペルチェック COMPARA Word のテキスト内にある単語を抽出し 異なり語のリストを作成するプログラムです また Word のテキスト内の単語 ( または単語リスト ) を 先に作成した単語リストと照合して その異同を確かめます フォーム 単語リスト単語集計同語検索異語検索同語リスト異語リスト和文大小文字区別新文書照合リスト実行 テキストまたはリストにある単語 ( 異なり語 )

More information

CommandMatrix_8230E

CommandMatrix_8230E 4. USB 4. USB 4.1 USB2.0 Full Speed USB (Universal Serial Bus) USB 4.2 USB : USB2.0 Full Speed : USB B : A112010 USB(A) -USB B 1 m ID: MYID 1 127 : : ASCII : ASCII : ADC USB 4.3 USB 4.3.1 ADC USB ADC USB

More information

1. 入力画面

1. 入力画面 指定した時刻に指定したマクロ (VBA) を実行するプログラム (VBA) 益永八尋 様々な業務を行っている場合には 指定した時刻に指定したマクロ (Macro VBA) を実行したくなる場合がある たとえば 9:00 17: 00 や 1 時間 6 時間間隔に指定したマクロ (Macro VBA) を実行する また 月に 1 回 毎週 1 回定期的または不定期的にある時刻になれば指定したプログラムを実行させる

More information

ExcelVBA

ExcelVBA EXCEL VBA REGLECASSE YU SATO 目次 はじめに 開発タブの表示 拡張子 VBEの起動と初期設定 モジュールの挿入 削除 プロジェクト モジュール プロシージャ 変数の宣言 (Dim) If~Then For~Next 応用 :If~ThenとFor~Next ボタンの作成 最後に Subプロシージャ 基本説明 セルの指定 (Range) 変数とデータ型 (String,Long)

More information

[Excelが自動化するVBAの魔法2]購入者限定テキスト

[Excelが自動化するVBAの魔法2]購入者限定テキスト 第 0 章 全体像の把握 マクロの流れを整理する 法 第 0.5 章復習編 ( マクロ VBA の基礎を振り返る ) 第 1 章 第 2 章 第 3 章 セルとセル範囲の扱い (Range) 条件分岐 (If If Else If ElseIf) 変数に 番号を取得し のない表を作る [ Range("B" & r) のような記述 ] 第 4 章繰り返し (For Do While Do Until

More information

48 * *2

48 * *2 374-1- 17 2 1 1 B A C A C 48 *2 49-2- 2 176 176 *2 -3- B A A B B C A B A C 1 B C B C 2 B C 94 2 B C 3 1 6 2 8 1 177 C B C C C A D A A B A 7 B C C A 3 C A 187 187 C B 10 AC 187-4- 10 C C B B B B A B 2 BC

More information

<4D6963726F736F667420576F7264202D208DEC90AC837D836A83858341838B81698F4390B394C5816A2E646F63>

<4D6963726F736F667420576F7264202D208DEC90AC837D836A83858341838B81698F4390B394C5816A2E646F63> + = 付 録 Ⅰ マクロのフローチャート 開 始 キーワード 数 と 文 章 数 をカウントする Yes 全 ての 文 章 番 号 (1 0) を 照 合 したか No 全 ての 文 章 番 号 (data) を 照 合 したか Yes No 文 章 番 号 (1 0) が 文 章 番 号 (data) と 等 しいか Yes No 値 を 一 行 全 て 0にする 値 を 一

More information

(18,26) 10/ GHz.xls [ (18GHz) ] GHz.xls [ (26GHz) ] +----all.sh [ 2 10 ] +----mesure-ryudai/ / _csv.log [

(18,26) 10/ GHz.xls [ (18GHz) ] GHz.xls [ (26GHz) ] +----all.sh [ 2 10 ] +----mesure-ryudai/ / _csv.log [ I 065762A 19.08.19 19.08.24 19.08.20 1 (18,26) 10/ +----18GHz.xls [ (18GHz) ] +----26GHz.xls [ (26GHz) ] +----all.sh [ 2 10 ] +----mesure-ryudai/ +----20070401/ +----192.168.100.9_csv.log [ (18GHz) ] +----192.168.100.11_csv.log

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション レッスン (1) あるワークシート中のあるセルを指定する Worksheets(" ワークシート名 ").Range(" セル ").Value ( 例 ) Worksheets(" データ収集 ").Range("A2").Value あるワークシートのセルから 別のワークシートのセルへ転記する Worksheets(" シート A").Range(" セル ").Value = Worksheets("

More information

&

& & & & c & B & c & & aa c c a a nk a a & a aa aaa & A A A A & 7 & & c og og & c c k g a og ok c c & 7 7 n & aa & & & & & & & & & & & g & & a a & & 171 1 & 1 7 1 1 6 de 666 66 6 7 6 f 6 & & c & 1 1 1 1 1

More information

untitled

untitled Visual Basic.NET 1 ... P.3 Visual Studio.NET... P.4 2-1 Visual Studio.NET... P.4 2-2... P.5 2-3... P.6 2-4 VS.NET(VB.NET)... P.9 2-5.NET... P.9 2-6 MSDN... P.11 Visual Basic.NET... P.12 3-1 Visual Basic.NET...

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション プロシージャ プロシージャの種類 Subプロシージャ Functionプロシージャ Propertyプロシージャ Sub プロシージャ Subステートメント~ステートメントで囲まれる 実行はするけど 値は返さない 途中で抜けたいときは Exit Sub を行なう Public Sub はマクロの実行候補に表示される Sub プロシージャの例 Public Sub TestSubProc() Call

More information

動的串刺し計算のコツ

動的串刺し計算のコツ 動 的 串 刺 し 計 算 のコツ MENU > 動 的 串 刺 し 計 算 のコツ 複 数 シートにまたがるリスト 形 式 データの 動 的 串 刺 し 計 算 を 基 本 操 作 で 考 えてみました 項 目 による 統 合 機 能 を 利 用 します 項 目 動 的 串 刺 し 計 算 のイメージ 動 的 の 意 味 は? 標 準 の 項 目 による 統 合 の 結 果 と 問 題 点 項 目

More information

情報基礎A

情報基礎A 情報基礎 A 第 10 週 プログラミング入門 マクロ基本文法 4 1 配列 FOR~NEXT 全眞嬉 東北大学情報科学研究科システム情報科学専攻情報システム評価学分野 http://www.dais.is.tohoku.ac.jp/~jinhee/jyoho-19.html 6 人分の合計を計算 2 socre(0) socre(1) socre(2) socre(3) socre(4) socre(5)

More information

30 2014.08 2 1985 Koblitz Miller 2.1 0 field Fp p prime field Fp E Fp Fp Hasse Weil 2.2 Fp 2 P Q R R P Q O P O R Q Q O R P P xp, yp Q xq, yq yp yq R=O

30 2014.08 2 1985 Koblitz Miller 2.1 0 field Fp p prime field Fp E Fp Fp Hasse Weil 2.2 Fp 2 P Q R R P Q O P O R Q Q O R P P xp, yp Q xq, yq yp yq R=O An Internet Vote Using the Elliptic Curve Cryptosystem TAKABAYASHI Shigeki Nowadays various changes are taking place in the society by the spread of the Internet, and we will vote by the Internet using

More information

1/9 ページ VBA 基礎文法最速マスター VBA VBAの文法一覧です 他の言語をある程度知っている人はこれを読めばVBAの基礎をマスターしてVBAを書くことができるようになっています 簡易リファレンスとしても利用できると思いますので これは足りないと思うものがあれば教えてください 1. 基礎 Visual Basic Editor の起動 VBAはVisual Basic Editorで編集

More information

sinfI2005_VBA.doc

sinfI2005_VBA.doc sinfi2005_vba.doc MS-ExcelVBA 基礎 (Visual Basic for Application). 主な仕様一覧 () データ型 主なもの 型 型名 型宣言文字 長さ 内容 整数型 Integer % 2 バイト -32,768 32,767 長整数型 Long & 4 バイト -2,47,483,648 2,47,483,647 単精度浮動小数点数 Single 型!

More information

140 120 100 80 60 40 20 0 115 107 102 99 95 97 95 97 98 100 64 72 37 60 50 53 50 36 32 18 H18 H19 H20 H21 H22 H23 H24 H25 H26 H27 1 100 () 80 60 40 20 0 1 19 16 10 11 6 8 9 5 10 35 76 83 73 68 46 44 H11

More information

Word VBA基本&活用テクニック Part 1

Word VBA基本&活用テクニック Part 1 1-1 VBAを 利 用 する 前 の 準 備 マクロとVBA 記 述 されたプログラ ムのことをコードとも 呼 びます Wordの 場 合 実 際 の 作 業 では 個 々の 文 書 よりも 複 数 の 文 書 で 使 用 したいマクロの ほうが 多 いかもしれま せ ん 標 準 テ ン プ レートの 扱 いについて は 230 ペ ー ジ を 参 照 してください アプリケーションの 内 部 的

More information

橡vb_kikai0.PDF

橡vb_kikai0.PDF Visual Basic OS Windows Visual Basic GPIBRS232C A/D Visual Basic Windows Visual Basic Visual Basic Visual Basic Visual Basic Windows GUI( ) OS Visual Basic Form Form 1 Visual Basic Microsoft Visual Basic

More information

教科書原稿

教科書原稿 第 章配列変数とその宣言 変数の基本的な使い方は第 章で登場しました 変数は処理の途中の値を一時的に保存して, プログラム内で, 他の処理を行いたいときに使ってきました つの変数には一時的にはつのデータだけ保存できます この章では, 同じ目的で利用する複数の変数をまとめて扱うことのできるデータ構造の基本的な使い方について学びます VBA ではそのようなデータ構造を 配列 (Array) と呼びます

More information

untitled

untitled Mail de ECO Professional ...1 EXCEL...2...3...4 EXCEL...6...7...8 EXCEL...9...10...11 EXCEL...12...13...14 EXCEL...16...21...23...25...33...34...37...38...40...44 EXCEL OK 1 EXCEL EXCEL MailDeEco No 1

More information

合併後の交付税について

合併後の交付税について (1) (2) 1 0.9 0.7 0.5 0.3 0.1 2 3 (1) (a), 4 (b) (a), (c) (a) 0.9 0.7 0.5 0.3 0.1 (b) (d),(e) (f) (g) (h) (a) (i) (g) (h) (j) (i) 5 (2) 6 (3) (A) (B) (A)+(B) n 1,000 1,000 2,000 n+1 970 970 1,940 3.0%

More information

よくわかる Microsoft Excel 2019/2016/2013 マクロ/VBA(FPT1910)

よくわかる Microsoft Excel 2019/2016/2013 マクロ/VBA(FPT1910) 練習問題 総合問題 解答 Microsoft Excel 209/206/203 マクロ /VBA 練習問題解答 2 総合問題解答 対象書籍 よくわかる Microsoft Excel 209/206/203 マクロ /VBA(FPT90) 練習問題解答 第 章練習問題 開発 タブを選択 2 コード グループの ( マクロの記録 ) をクリック 3 マクロ名 に 集計削除 と入力 4 マクロの保存先

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション ループ ループとは? ある条件を満たすまで 指定の命令を繰り返す Do... Loop For Next For Each Next While WEnd ループの種類 Do Loop Do While 条件 ステートメント Loop Do ステートメント Loop While 条件 Do Until 条件 ステートメント Loop Do ステートメント Until Loop 条件 Do Loop

More information

1 (1) vs. (2) (2) (a)(c) (a) (b) (c) 31 2 (a) (b) (c) LENCHAR

1 (1) vs. (2) (2) (a)(c) (a) (b) (c) 31 2 (a) (b) (c) LENCHAR () 601 1 () 265 OK 36.11.16 20 604 266 601 30.4.5 (1) 91621 3037 (2) 20-12.2 20-13 (3) ex. 2540-64 - LENCHAR 1 (1) vs. (2) (2) 605 50.2.13 41.4.27 10 10 40.3.17 (a)(c) 2 1 10 (a) (b) (c) 31 2 (a) (b) (c)

More information

AccessVBA−‹ŠpŁÒ-flO“Z

AccessVBA−‹ŠpŁÒ-flO“Z Microsoft Access 1 2 Private Sub After5days_Click( ) msg = Date + 5 MsgBox mag End Sub 3 Me.Filter = " =' " & Me! & "'" 4 5 Private Sub _Click() If IsNull(Me!) Then MsgBox " " Me!.SetFocus Me!.Dropdown

More information

Microsoft Word - VBA基礎(6).docx

Microsoft Word - VBA基礎(6).docx あるクラスの算数の平均点と理科の平均点を読み込み 総点を計算するプログラムを考えてみましょう 一クラスだけ読み込む場合は test50 のようなプログラムになります プログラムの流れとしては非常に簡単です Sub test50() a = InputBox(" バナナ組の算数の平均点を入力してください ") b = InputBox(" バナナ組の理科の平均点を入力してください ") MsgBox

More information

Microsoft Word - VBA基礎(3).docx

Microsoft Word - VBA基礎(3).docx 上に中和滴定のフローチャートを示しました この中で溶液の色を判断する部分があります このような判断はプログラムではどのように行うのでしょうか 判断に使う命令は IF 文を使います IF は英語で もし何々なら という意味になります 条件判断条件判断には次の命令を使います If 条件式 1 Then ElseIf 条件式 2 Then ElseIf 条件式 3 Then 実行文群 1 実行文群 2 実行文群

More information

Microsoft Word - ExcelVBA.doc

Microsoft Word - ExcelVBA.doc 7 EXCEL VBA Ⅰ VBA(Microsoft Visual Basic for Applications)の 基 礎 1 VBAとは 1 2 VBAでできること 1 3 マクロを 利 用 する 理 由 1 4 VBEの 画 面 構 成 2 Ⅱ マクロの 記 録 1 マクロの 記 録 機 能 3 2 記 録 したマクロの 実 行 5 3 記 録 したマクロの 内 容 確 認 5 4 記 録

More information

Excel 2007 Excel 2007 "Excel " " " " Excel 2003 Excel 2007 " "" Excel Web ""

Excel 2007 Excel 2007 Excel     Excel 2003 Excel 2007   Excel Web Microsoft Office Excel 2007 Microsoft Office Excel 2007 Microsoft Office Excel 2007 Office Excel Office Excel Office Excel Excel 2007 Excel 2007 Excel 2007 "Excel " " " " Excel 2003 Excel 2007 " "" Excel

More information

承 認

承 認 取扱説明書 2012/7/26 岩通計測株式会社技術部 1. 概観 編 2. 機能 DM に新しく書込れた < 指定されたスクリーン > の指定名称の ch の波形を波形領域に格納します 確認のために 所定の csv ファイルに格納します VB.net 版では

More information

Microsoft PowerPoint - slide

Microsoft PowerPoint - slide 目次 v5.4 May.05 Excel VBA によるマクロの作成 st. 009//7 L st. 05/05/ 回目 (.5h) マクロの記述と実行 自作関数の作成 マクロの記録と再生 デバック処理 回目 (.5h) セル ワークシート操作 変数の型宣言 アニメーション作成 課題作成 提出課題 マクロと VBA 4. 提出課題 () 自分が考えた問題 ( 何をどうしたいか WH) () VBAスクリプト

More information

Microsoft PowerPoint - Visualプログラミング

Microsoft PowerPoint - Visualプログラミング 流れの制御構造 多方向分岐 プログラムの制御構造は下記の 6 つ (1) 連接 ( 連なり ) (2) 所定回数反復 ( 一定回数の繰り返し ) (3) 判断 ( 分かれ ) (4) 多方向分岐 (5) 前判定反復 (6) 後判定反復 上記以外は使ってはいけない. 141 if 文による多方向に分岐する処理 (1) Sub elseif2() Dim a As Integer a = Range("A1").Value

More information

2013 年 8 月 14 日 管理図作成マニュアル ( 案 ) 益永八尋 Ⅰ. プログラムの概要 品質管理において必要な QC7 道具の一つである管理図作成のプログラムを作成した このプログラムは 下記の管理図を作成するものである 1 BerX-R 管理図 2Me 管理図 3X 管理図 4np 管

2013 年 8 月 14 日 管理図作成マニュアル ( 案 ) 益永八尋 Ⅰ. プログラムの概要 品質管理において必要な QC7 道具の一つである管理図作成のプログラムを作成した このプログラムは 下記の管理図を作成するものである 1 BerX-R 管理図 2Me 管理図 3X 管理図 4np 管 管理図作成マニュアル ( 案 ) 益永八尋 Ⅰ. プログラムの概要 品質管理において必要な QC7 道具の一つである管理図作成のプログラムを作成した このプログラムは 下記の管理図を作成するものである 1 BerX-R 管理図 2Me 管理図 3X 管理図 4np 管理図 5p 管理図 6c 管理図 7u 管理図 プログラム作成に使用した文献は [ 新版 ]QC 入門講座 7 管理図の作り方と活用

More information

Module1 には 損 益 入 力 シートのデータに 関 連 するマクロが 格 納 されている( 表 1) 以 下 に Module1 を 構 成 するマクロを 掲 載 する 表 1 Module1 の 構 成 Module 設 置 されたシート 名 登 録 されたマクロ 作 業 内 容 データの

Module1 には 損 益 入 力 シートのデータに 関 連 するマクロが 格 納 されている( 表 1) 以 下 に Module1 を 構 成 するマクロを 掲 載 する 表 1 Module1 の 構 成 Module 設 置 されたシート 名 登 録 されたマクロ 作 業 内 容 データの 青 色 申 告 決 算 書 の 所 得 解 析 用 ファイルに 組 み 込 まれたマクロについて (ファイル 名 :DB 解 析 マクロ) 青 色 申 告 決 算 書 の 所 得 解 析 用 ファイルに 組 み 込 まれたマクロ(ファイル 名 :DB 解 析 マ クロ)では 付 随 する 作 業 についてボタン 操 作 のみで 対 応 させている ここでは ブック に 組 み 込 まれたマクロについて

More information

橡WINAPLI.PDF

橡WINAPLI.PDF Windows Visual Basic 2.0 8 7 29 8 2 Windows 1. Windows 1 1.1. Windows 1 1.2. 1 2. Visual Basic 2 2.1. VisualBasic 2 2.2. Visual Basic 2 2.2.1. 2 2.2.2. 2 2.2.3. 2 2.2.4. 2 2.2.5. 2 2.3. Visual Basic 3

More information

Microsoft PowerPoint - VBA解説1.ppt [互換モード]

Microsoft PowerPoint - VBA解説1.ppt [互換モード] 九州大学工学部地球環境工学科船舶海洋システム工学コース 計算工学演習第一 演習資料担当 : 木村 Excel 上のマクロを利用してプログラムを組む Visual Basic for Applications (VBA) のテクニック Excel のマクロとは? 一連の操作を自動的に行う機能 例 ) セル ( マス目 ) に数字を 1 から順番に埋めていく Excel のマクロでどんなプログラムが作れるのか?

More information

ケミカルエンジニアのためのExcelを用いた化学工学計算法

ケミカルエンジニアのためのExcelを用いた化学工学計算法 VBA 7.1 f ()= ( f ( )) y = f ()(1) y = f ( )( ) + f ( ) (1) 1 1 1 = f ( ) f ( ) (2) 1 n = = y = f() y = () 1 n+1 = n (f( n )f( n )) 1.7 1 2 log()2 145 7.2 f ( ) 1-1 -1 f ( ) (3) (4) 34 5 1 1) ( ) ( ) '(

More information

( 2 / 35

( 2 / 35 Office 1 / 35 ( 2 / 35 3 / 35 ( 4 / 35 ( 5 / 35 6 / 35 =SUMPRODUCT((C$3:C$42>=$A46)(C$3:C$42

More information

MS-ExcelVBA 基礎 (Visual Basic for Application)

MS-ExcelVBA 基礎 (Visual Basic for Application) MS-ExcelVBA 基礎 (Visual Basic for Application). 主な仕様一覧 () データ型 ( 主なもの ) 型型名型宣言文字長さ内容整数型 Integer % バイト -, ~, 長整数型 Long & バイト -,,, ~,,, 単精度浮動小数点数型倍精度浮動小数点数型 Single! バイト負値 : -.0E ~ -.0E- 正値 :.0E- ~.0E Double

More information

Catch Surfboard Co. 2018 HARDGOODS DELIVERY END of March 2018 !"#$"%&'%()(*#+&,-.&/-01.2&3&$4(*&!"#$"%&'%()(*#+&,-.&/-01.2&!"#$"%&'%()(*#+&,-.&/-01.2&!"#$"%&'%()(*#+&,-.&/-01.2&!"#$"%&'%()(*#+&,-.&/-01.2&

More information

N88 BASIC 0.3 C: My Documents 0.6: 0.3: (R) (G) : enterreturn : (F) BA- SIC.bas 0.8: (V) 0.9: 0.5:

N88 BASIC 0.3 C: My Documents 0.6: 0.3: (R) (G) : enterreturn : (F) BA- SIC.bas 0.8: (V) 0.9: 0.5: BASIC 20 4 10 0 N88 Basic 1 0.0 N88 Basic..................................... 1 0.1............................................... 3 1 4 2 5 3 6 4 7 5 10 6 13 7 14 0 N88 Basic 0.0 N88 Basic 0.1: N88Basic

More information

(Microsoft Word \203v\203\215\203O\203\211\203~\203\223\203O)

(Microsoft Word \203v\203\215\203O\203\211\203~\203\223\203O) 21113 Visual Basic を利用したフリーソフト開発 要旨 各自でフリーソフトを作成 インターネット上に公開することを目的とし Visual Basic2008 2010 を使い簡単なアプリの作成に成功した 1. 目的情報化が進んだ現代において 社会に出ていくためにはパソコンの一つや二つ 軽く扱えなければならない さらに 資源の乏しい日本においては今後 情報技術の発展することが望ましいと考える

More information

untitled

untitled Microsoft Excel 1. 2. 3. 4. VBA) A IV 256 BMI (Body Mass Index) AVERAGE,COUNTIF BMI ( kg ) = 22 ( m) 2 BMI (Body Mass Index) BMI = ( kg ( m ) ) 2 BMI BMI 20 BMI 20 24 BMI 24 26.5 BMI 26.5 E1 kg Del Back

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション [エクセルが自動化するVBAの魔法]購入 者限定テキスト カリキュラムの全体像 第0章 第0.5章 第章 第章 第章 講師 エクセル兄さん 全体像の把握 マクロの流れを整理する方法 復習編 マクロ VBAの基礎を振り返る セルとセル範囲の扱い Range 条件分岐 If If Else If ElseIf 変数に行番号を取得し 穴のない表を作る エクセル兄さん(IT講師の淳) YouTube約8,500名

More information

6.1 工 程 管 理 (ネットワーク 工 程 表 ) 159 VBA( 実 行 結 果 例 ) 出 力 結 果 シート 出 力 結 果 を 図 に 描 くと 下 図 のようになる. 図 6.3 ネットワーク 工 程 表 ( 出 力 結 果 より 作 図 )

6.1 工 程 管 理 (ネットワーク 工 程 表 ) 159 VBA( 実 行 結 果 例 ) 出 力 結 果 シート 出 力 結 果 を 図 に 描 くと 下 図 のようになる. 図 6.3 ネットワーク 工 程 表 ( 出 力 結 果 より 作 図 ) 158 第 6 章 施 工 管 理 エクセル 例 題 6-1 ネットワーク 工 程 表 の 作 成 図 6.2 に 示 すネットワーク 工 程 表 の 作 業 時 刻, 余 裕 時 間 等 を 計 算 し,クリティ カルパスを 求 める. 図 6.2 ネットワーク 工 程 表 VBA( 実 行 結 果 例 ) データ 入 力 シート * A~K の 各 作 業 の 開 始 ノード(イベント), 終

More information

エクセル マクロ 言 語 とは エクセルのマクロとは 手 番 をあらかじめ 記 述 しておくことにより 通 常 手 操 作 している 処 理 を 自 動 化 すること 自 動 化 したものです マクロで 手 番 を 記 録 すれば 繰 り 返 し 作 業 を 自 動 化 できます また 連 続 的

エクセル マクロ 言 語 とは エクセルのマクロとは 手 番 をあらかじめ 記 述 しておくことにより 通 常 手 操 作 している 処 理 を 自 動 化 すること 自 動 化 したものです マクロで 手 番 を 記 録 すれば 繰 り 返 し 作 業 を 自 動 化 できます また 連 続 的 エクセルの マクロ 言 語 (VBA)に 慣 れるためのメモ 2014/1/31~ ~2015/12/31 作 成 : 縁 木 精 史 エクセル マクロ 言 語 とは エクセルのマクロとは 手 番 をあらかじめ 記 述 しておくことにより 通 常 手 操 作 している 処 理 を 自 動 化 すること 自 動 化 したものです マクロで 手 番 を 記 録 すれば 繰 り 返 し 作 業 を 自 動

More information

1 VB 開発向け OCX プログラミング はじめに 本書は STARFAX Server SDK を利用したユーザープログラムの作成方法をご説明しています なお 本書は Visual Basic 6.0 を開発ツールとして STARFAX Server SDK OCX コントロールを使用してプログラムを作成する方を対象としています そして STARFAX Sercer SDK とユーザープログラムとのインターフェイスは

More information

VBM01#解答解説# indd

VBM01#解答解説# indd 業務を効率化! ExcelVBA 実践コースレポート問題集解答 解説 第 1 単位 VBM-01-1 1406 問 2~ 問 5の解答は グレーのあみかけで示しています 本レポート問題集では テキストで学習したなかでも 特に 実務でよく使われる項目や 注意が必要なポイントについて出題しています 誤った設問については 解答を確認する前に 再度プロシージャを実行してみてください エラーが発生する場合は

More information

csv csv

csv csv 2009 1 9 2 1. 1 2. 2 2.1......................................... 2 2.2 csv.................................... 3 2.3 csv.................................. 3 3. 4 3.1.........................................

More information

商学論叢 第55巻 第1号

商学論叢 第55巻 第1号 1) 1) 2) 2) 3) 4) 5) 6) 3) 4) 5) 6) 2 7) 8) ebay Yahoo 7) 8) Yahoo URL 9) 10) 11) 9) Roth and Ockenfels (2002) Wilcox (2000) 10) 11) Engelbrecht-Wiggans, Milgrom, and Weber (1983) Yahoo 12) ID 13) 14)

More information

年計グラフ作成システム

年計グラフ作成システム 2003/01/20 2.00 1/29 2003/01/20...2...3...4...5...7...9... 11...13...15...16...17...18...19...20...21...23...24...26...27 FAQ...29 2/29 2003/01/20 Microsoft Access 2000 Microsoft Excel 3/29 2003/01/20

More information

Oracle Lite Tutorial

Oracle Lite Tutorial GrapeCity -.NET with GrapeCity - InputMan Creation Date: Nov. 30, 2005 Last Update: Nov. 30, 2005 Version: 1.0 GrapeCity Microsoft Visual Studio.NET VB.NET Oracle Tips InputMan InputMan Oracle.NET Oracle

More information