[ ‰‚߂Ă̕û‚Ö | ˆê——(ÅVXV‡) | ‘S•¶ŒŸõ | ‰ß‹ŽƒƒO ]
@
wƒOƒ‰ƒt‚Ìì¬xikouj
A—ñ‚É‚PA‚QA‚RAEEE‚T‚O‚Æ2s‚©‚ç51s‚܂ŔԆA‚a—ñ‚É2s‚©‚ç51s‚܂Ŏ–¼A‚b‚©‚ç‚f—ñ‚Ì2s‚©‚ç51s‚܂Ō܋³‰È‚Ì“_”Aƒ{ƒ^ƒ“‚ð‰Ÿ‚·‚ƔԆ‚ð•·‚«A‚»‚̔Ԇ‚ÌŠw¶‚̌܋³‰È‚Ì“_”•ª•z‚ð•\‚·ƒOƒ‰ƒt‚ð•\ަ‚³‚¹‚½‚¢B‚±‚Ì—vŒ‚ð–ž‚½‚·ƒvƒƒOƒ‰ƒ€‚ð쬂µ‚½‚¢‚̂ł·B‚½‚¾AƒOƒ‰ƒt‚͉½‚ðŽg—p‚µ‚Ä‚à‚©‚Ü‚í‚È‚¢‚ªAo—ˆ‚邾‚¯‹³‰È‚Ì“¾ŽèE•s“¾Žè‚ª‚Í‚Á‚«‚蕪‚邿‚¤‚É•\ަ‚³‚¹‚é‚à‚Ì‚ð‘I‘ð‚µ‚½‚¢‚̂ł·B‚ǂȂ½‚©‹³‚¦‚Ä‚‚¾‚³‚¢B
ã‹L‚ÌŒ‚Å”»‚ç‚È‚¢•”•ª‚͂ǂ±‚Å‚µ‚傤‚©B •¶Í‚¾‚¯“ǂނƃvƒƒOƒ‰ƒ€‚Ìì¬ˆË—Š‚ÉŒ©‚¦‚Ä‚µ‚Ü‚¢‚Ü‚·B Ž©•ª‚łǂ±‚܂łâ‚Á‚ĉ½‚ª”»‚ç‚È‚¢‚©‚ðA‹ï‘Ì“I‚È—á‚ð‹“‚°‚ÄŽ¿–₵‚Ă݂Ă‚¾‚³‚¢B iì–숼‘¾˜Yj
ƒ†[ƒU[ƒtƒH[ƒ€‚Æ‚©ƒOƒ‰ƒt‚Í‚ ‚܂蓾ˆÓ‚¶‚á‚È‚¢‚ñ‚¾‚¯‚ÇAŽ©•ªŽ©g‚Ì—ûK‚Ì‚½‚ß‚É ì‚Á‚Ă݂܂µ‚½B‚æ‚©‚Á‚½‚çŽQl‚É‚µ‚Ă݂Ă‚¾‚³‚¢B ƒtƒH[ƒ€‚̃‚ƒWƒ…[ƒ‹‚É Option Explicit Sub MyChartLoad() With Worksheets("Sheet2") If .ChartObjects.Count = 0 Then MyChartAdd Range("B1", Range("G2")), Range("J4"), Range("O14") End If End With Set MyChart = Worksheets("Sheet2").ChartObjects(1).Chart MyChartName = "MyChart.gif" MyChart.Export MyChartName, "GIF" Me.Image1.Picture = LoadPicture(MyChartName) End Sub Private Sub CommandButton1_Click() Dim MyTbl As Range Worksheets("Sheet1").Range("A1:H1").Copy _ Destination:=Worksheets("Sheet2").Range("J1") With Worksheets("Sheet2") .Cells(2, 10).Value = Me.TextBox1.Value .Cells(2, 11).Value = Me.TextBox2.Value .Cells(2, 12).Value = Me.TextBox3.Value .Cells(2, 13).Value = Me.TextBox4.Value .Cells(2, 14).Value = Me.TextBox5.Value .Cells(2, 15).Value = Me.TextBox6.Value .Cells(2, 16).Value = Me.TextBox7.Value .Cells(2, 17).Value = Me.TextBox8.Value If .ChartObjects.Count = 0 Then MyChartAdd Range("B1", Range("G2")), Range("J4"), Range("O14") End If .Range("A1").CurrentRegion.ClearContents MyRow = Worksheets("Sheet1").Range("A65536").End(xlUp).Row Set MyTbl = Sheets("Sheet1").Range("A1:H" & MyRow) MyTbl.AdvancedFilter xlFilterCopy, .Range("J1:Q2"), .Range("A1"), True .Range("A:G").EntireColumn.AutoFit Me.TextBox1.Value = .Cells(2, 1).Value Me.TextBox2.Value = .Cells(2, 2).Value Me.TextBox3.Value = .Cells(2, 3).Value Me.TextBox4.Value = .Cells(2, 4).Value Me.TextBox5.Value = .Cells(2, 5).Value Me.TextBox6.Value = .Cells(2, 6).Value Me.TextBox7.Value = .Cells(2, 7).Value Me.TextBox8.Value = .Cells(2, 8).Value End With MyChartLoad End Sub Private Sub CommandButton2_Click() With Worksheets("Sheet2") If .ChartObjects.Count = 0 Then MyChartAdd Range("B1", Range("G2")), Range("J4"), Range("O14") End If End With ActiveCell.Select End Sub Private Sub CommandButton3_Click() Unload Me End Sub Private Sub CommandButton4_Click() Me.TextBox1.Value = "" Me.TextBox2.Value = "" Me.TextBox3.Value = "" Me.TextBox4.Value = "" Me.TextBox5.Value = "" Me.TextBox6.Value = "" Me.TextBox7.Value = "" Me.TextBox8.Value = "" End Sub Private Sub UserForm_Initialize() Dim i As Variant MyChartLoad Me.Image1.AutoSize = True With Worksheets("Sheet1") Me.Label1.Caption = .Cells(1, 1).Value Me.Label2.Caption = .Cells(1, 2).Value Me.Label3.Caption = .Cells(1, 3).Value Me.Label4.Caption = .Cells(1, 4).Value Me.Label5.Caption = .Cells(1, 5).Value Me.Label6.Caption = .Cells(1, 6).Value Me.Label7.Caption = .Cells(1, 7).Value Me.Label8.Caption = .Cells(1, 8).Value End With With Worksheets("Sheet2") Me.TextBox1.Value = .Cells(2, 1).Value Me.TextBox2.Value = .Cells(2, 2).Value Me.TextBox3.Value = .Cells(2, 3).Value Me.TextBox4.Value = .Cells(2, 4).Value Me.TextBox5.Value = .Cells(2, 5).Value Me.TextBox6.Value = .Cells(2, 6).Value Me.TextBox7.Value = .Cells(2, 7).Value Me.TextBox8.Value = .Cells(2, 8).Value End With End Sub Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode <> vbFormCode Then Cancel = 1 End If End Sub •W€ƒ‚ƒWƒ…[ƒ‹‚É Option Explicit Public MyRow As Long Public MyRng As Range Public MyChart As Chart Public MyChartName As String Sub MyChartAdd(MySouce As Range, MyChatLT As Range, MyWH As Range) Dim MyChatWH As Range With Worksheets("Sheet2") If .ChartObjects.Count = 0 Then Set MyChatWH = .Range(MyChatLT.Address, MyWH.Address) .Columns("J:O").ColumnWidth = 6 .ChartObjects.Add(MyChatLT.Left, MyChatLT.Top, MyChatWH.Width, MyChatWH.Height).Select .ChartObjects(1).Chart.ChartType = xlRadarMarkers .ChartObjects(1).Chart.SetSourceData Source:=MySouce, PlotBy:=xlRows With .ChartObjects(1) .Chart.Legend.Position = xlCorner .Chart.PlotArea.Top = 30 .Chart.PlotArea.Left = 20 .Chart.PlotArea.Width = .Width .Chart.PlotArea.Height = .Height With .Chart.ChartGroups(1).RadarAxisLabels .AutoScaleFont = False .Font.Size = 10 End With With .Chart.Axes(xlValue).TickLabels .AutoScaleFont = False .Font.Size = 10 End With End With .Shapes(1).Placement = xlFreeFloating End If End With End Sub http://ryusendo.no-ip.com/cgi-bin/upload/src/up0192.xls ’p‚¸‚©‚µ``r(^^;)‚Û‚è‚Û‚è iSoulManj
ƒSƒVƒSƒV(-__)(/_-)ŽO( K„DK) ƒXAƒXƒQ[! iì–숼‘¾˜Yj
ƒ}ƒNƒ‚ª‚Å‚«‚È‚¢Ž„‚Í‚±‚¤l‚¦‚Ü‚µ‚½B “Á’è‚̃Zƒ‹(a)‚ɔԆ‚ð“ü‚êA‚»‚ê‚ðŠî‚ÉA‚ ‚éƒZƒ‹”͈Í(b)‚É‚»‚Ìl‚̬тðVLOOKUP‚Å’Šo‚µ‚Ü‚·B (b)‚̃f[ƒ^‚ðŠî‚ÉAƒOƒ‰ƒt‚ðì‚è‚Ü‚·B Œã‚ÍA(a)‚ɔԆ‚ð“ü‚ê‚ê‚ÎAƒOƒ‰ƒt‚Í‚»‚Ìl‚Ì¬Ñ‚ðŽ¦‚µ‚Ü‚·B (‚¿‚イ‚Ë‚ñ)
ƒgƒsŽå‚³‚ñ‚ª•s݂ł·‚ªAŽö‹Æ‚ÍA‘±‚‚£```‚È‚Ÿ``‚ñ‚¿‚á‚Á‚Ä •¡”’Šo‚Å‚«‚½Žž‚É‘OŒã‚à•\ަ‚Å‚«‚邿‚¤‚Ƀoƒ@``ƒWƒ‡ƒ“‚ ‚Á‚Õ‚£‚µ‚Ü‚µ‚½‚Ÿ Š®‘S‚ÉŽ©ŒÈ–ž‘«‚Ì¢ŠE‚Å‚¥```‚Á‚·II ‚ł͂łÍA ƒtƒH[ƒ€ƒ‚ƒWƒ…[ƒ‹‚É Option Explicit Sub MyChartLoad() With Worksheets("Sheet2") If .ChartObjects.Count = 0 Then MyChartAdd Range("B1", Range("G2")), Range("J4"), Range("O14") End If End With Set MyChart = Worksheets("Sheet2").ChartObjects(1).Chart MyChartName = "MyChart.gif" On Error Resume Next MyChart.Export MyChartName, "GIF" Me.Image1.Picture = LoadPicture(MyChartName) On Error GoTo 0 End Sub Sub MyNext(ByVal x As Long) With Worksheets("Sheet2") If .ChartObjects.Count > 0 Then .ChartObjects(1).Chart.SeriesCollection(1).Values = .Range("C" & x & ":G" & x).Value .ChartObjects(1).Chart.SeriesCollection(1).Name = .Range("B" & x).Value End If End With MyChartLoad End Sub Sub MyInpt(ByVal x As Long) With Worksheets("Sheet2") Me.TextBox1.Value = .Cells(x, 1).Value Me.TextBox2.Value = .Cells(x, 2).Value Me.TextBox3.Value = .Cells(x, 3).Value Me.TextBox4.Value = .Cells(x, 4).Value Me.TextBox5.Value = .Cells(x, 5).Value Me.TextBox6.Value = .Cells(x, 6).Value Me.TextBox7.Value = .Cells(x, 7).Value Me.TextBox8.Value = .Cells(x, 8).Value End With End Sub Private Sub CommandButton1_Click() i = 2 Dim MyTbl As Range Worksheets("Sheet1").Range("A1:H1").Copy _ Destination:=Worksheets("Sheet2").Range("J1") With Worksheets("Sheet2") .Cells(2, 10).Value = Me.TextBox1.Value .Cells(2, 11).Value = Me.TextBox2.Value .Cells(2, 12).Value = Me.TextBox3.Value .Cells(2, 13).Value = Me.TextBox4.Value .Cells(2, 14).Value = Me.TextBox5.Value .Cells(2, 15).Value = Me.TextBox6.Value .Cells(2, 16).Value = Me.TextBox7.Value .Cells(2, 17).Value = Me.TextBox8.Value If .ChartObjects.Count = 0 Then MyChartAdd Range("B1", Range("G2")), Range("J4"), Range("O14") End If .Range("A1").CurrentRegion.ClearContents MyRow = Worksheets("Sheet1").Range("A65536").End(xlUp).Row Set MyTbl = Sheets("Sheet1").Range("A1:H" & MyRow) MyTbl.AdvancedFilter xlFilterCopy, .Range("J1:Q2"), .Range("A1"), True .Range("A:G").EntireColumn.AutoFit MyInpt i .ChartObjects(1).Chart.SeriesCollection(1).Name = .Range("B2").Value End With MyChartLoad End Sub Private Sub CommandButton2_Click() With Worksheets("Sheet2") If .ChartObjects.Count = 0 Then MyChartAdd Range("B1", Range("G2")), Range("J4"), Range("O14") End If End With ActiveCell.Select End Sub Private Sub CommandButton3_Click() Unload Me End Sub Private Sub CommandButton4_Click() MyInpt Worksheets("Sheet2").Range("A65536").End(xlUp).Offset(1).Row End Sub Private Sub CommandButton5_Click() i = i + 1 With Worksheets("Sheet2") If Not IsEmpty(.Cells(i, 1)) Then MyNext i MyInpt i Else MsgBox "ŽŸ‚Í‚ ‚è‚Ü‚¹‚ñ" i = .Range("A65536").End(xlUp).Row End If End With End Sub Private Sub CommandButton6_Click() i = i - 1 If i > 1 Then MyNext i MyInpt i Else MsgBox "‘O‚Í‚ ‚è‚Ü‚¹‚ñ" i = 2 End If End Sub Private Sub UserForm_Initialize() i = 2 MyChartLoad Me.Image1.AutoSize = True With Worksheets("Sheet1") Me.Label1.Caption = .Cells(1, 1).Value Me.Label2.Caption = .Cells(1, 2).Value Me.Label3.Caption = .Cells(1, 3).Value Me.Label4.Caption = .Cells(1, 4).Value Me.Label5.Caption = .Cells(1, 5).Value Me.Label6.Caption = .Cells(1, 6).Value Me.Label7.Caption = .Cells(1, 7).Value Me.Label8.Caption = .Cells(1, 8).Value End With With Worksheets("Sheet2") MyInpt i End With End Sub Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode <> vbFormCode Then Cancel = 1 End If End Sub •W€ƒ‚ƒWƒ…[ƒ‹‚É Option Explicit Public MyRow As Long Public MyRng As Range Public MyChart As Chart Public MyChartName As String Public i As Long Sub MyChartAdd(ByVal MySouce As Range, ByVal MyChatLT As Range, ByVal MyWH As Range) Dim MyChatWH As Range With Worksheets("Sheet2") If .ChartObjects.Count = 0 Then Set MyChatWH = .Range(MyChatLT.Address, MyWH.Address) .Columns("J:O").ColumnWidth = 6 .ChartObjects.Add(MyChatLT.Left, MyChatLT.Top, MyChatWH.Width, MyChatWH.Height).Select .ChartObjects(1).Chart.ChartType = xlRadarMarkers .ChartObjects(1).Chart.SetSourceData Source:=MySouce, PlotBy:=xlRows With .ChartObjects(1) .Chart.Legend.Position = xlCorner .Chart.PlotArea.Top = 30 .Chart.PlotArea.Left = 20 .Chart.PlotArea.Width = .Width .Chart.PlotArea.Height = .Height With .Chart.ChartGroups(1).RadarAxisLabels .AutoScaleFont = False .Font.Size = 10 End With With .Chart.Axes(xlValue).TickLabels .AutoScaleFont = False .Font.Size = 10 End With End With .Shapes(1).Placement = xlFreeFloating End If End With End Sub ƒV[ƒg2‚É Private Sub Worksheet_Activate() ActiveCell.Select End Sub ThisBook‚É Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean) Cancel = True UserForm1.Show 0 Target.Select End Sub http://ryusendo.no-ip.com/cgi-bin/upload/src/up0193.xls ‚Ç‚¤‚Å‚µ‚傤H v(=¿_¿=)v iSoulManj
ikouj
[ ˆê——(ÅVXV‡) ]
YukiWiki 1.6.7 Copyright (C) 2000,2001 by Hiroshi Yuki.
Modified by kazu.