untitled



Similar documents
Excel ダッシュボードのご紹介 株式会社アイエルアイ総合研究所内藤慶一

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション

コンピュータ概論

AccessVBA−‹ŠpŁÒ-flO“Z

Lesson 1 1 EXVBA2000 Lesson01 Lesson01.xls 2


DAOの利用

PowerPoint プレゼンテーション

Excel Excel Excel = Excel III 7 ( ) 1

D0020.PDF

●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb

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

CommandMatrix_8230E

Excel Excel Excel = Excel ( ) 1

D0120.PDF

untitled

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

コンピュータ概論

74 No ACCESS

My関数の作成演習問題集


<4D F736F F D208DEC90AC837D836A B81698F4390B394C5816A2E646F63>


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

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション

EXCEL VBA講座

saihata.doc

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

Microsoft Word - VBA基礎(3).docx

PowerPoint プレゼンテーション

D0090.PDF

untitled

橡実践Oracle Objects for OLE

BASICとVisual Basic

MS-ExcelVBA 基礎 (Visual Basic for Application)

' % % &! #


76

康乘聡子(P105‐121)/康乘聡子 p105‐121

‡Æ‡Ý‡©457_01-12

™ƒŒì„³001†`028.pwd

★分冊3-説明資料PDF用/02-PDF個別



改訂版 :基本的な文字化の原則(Basic Transcription System for Japanese: BTSJ)

sinfI2005_VBA.doc

第10回 コーディングと統合(WWW用).PDF

情報資源組織演習B:

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


バスケットボール

卒業論文.PDF


2 1 F M m r G F = GMm r 2 (1.1) (1.1) (r = r ) F = GMmr r 3 (1.2) a F m F = kma k 1 F = ma (1.3) (1.2) (1.3) ma = GMmr r 3 (1.4)

-34-

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

Oracle Lite Tutorial

動的串刺し計算のコツ

Microsoft PowerPoint - Visualプログラミング

REALV5_A4…p_Ł\1_4A_OCF

untitled

「都市から地方への人材誘致・移住促進に関する調査」

<91498EE88CA D815B2E786C73>

〔 大 会 役 員 〕

橡本体資料+参考条文.PDF

Lecture on

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

kwcR3.0 Release Note

Transcription:

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" ' With ThisWorkbook.Worksheets(SheetName).DropDowns(1) strname =.List(.Value) End With If SampleProgramDAOFunc(SheetName, 7, 2, _ "SELECT * FROM WHERE ='" & strname & "'", 0) = True Then ' MsgBox strname & "", vbexclamation, "" End If End Sub VBA VBA VBA ' If DataCount > 0 Then ' With ThisWorkbook.Worksheets(SheetName) '.Range(.Cells(Y, X),.Cells(65535, X + rstpubs.fields.count - 1)).Value = "" With.Cells(Y, X) For lngcol = 0 To rstpubs.fields.count - 1.Offset(0, lngcol).value = rstpubs.fields(lngcol).name Next lngrow = 1 Do While (Not rstpubs.eof) And (lngrow <= DataCount) For lngcol = 0 To rstpubs.fields.count - 1.Offset(lngRow, lngcol).value = rstpubs.fields(lngcol).value Next SetGuage lngrow / DataCount * 15 StiLL StiLL StiLL 18 SQL ' VBA Public Sub SampleProgramDAO2() SampleProgramDAOFunc "Sheet2", 7, 2, "SELECT * FROM ", 0 End Sub ' DAO Function SampleProgramDAOFunc(SheetName As String, Y As Long, X As Integer, _ SQL As String, Limit As Long) As Boolean Dim strname As String ' Dim rngcell As Range, lngrow As Long, lngcol As Long Dim wrkodbc As DAO.Workspace Dim dbspubs As DAO.Database Dim rstpubs As DAO.Recordset Dim DataCount As Long ' On Error GoTo Sub_Err ' ResetGuage UserForm1.Show DoEvents Application.ScreenUpdating = False 'ODBCDirect Workspace Set wrkodbc = DAO.CreateWorkspace(" ", "admin", "", dbuseodbc) 'Database Set dbspubs = wrkodbc.opendatabase(" ", dbdrivercomplete, True) 'Recordset Set rstpubs = dbspubs.openrecordset(sql, dbopensnapshot, dbrunasync) ' Set rstpubs = dbspubs.openrecordset(sql, dbopendynaset, dbrunasync) 'Set NewQRY = db.createquerydef("", QString) ' rstpubs.movelast DataCount = rstpubs.recordcount rstpubs.movefirst ' RecordCount If DataCount = -1 Then DataCount = 0 Do While Not rstpubs.eof DataCount = DataCount + 1 rstpubs.movenext Loop rstpubs.movefirst End If ' Limit Limit (Limit =0 ) If Limit > 0 And DataCount > Limit Then DataCount = Limi lngrow = lngrow + 1 rstpubs.movenext Loop End With End With End If ' rstpubs.close dbspubs.close wrkodbc.close Set rstpubs = Nothing Set dbspubs = Nothing Set wrkodbc = Nothing ' ResetGuage UserForm1.Hide Application.ScreenUpdating = True SampleProgramDAOFunc = True Exit Function Sub_Err: ' ResetGuage UserForm1.Hide Application.ScreenUpdating = True MsgBox "" End Function VBA 137 ' Private Sub SetGuage(n As Integer) Dim i As Integer For i = 1 To n UserForm1.Controls("D" & Trim(i)).BackColor = &H800000 DoEvents Next i End Sub ' Public Sub ResetGuage() Dim i As Integer For i = 1 To 15 UserForm1.Controls("D" & Trim(i)).BackColor = &HE0E0E0

StiLL!! :!!

: StiLL! Excel OK Enter Enter!

C/S Excel(.XLS)() CSV Excel(.XLS) Excel(.XLS) Excel(.XLS) () CSV Excel(.XLS) Excel(.XLS)

StiLL DB

StiLL StiLL StiLL Standard Professional Developers StiLL

StiLL Developers Professional Professional SQL ok!

StiLL 89(StiLLDevelopers) Professional 79 StiLLDevelopers StiLLDevelopers Only StiLLDevelopers Only

StiLL Excel Excel StiLL Excel StiLL

StiLL StiLL StiLL StiLL StiLL StiLL StiLL StiLL

StiLL IT