¼ÐÃD:
¤@Ó¬d¸ßªºªí³æ,
[¥´¦L¥»¶]
§@ªÌ:
hong912
®É¶¡:
2012-9-15 11:24
¼ÐÃD:
¤@Ó¬d¸ßªºªí³æ,
¦Uª©¥D¤Î¦U¤j¤j, ¦w¦n, ¤p§Ìªì¦¸¨ì³o½×¾Â, ¥çªì¦¸µo°Ý, §Æ±æ¯à±o¨ì¤j¤j¦^À³, §ó§Æ±æ±q¦^À³¤¤¾Ç²ß, ²{§âÀɮפW¶Ç, ¥ý¦æÁ¹L¦U¦ì, ÁÂÁÂ!!
[attach]12507[/attach]
§@ªÌ:
GBKEE
®É¶¡:
2012-9-15 17:16
¦^´_
1#
hong912
UserFormªºµ{¦¡½X
Option Explicit '¦b¼Ò²Õ¼h¦¸¤¤±j¢¨CÓ¦b¼Ò²ÕùتºÅܼƳ£¥²¶·©ú½Tªº«Å§i¡C
Private Const ½s¸¹ = 3 '¸ê®Æ®wªºÄæ¦ì¦C¸¹
Private Const ThePicture = "d:\ttt.gif" '³]¥ß¶×¥X¹Ï¤ùªº¸ô®|ÀɦW
Dim Ar(10), Sh As Worksheet
'Dim Ar()
Private Sub UserForm_Initialize() 'ªí³æªì©l¤Æªº¹w³]¨Æ¥óµ{§Ç
Dim I As Integer
Set Sh = Sheets("Sheet1") '¸ê®Æ®wªº¤u§@ªí
With Sh
ComboBox1.List = .Range("a4", .[a4].End(xlDown)).Value '«ü©w ComboBox1ªº¤º®e
End With
'Dim Ar()®É¥i¥Î¤U¦¡
'Ar = Array(TextBox1, TextBox2, TextBox3, TextBox4, TextBox5, TextBox6, TextBox7, TextBox8, TextBox9, TextBox10, TextBox11)
For I = 0 To UBound(Ar)
Set Ar(I) = Me.Controls("TextBox" & I + 1) '°}¦Cªº¤¸¯À³]¬°TextBox (ª«¥ó)
Next
Image1.PictureSizeMode = fmPictureSizeModeStretch
'°Ñ¼ÆfmPictureSizeModeStretch= 1 :½Õ¾ã¹Ï¤ù¤j¤p¥H¶ñº¡ªí³æ©Î¬¡¶¡A¦¹³]©w·|³y¦¨¹Ï¤ùªº¤ô¥»P««ª½¤è¦V¤ñ¨Ò³Q§á¦±¡C
End Sub
Private Sub ComboBox1_Change()
Dim Sp As Picture, I As Integer
If ComboBox1.ListIndex > -1 Then '¿ï¾Ü ComboBox1ªº¤º®e
For I = 0 To UBound(Ar)
Ar(I).Text = Sh.Cells(½s¸¹ + ComboBox1, I + 2)
Next
End If
With Sh
For Each Sp In .Pictures '´M§äNÄ椤ªº¹Ï¤ù,½Æ»s¤§
If Sp.TopLeftCell.Address(0, 0) = "N" & ½s¸¹ + ComboBox1 Then Sp.Copy: Exit For
Next
'§Q¥Î¹Ïªí¶×¥X¦sÀÉ
With .ChartObjects.Add(1, 1, Sp.Width, Sp.Height) '·s¼W ¹Ïªí
.Chart.Paste '¶K¤W ¹Ï¤ù
.Chart.Export Filename:=ThePicture '¶×¥X ¹Ï¤ù
.Delete '§R°£ ¹Ïªí
End With
End With
Image1.Picture = LoadPicture(ThePicture) 'Image1 «ü©w¹Ï¤ù
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) 'ªí³æµ´§ô®É ¹w³]¨Æ¥óµ{§Ç
If Dir(ThePicture) <> "" Then Kill ThePicture '§R°£ ¶×¥Xªº¹Ï¤ù
End Sub
½Æ»s¥N½X
§@ªÌ:
hong912
®É¶¡:
2012-9-15 18:46
¦^´_
2#
GBKEE
GBKEE, ª©¤j, ¦w¦n,
·PÁ¦^À³, ¤w¸Õ¥Î, ¦³¤p³\°ÝÃD, ¦ý·|¸Õ¦æ¸Ñ¨M, Y¤£¦¨¥\, «K¦A½Ð±Ð, ¯uªº°J¤ß·PÁÂÁÂ, ¯¬°·±d§Ö¼Ö.. ·P®¦..
§@ªÌ:
hong912
®É¶¡:
2012-9-16 14:28
GBKEE ª©¤j¦n,
¤j¤jªº½s¼g«Ü°ª²`, §Æ±æ¯à±q¤¤¾Ç²ß, ²{¦³2Ó°ÝÃD½Ð±Ð, ªþ¥ó, ¤º¦³»¡©ú, ¥ý¦æÁ¹L¤j¤j..¯¬§Ö¼Ö!!
[attach]12515[/attach]
§@ªÌ:
GBKEE
®É¶¡:
2012-9-16 16:07
¦^´_
4#
hong912
¸Õ¸Õ¬Ý
Private Sub UserForm_Click() '¦bªí³æ¨S¦³±±¨î¶µªº¦a¤è«ö¤U·Æ¹«¥ªÁ䪺¨Æ¥ó
'1·í¹Ï¤ù¶Ç¦^ªí³æ, ¹Ï¤ù¤£²M, ¥i¦³¤è¿ì¸Ñ¨M ':קïÅã¥ÜI´º¹Ï¤ùªº¤è¦¡
With Image1
If .PictureSizeMode = fmPictureSizeModeClip Then
.PictureSizeMode = fmPictureSizeModeStretch
ElseIf .PictureSizeMode = fmPictureSizeModeStretch Then
.PictureSizeMode = fmPictureSizeModeZoom
ElseIf .PictureSizeMode = fmPictureSizeModeZoom Then
.PictureSizeMode = fmPictureSizeModeClip
End If
End With
' [ ±` ¼Æ] [È] [ »¡ ©ú]
'fmPictureSizeModeClip 0 µô±¼¹Ï¤ù¦h¥X¨Óªº³¡¤À ( ¹w³] )¡C
'fmPictureSizeModeStretch 1 ½Õ¾ã¹Ï¤ù¤j¤p¥H¶ñº¡ªí³æ©Î¬¡¶¡A¦¹³]©w·|³y¦¨¹Ï¤ùªº¤ô¥»P««ª½¤è¦V¤ñ¨Ò³Q§á¦±¡C
'fmPictureSizeModeZoom 3 ©ñ¤j¹Ï¤ù¡A¦ý¤£§á¦±¹Ï¤ù¤ô¥»P««ª½¤è¦Vªº¤ñ¨Ò¡C
End Sub
Private Sub ComboBox1_Change()
Dim Sp As Picture, I As Integer
If ComboBox1.ListIndex > -1 Then '¿ï¾Ü ComboBox1ªº¤º®e
For I = 0 To UBound(Ar)
If I <> UBound(Ar) Then
Ar(I).Text = Sh.Cells(½s¸¹ + ComboBox1, I + 2)
Else
'2, ¦b²Ä11ÓTextBox11ª«¥ó¤¤, ¥i§_°µ¨ì§âsheet1²Ä11Äæ¤Î12Äæ¦X«÷Åã¥Ü,¦p123aaa
Ar(I).Text = Sh.Cells(½s¸¹ + ComboBox1, I + 2) & Sh.Cells(½s¸¹ + ComboBox1, I + 3)
End If
Next
End If
With Sh
For Each Sp In .Pictures '´M§äNÄ椤ªº¹Ï¤ù,½Æ»s¤§
If Sp.TopLeftCell.Address(0, 0) = "N" & ½s¸¹ + ComboBox1 Then Sp.Copy: Exit For
Next
'§Q¥Î¹Ïªí¶×¥X¦sÀÉ
With .ChartObjects.Add(1, 1, Sp.Width, Sp.Height) '·s¼W ¹Ïªí
.Chart.Paste '¶K¤W ¹Ï¤ù
.Chart.Export Filename:=ThePicture '¶×¥X ¹Ï¤ù
.Delete '§R°£ ¹Ïªí
End With
End With
Image1.Picture = LoadPicture(ThePicture) 'Image1 «ü©w¹Ï¤ù
End Sub
½Æ»s¥N½X
§@ªÌ:
hong912
®É¶¡:
2012-9-16 21:39
¦^´_
5#
GBKEE
°J¤ß·PÁÂGBKEEª©¤j, ÁÂÁÂ, ¯¬Ä@§Ö¼Ö..
§@ªÌ:
hong912
®É¶¡:
2012-9-21 16:20
GBKEEª©¤j, ¦w¦n
¤p§Ì¦³°ÝÃD¦A«×·Ð³Òª©¤j, ¦b¤j¤j¼gªºµ{¦¡¤¤, ¤£ª¾¬O¦óì¦],
¦bªí³æ¤U©Ô½s¸¹¤¤, ¿ï¾Ü¤F½s¸¹, ¦ý却¥X²{13¤Î1004¿ù»~, ¦P®É¹Ï¤ù¥ç¤£¯àÅã¥Ü, Àµ½Ð¤j¤j¨ó§U,
¦A«×·Ð³Ò, ·q½Ð¤j¤j¨£½Ì, ³Ì«á¯¬Ä@§Ö¼Ö
ªþ¥ó [attach]12580[/attach]
§@ªÌ:
mark15jill
®É¶¡:
2012-9-21 16:51
QA1 ComboBox1 ¬O¤å¦r«¬ºAÁÙ¬O¼Æ¦r«¬ºA.???
§@ªÌ:
GBKEE
®É¶¡:
2012-9-21 17:03
¦^´_
7#
hong912
ComboBox1 ¼W¥[¤@Ä椺®e
Private Sub UserForm_Initialize() 'ªí³æªì©l¤Æªº¹w³]¨Æ¥óµ{§Ç
Dim I As Integer, e As Range
Set Sh = Sheets("Sheet1") '¸ê®Æ®wªº¤u§@ªí
With Sh
For Each e In .Range("a4", .[a4].End(xlDown)) '«ü©w ComboBox1ªº¤º®e
With ComboBox1 'ComboBox1.ColumnCount=1 ¨t²Î¹w³] Åã¥Ü1Äæ¸ê®Æ
' .ColumnCount=2 '¥iÅã¥Ü2Äæ¸ê®Æ
.AddItem
'AddItem ¤èªk ¦b¤@Ó³æ¦C²M³æ¤è¶ô©Î¤U©Ô¦¡²M³æ¤è¶ô¤¤¥[¤J¤@Ó¶µ¥Ø¡C¦b¤@Ó¦h¦C²M³æ¤è¶ô©Î¤U©Ô¦¡²M³æ¤è¶ô¤¤¥[¤J¤@¦æ¡C
.List(.ListCount - 1, 0) = e 'ComboBox²Ä1Äæ : ¦r¦ê
.List(.ListCount - 1, 1) = e.Row - ½s¸¹ 'ComboBox²Ä2Äæ : ¦C¸¹ 1 - ....
End With
Next
End With
For I = 0 To UBound(Ar)
Set Ar(I) = Me.Controls("TextBox" & I + 1) '°}¦Cªº¤¸¯À³]¬°TextBox (ª«¥ó)
Next
Image1.PictureSizeMode = fmPictureSizeModeStretch
'°Ñ¼ÆfmPictureSizeModeStretch= 1 :½Õ¾ã¹Ï¤ù¤j¤p¥H¶ñº¡ªí³æ©Î¬¡¶¡A¦¹³]©w·|³y¦¨¹Ï¤ùªº¤ô¥»P««ª½¤è¦V¤ñ¨Ò³Q§á¦±¡C
End Sub
Private Sub ComboBox1_Change()
Dim Sp As Picture, I As Integer, R As Integer
If ComboBox1.ListIndex > -1 Then '¿ï¾Ü ComboBox1ªº¤º®e
R = ComboBox1.List(ComboBox1.ListIndex, 1) 'ComboBox²Ä2Äæ : ¦C¸¹ 1....
For I = 0 To UBound(Ar)
If I <> UBound(Ar) Then
Ar(I).Text = Sh.Cells(½s¸¹ + R, I + 2) '¦C¸¹ : ½s¸¹ + R
Else
'2, ¦b²Ä11ÓTextBox11ª«¥ó¤¤, ¥i§_°µ¨ì§âsheet1²Ä11Äæ¤Î12Äæ¦X«÷Åã¥Ü,¦p123aaa
Ar(I).Text = Sh.Cells(½s¸¹ + R, I + 2) & Sh.Cells(½s¸¹ + R, I + 3)
End If
Next
End If
With Sh
For Each Sp In .Pictures '´M§äNÄ椤ªº¹Ï¤ù,½Æ»s¤§
If Sp.TopLeftCell.Address(0, 0) = "N" & ½s¸¹ + R Then Sp.Copy: Exit For
Next
'§Q¥Î¹Ïªí¶×¥X¦sÀÉ
With .ChartObjects.Add(1, 1, Sp.Width, Sp.Height) '·s¼W ¹Ïªí
.Chart.Paste '¶K¤W ¹Ï¤ù
.Chart.Export Filename:=ThePicture '¶×¥X ¹Ï¤ù
.Delete '§R°£ ¹Ïªí
End With
End With
Image1.Picture = LoadPicture(ThePicture) 'Image1 «ü©w¹Ï¤ù
End Sub
½Æ»s¥N½X
§@ªÌ:
hong912
®É¶¡:
2012-9-21 17:39
¦^´_
9#
GBKEE
·PÁÂGBKEEª©¤j¦A«×¦^À³, «Ý©ñ¤u¦^®a¤~¯à¸Õ¥Î, ¦ýı±o§Y®É¦^À³¤Î»¡·PÁÂ, ¬O¥²¶·, ¦]³o¬O¤@ºØ§»ª, ¦A»¡Án·PÁÂ, ÁÂÁÂ!!
§@ªÌ:
hong912
®É¶¡:
2012-9-21 23:28
¦^´_
9#
GBKEE
GBKEEª©¤j, ¦n ¥ý¦æÁ¹Lª©¤j¦^À³, ¦ý¥X²{¤U¦C°ÝÃD,
µ{¦¡¶K¨ìÀɮפu§@¤W, ±q¤U©Ô¿ï¾Ü½s¸¹«á, ( For Each Sp In .Pictures '´M§äNÄ椤ªº¹Ï¤ù,½Æ»s¤§ ), ³o¦æÅã¥Ü¶À¦â, ¨ì©³°ÝÃD¦b©óþ¸Ì, §Æ±æ¤j¤j¯à¨ó§U, ÁÂÁÂ
Private Sub ComboBox1_Change()
Dim Sp As Picture, I As Integer, R As Integer
If ComboBox1.ListIndex > -1 Then '¿ï¾Ü ComboBox1ªº¤º®e
R = ComboBox1.List(ComboBox1.ListIndex, 1) 'ComboBox²Ä2Äæ : ¦C¸¹ 1....
For I = 0 To UBound(Ar)
If I <> UBound(Ar) Then
Ar(I).Text = Sh.Cells(½s¸¹ + R, I + 2) '¦C¸¹ : ½s¸¹ + R
Else
'2, ¦b²Ä11ÓTextBox11ª«¥ó¤¤, ¥i§_°µ¨ì§âsheet1²Ä11Äæ¤Î12Äæ¦X«÷Åã¥Ü,¦p123aaa
Ar(I).Text = Sh.Cells(½s¸¹ + R, I + 2) & Sh.Cells(½s¸¹ + R, I + 3)
End If
Next
End If
With Sh
For Each Sp In .Pictures '´M§äNÄ椤ªº¹Ï¤ù,½Æ»s¤§
If Sp.TopLeftCell.Address(0, 0) = "N" & ½s¸¹ + R Then Sp.Copy: Exit For
Next
'§Q¥Î¹Ïªí¶×¥X¦sÀÉ
With .ChartObjects.Add(1, 1, Sp.Width, Sp.Height) '·s¼W ¹Ïªí
.Chart.Paste '¶K¤W ¹Ï¤ù
.Chart.Export Filename:=ThePicture '¶×¥X ¹Ï¤ù
.Delete '§R°£ ¹Ïªí
End With
End With
Image1.Picture = LoadPicture(ThePicture) 'Image1 «ü©w¹Ï¤ù
End Sub
§@ªÌ:
Hsieh
®É¶¡:
2012-9-22 00:12
¦^´_
11#
hong912
¸Õ¸Õ¬Ý¤U¦Cµ{¦¡½X
Dim PicAr() As Picture '¹Ï¤ù°}¦C
Private Const fs = "E:\temp.jpg" '¼È¦s¹Ï¤ù¥Ø¿ý¦ì¸m
Private Const r = 4 '¸ê®Æ°_©l¦C¸¹
Private Sub ComboBox1_Change() '¿ï¾Ü½s¸¹¨Æ¥ó
Dim k%, i%
With ComboBox1
k = .ListIndex '¤U©Ô¿ï³æ¿ï¨ú¦ì¸m
For i = 1 To 11
Controls("TextBox" & i).Text = IIf(i = 11, .List(k, i) & .List(k, i + 1), .List(k, i)) '¤å¦r¤è¶ô¼g¤J
Next
End With
PicAr(k).CopyPicture '½Æ»s¹Ï¤ù
With Sheet1.ChartObjects.Add(, , PicAr(k).Width, PicAr(k).Height) '·s¼W¹Ïªí
.Chart.Paste '¶K¤W¹Ï¤ù
.Chart.Export fs '¥H¹Ïªí¶×¦¨¹Ï¤ù
Image1.Picture = LoadPicture(fs) '¸ü¤J¹Ï¤ù
.Delete '§R°£¹Ïªí
End With
End Sub
Private Sub UserForm_Initialize() 'ªí³æªì©l¤Æ
Dim Pic As Picture
With Sheet1
ReDim PicAr(.Pictures.Count)
For Each Pic In .Pictures '±N¨CӹϤù¸m¤J°}¦C
Set PicAr(Pic.TopLeftCell.Row - r) = Pic
Next
ComboBox1.List = .Range("A4", .[A4].End(xlDown).Offset(, 12)).Value '¤U©Ô²M³æ¤º®e
End With
Image1.PictureSizeMode = fmPictureSizeModeStretch '¹Ï¤ù¸ü¤Jªº«¬ºA
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) 'Ãö³¬ªí³æ
If Dir(fs) <> "" Then Kill fs '§R°£¼È¦s¹Ï¤ùÀÉ®×
End Sub
½Æ»s¥N½X
[attach]12586[/attach]
§@ªÌ:
317
®É¶¡:
2012-9-22 07:33
¦^´_
12#
Hsieh
Hsiehª©¤j, ¦±á
ÁÂÁ¦^À³, ¤@¦°_§É, ¬Ý¨ì¦^À³, ªº½T«Ü°ª¿³, ¦ý»°¶}¤u, ®É¶¡¢¤Á, n¨ì©]±ß¤~¯à¸Õ¥Î, ·PÁ¦^À³, ¯¬Ä@§Ö¼Ö, ÁÂÁÂ!!
§@ªÌ:
hong912
®É¶¡:
2012-9-22 07:43
¦^´_
12#
Hsieh
¥i¥H¹B¦æ¤F, ÁÂÁ¤j¤j
§@ªÌ:
GBKEE
®É¶¡:
2012-9-22 14:30
¦^´_
11#
hong912
9# ªºµ{¦¡½X, ¬O¨Ì¾Ú§A7# ªþÀÉק諸,§Ú°õ¦æ®É¨Ã¨S¦³§A´£¨ìªº¿ù»~
½Ð¬d¬Ý§AÀɮפ¤ªº¹Ï¤ù¬O§_¦³²¾°Ê,Â÷¶}7# ªþÀɪº¦ì¸m.
§@ªÌ:
hong912
®É¶¡:
2012-9-22 22:28
¦^´_
15#
GBKEE
GBKEEª©¤j,
ÁÂÁ¤j¤j¦A«×´£¥Ü, ªº½T³Ìªì¨S¬°·N³Ì¤U¦CÀx¦s®æ¦³¤G¦C¬O¨S¦³¹Ï¤ù, ¦hÁ¤j¤j´£¥Ü, ·P®¦..ÁÂÁÂ!!
§@ªÌ:
317
®É¶¡:
2012-9-23 10:02
¬Q±ß¸Õ¹L, «Ü¦X¥Î, ¥ýÁ¹Lµo°Ýªº¼Ó¥D,
¦b¦¹§ó¦VCBKEE¤ÎHsieh两¦ì¶W¯Å¤j¤jPÁÂ, ·PÁÂ两¦ìªø¤[ªº±Ð¾É, ¹L¥h¤Î²{¦b, ¥O¤p©f»â·|¤F¤£¤p,
ÁÂÁÂÁÂ!!
§@ªÌ:
hong912
®É¶¡:
2012-9-23 18:44
GBKEE ª©¤j, ¦w¦n
³o两¤Ñ²Ó¬Ý¤j¤j©Ò¼gªºµ{¦¡, ¦Ñ¹ê»¡, ¥uª¾¹D¬OÂIÂI, ¦P®É¥çµo²{¤@ӹϤù°ÝÃD,
§Æ±æ¤j¤j¯à¨ó§U, ¦b¤j¤jªºµ{¦¡¤¤¬O¥i¥H¹B¦æ, ¦ý·í¹J¤W¤@¨Ç¤£¤ä´©ªº¹Ï¤ù®æ¦¡
¦ppng, «K·|¼u¥X¤U¦C´£¥Ü,
°õ¦æ¶¥¬q¿ù»~91, ¨S¦³³]©wª«¥óÅܼƩÎwith°Ï¶ôÅܼÆ,
¤j¤j, ¥i§_קïµ{¦¡¦Ü¥ô¦ó¹Ï¤ù®æ¦¡³£¥i¨Ï¥Î, ·Ð³Ò¤j¤j, ¦b¦¹¥ý¦æÁÂÁÂÁÂ!!
Option Explicit '¦b¼Ò²Õ¼h¦¸¤¤±j¢¨CÓ¦b¼Ò²ÕùتºÅܼƳ£¥²¶·©ú½Tªº«Å§i¡C
Private Const ½s¸¹ = 3 '¸ê®Æ®wªºÄæ¦ì¦C¸¹
Private Const ThePicture = "d:\ttt.gif" '³]¥ß¶×¥X¹Ï¤ùªº¸ô®|ÀɦW
Dim Ar(10), Sh As Worksheet
Private Sub UserForm_Initialize() 'ªí³æªì©l¤Æªº¹w³]¨Æ¥óµ{§Ç
Dim I As Integer, e As Range
Set Sh = Sheets("Sheet1") '¸ê®Æ®wªº¤u§@ªí
With Sh
For Each e In .Range("a4", .[a4].End(xlDown)) '«ü©w ComboBox1ªº¤º®e
With ComboBox1 'ComboBox1.ColumnCount=1 ¨t²Î¹w³] Åã¥Ü1Äæ¸ê®Æ
' .ColumnCount=2 '¥iÅã¥Ü2Äæ¸ê®Æ
.AddItem
'AddItem ¤èªk ¦b¤@Ó³æ¦C²M³æ¤è¶ô©Î¤U©Ô¦¡²M³æ¤è¶ô¤¤¥[¤J¤@Ó¶µ¥Ø¡C¦b¤@Ó¦h¦C²M³æ¤è¶ô©Î¤U©Ô¦¡²M³æ¤è¶ô¤¤¥[¤J¤@¦æ¡C
.List(.ListCount - 1, 0) = e 'ComboBox²Ä1Äæ : ¦r¦ê
.List(.ListCount - 1, 1) = e.Row - ½s¸¹ 'ComboBox²Ä2Äæ : ¦C¸¹ 1 - ....
End With
Next
End With
For I = 0 To UBound(Ar)
Set Ar(I) = Me.Controls("TextBox" & I + 1) '°}¦Cªº¤¸¯À³]¬°TextBox (ª«¥ó)
Next
Image1.PictureSizeMode = fmPictureSizeModeStretch
'°Ñ¼ÆfmPictureSizeModeStretch= 1 :½Õ¾ã¹Ï¤ù¤j¤p¥H¶ñº¡ªí³æ©Î¬¡¶¡A¦¹³]©w·|³y¦¨¹Ï¤ùªº¤ô¥»P««ª½¤è¦V¤ñ¨Ò³Q§á¦±¡C
End Sub
Private Sub UserForm_Click() '¦bªí³æ¨S¦³±±¨î¶µªº¦a¤è«ö¤U·Æ¹«¥ªÁ䪺¨Æ¥ó
'1·í¹Ï¤ù¶Ç¦^ªí³æ, ¹Ï¤ù¤£²M, ¥i¦³¤è¿ì¸Ñ¨M ':קïÅã¥ÜI´º¹Ï¤ùªº¤è¦¡
With Image1
If .PictureSizeMode = fmPictureSizeModeClip Then
.PictureSizeMode = fmPictureSizeModeStretch
ElseIf .PictureSizeMode = fmPictureSizeModeStretch Then
.PictureSizeMode = fmPictureSizeModeZoom
ElseIf .PictureSizeMode = fmPictureSizeModeZoom Then
.PictureSizeMode = fmPictureSizeModeClip
End If
End With
' [ ±` ¼Æ] [È] [ »¡ ©ú]
'fmPictureSizeModeClip 0 µô±¼¹Ï¤ù¦h¥X¨Óªº³¡¤À ( ¹w³] )¡C
'fmPictureSizeModeStretch 1 ½Õ¾ã¹Ï¤ù¤j¤p¥H¶ñº¡ªí³æ©Î¬¡¶¡A¦¹³]©w·|³y¦¨¹Ï¤ùªº¤ô¥»P««ª½¤è¦V¤ñ¨Ò³Q§á¦±¡C
'fmPictureSizeModeZoom 3 ©ñ¤j¹Ï¤ù¡A¦ý¤£§á¦±¹Ï¤ù¤ô¥»P««ª½¤è¦Vªº¤ñ¨Ò¡C
End Sub
Private Sub ComboBox1_Change()
Dim Sp As Picture, I As Integer, R As Integer
If ComboBox1.ListIndex > -1 Then '¿ï¾Ü ComboBox1ªº¤º®e
R = ComboBox1.List(ComboBox1.ListIndex, 1) 'ComboBox²Ä2Äæ : ¦C¸¹ 1....
For I = 0 To UBound(Ar)
If I <> UBound(Ar) Then
Ar(I).Text = Sh.Cells(½s¸¹ + R, I + 2) '¦C¸¹ : ½s¸¹ + R
Else
'2, ¦b²Ä11ÓTextBox11ª«¥ó¤¤, ¥i§_°µ¨ì§âsheet1²Ä11Äæ¤Î12Äæ¦X«÷Åã¥Ü,¦p123aaa
Ar(I).Text = Sh.Cells(½s¸¹ + R, I + 2) & Sh.Cells(½s¸¹ + R, I + 3)
End If
Next
End If
With Sh
For Each Sp In .Pictures '´M§äNÄ椤ªº¹Ï¤ù,½Æ»s¤§
If Sp.TopLeftCell.Address(0, 0) = "N" & ½s¸¹ + R Then Sp.Copy: Exit For
Next
'§Q¥Î¹Ïªí¶×¥X¦sÀÉ
With .ChartObjects.Add(1, 1, Sp.Width, Sp.Height) '·s¼W ¹Ïªí
.Chart.Paste '¶K¤W ¹Ï¤ù
.Chart.Export Filename:=ThePicture '¶×¥X ¹Ï¤ù
.Delete '§R°£ ¹Ïªí
End With
End With
Image1.Picture = LoadPicture(ThePicture) 'Image1 «ü©w¹Ï¤ù
End Sub
§@ªÌ:
Hsieh
®É¶¡:
2012-9-23 23:41
¦^´_
18#
hong912
½Ð¤W¶ÇµLªkŪ¨úªº°ÝÃDÀÉ®×
À³¸Ó¥un¬O¯à´¡¤J¨ì¤u§@ªí¤¤ªº¹Ï¤ù§¡¥iŪ¨ú¤~¹ï
§@ªÌ:
hong912
®É¶¡:
2012-9-24 08:15
¦^´_
19#
Hsieh
Hsiehª©¤j, ¦±á
¬Q©]¦Û¦æ¬ã¨s¤F«Ü¤[, ¥Î¬Û¾÷¤Î¤â¾÷Äá¼v¤F·Ó¤ù¤Î¤Wºô¤U¸ü¹Ï¤ù¸Õ¸Õ, ¨Ã¨S¦³°ÝÃD, ¦A¤F¸Ñ¹Ï¤ù®æ¦¡, ¤]¦³¤£¦P®æ¦¡, ¦P¼Ë¦a¯à¶Ç¦^¹Ï¤ù, «á¨Ó¤p§Ì§â¤£¯à¶Ç¦^ªº¹Ï¤ù°Å¤U©ñ¶i¹Ï¹³¤¤¤ß, ¦A±q¹Ï¹³¤¤¤ß¶K¦^Àɮפº, °ÝÃD³º¸Ñ¨M,
Á¹L¤j¤j¦^À³, ·P®¦..
§@ªÌ:
©P¤j°¶
®É¶¡:
2012-9-25 21:54
¦^´_
12#
Hsieh
Hsiehª©¥D,
¤µ¤Ñ¦A¨ì³o½×¾Â, ¬Ý¨ì³o½g¤å³¹, ¤U¸ü¤F§Æ±æ¤é«á¯à±q¤¤¾Ç²ß,
¦³¤@°ÝÃD·Q½Ð±Ðª©¤j, ·í±q¤U©Ô¤¤¿ï©w½s¸¹, «K¥X²{°õ¦æ¿ù»~449, µ{¦¡¤¤¦³¶À¦â¿ù»~³B, ¤j¤j, ¨ì©³¬O¦ó°ÝÃD, ½Ð±Ð..·P®¦..
[attach]12606[/attach]
§@ªÌ:
Hsieh
®É¶¡:
2012-9-25 22:31
¦^´_
21#
©P¤j°¶
¨Sª`·N¨ì2003¥H¥~ª©¥»¡A¹Ïªí·s¼W®É¡A¤£¥i©¿²¤left»Ptop¤Þ¼Æ
With Sheet1.ChartObjects.Add(
1, 1
, PicAr(k).Width, PicAr(k).Height)
§@ªÌ:
©P¤j°¶
®É¶¡:
2012-9-25 22:56
¦^´_
22#
Hsieh
ÁÂÁ¤j¤j«ü¾É, §âµ{¦¡½X´«¤W, °ÝÃD«K¥X²{¤U¦C±¡ªp,
°õ¦æ¿ù»~¶¥¬q76, Chart.Export fs '¥H¹Ïªí¶×¦¨¹Ï¤ù
½Ð¤j¤j±Ð¾É..·P®¦..
§@ªÌ:
Hsieh
®É¶¡:
2012-9-25 23:04
¦^´_
23#
©P¤j°¶
¥i¯à¬O
Private Const fs = "E:\temp.jpg" '¼È¦s¹Ï¤ù¥Ø¿ý¦ì¸m
³oӥؿý¦ì¸m¤£¦s¦b
§@ªÌ:
©P¤j°¶
®É¶¡:
2012-9-25 23:38
¥»©«³Ì«á¥Ñ ©P¤j°¶ ©ó 2012-9-25 23:40 ½s¿è
¦^´_
24#
Hsieh
¤j¤j, ´N·Ð³Ò¤F, ¦ý¦³¤@Ó²{¹³, ·í¿ï©w½s¸¹«á, «K¥X²{, °õ¦æ¿ù»~¶¥¬q76, Chart.Export fs '¥H¹Ïªí¶×¦¨¹Ï¤ù, ¦ý¹Ï¤ù却¶K¤W¤u§@ªí1, a1¦ì¸m, ²{¤W¶Çªþ¥ó, ½Ð¤j¤j±Ð¾É,
[attach]12607[/attach][
§@ªÌ:
317
®É¶¡:
2012-9-27 23:54
¦^´_
24#
Hsieh
hsiehª©¤j, ¦w¦n,
³oӥؿý¦ì¸m¤£¦s¦b, ³o¨ì©³¬O«ü, ¦]¤p©f²z¸Ñ, §@·~¨t²Î¤¤¤@¯ë¿ì¤½«Ç³n¥ó³£·|¦³¹Ï¹³ÀÉ, ¦Ó¤p©f¤]¯à¹B¥Î¤Wzµ{¦¡, ¦Ó¤j¤j¦^À³¤Wz¼Ó¥D¬O«ü³oӥؿý¦ì¸m¤£¦s¦b, §Æ±æ¤j¤j¯à¸Ñ»¡¤@¤U, ¦P®É¦b³o±¡ªp¤U, ¥i¦³¤è¿ìÀ±¸É..ÁÂÁÂ!!
§@ªÌ:
Hsieh
®É¶¡:
2012-9-28 07:16
¦^´_
26#
317
¥i¯à¬O¹q¸£¤¤¨S¦³E¼Ñ¤À³Î§a
§@ªÌ:
GBKEE
®É¶¡:
2012-9-28 16:40
¦^´_
25#
©P¤j°¶
Dim PicAr() As Picture '¹Ï¤ù°}¦C
Dim fs As String ' *** = "E:\temp.jpg" '¼È¦s¹Ï¤ù¥Ø¿ý¦ì¸m
Private Const r = 4 '¸ê®Æ°_©l¦C¸¹
Private Sub UserForm_Initialize() 'ªí³æªì©l¤Æ
Dim Pic As Picture
fs = CurDir & "\temp.jpg" '*** ³o¸Ìקאּ·í¤Uªº¥Ø¿ý ( CurDir )¬°¼È¦s¹Ï¤ù¥Ø¿ý¦ì¸m ***
With Sheet1
ReDim PicAr(.Pictures.Count)
For Each Pic In .Pictures '±N¨CӹϤù¸m¤J°}¦C
Set PicAr(Pic.TopLeftCell.Row - r) = Pic
Next
ComboBox1.List = .Range("A4", .[A4].End(xlDown).Offset(, 12)).Value '¤U©Ô²M³æ¤º®e
End With
Image1.PictureSizeMode = fmPictureSizeModeStretch '¹Ï¤ù¸ü¤Jªº«¬ºA
End Sub
½Æ»s¥N½X
§@ªÌ:
©P¤j°¶
®É¶¡:
2012-9-28 19:10
¦^´_
28#
GBKEE
¥ýÁÂÁ¤j¤j,
fs = CurDir & "\temp.jpg" '*** ³o¸Ìקאּ·í¤Uªº¥Ø¿ý ( CurDir )¬°¼È¦s¹Ï¤ù¥Ø¿ý¦ì¸m ***
³o¥yªº·N«ä¬O«ü¥Ø¿ý¦ì¸m, ¬O«ü, ¦pc½Ld½L, ©ÎÀɮ׸ô®|, ¤j¤j¥i§_«ü¾É, ÁÂÁÂ!!
§@ªÌ:
Hsieh
®É¶¡:
2012-9-29 09:30
¦^´_
29#
©P¤j°¶
Dim PicAr() As Picture '¹Ï¤ù°}¦C
Dim fs$
Private Const r = 4 '¸ê®Æ°_©l¦C¸¹
Private Sub ComboBox1_Change() '¿ï¾Ü½s¸¹¨Æ¥ó
Dim k%, i%
With ComboBox1
k = .ListIndex '¤U©Ô¿ï³æ¿ï¨ú¦ì¸m
For i = 1 To 11
Controls("TextBox" & i).Text = IIf(i = 11, .List(k, i) & .List(k, i + 1), .List(k, i)) '¤å¦r¤è¶ô¼g¤J
Next
End With
PicAr(k).CopyPicture '½Æ»s¹Ï¤ù
With Sheet1.ChartObjects.Add(1, 1, PicAr(k).Width, PicAr(k).Height) '·s¼W¹Ïªí
.Chart.Paste '¶K¤W¹Ï¤ù
.Chart.Export fs '¥H¹Ïªí¶×¦¨¹Ï¤ù
Image1.Picture = LoadPicture(fs) '¸ü¤J¹Ï¤ù
.Delete '§R°£¹Ïªí
End With
End Sub
Private Sub UserForm_Initialize() 'ªí³æªì©l¤Æ
Dim Pic As Picture
fs = CurDir & "\temp.jpg" '*** ³o¸Ìקאּ·í¤Uªº¥Ø¿ý ( CurDir )¬°¼È¦s¹Ï¤ù¥Ø¿ý¦ì¸m ***
With Sheet1
ReDim PicAr(.Pictures.Count)
For Each Pic In .Pictures '±N¨CӹϤù¸m¤J°}¦C
Set PicAr(Pic.TopLeftCell.Row - r) = Pic
Next
ComboBox1.List = .Range("A4", .[A4].End(xlDown).Offset(, 12)).Value '¤U©Ô²M³æ¤º®e
End With
Image1.PictureSizeMode = fmPictureSizeModeStretch '¹Ï¤ù¸ü¤Jªº«¬ºA
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) 'Ãö³¬ªí³æ
If Dir(fs) <> "" Then Kill fs '§R°£¼È¦s¹Ï¤ùÀÉ®×
End Sub
½Æ»s¥N½X
§@ªÌ:
GBKEE
®É¶¡:
2012-9-29 16:34
¦^´_
29#
©P¤j°¶
CurDir: ¶Ç¦^«e¥Ø¿ý¦ì¸m
·í¨Ï¥Î¶}±ÒÂÂÀÉ«ü¥O: ©Ò¬Ý¨ìªº¥Ø¿ý¦ì¸m
§@ªÌ:
©P¤j°¶
®É¶¡:
2012-9-29 20:24
¦b¦¹Á¹Lhsieh¤Îgbkee两¦ì¶Wª©¤j, °J¤ß·PÁÂ, §Æ±æ¯à±q¤¤¾Ç²ß, ³Ì«á¯¬Ä@¤¤¬î¸`§Ö¼Ö, ÁÂÁÂ!!
§@ªÌ:
hong912
®É¶¡:
2012-9-30 11:09
¤p§Ì¤]¦b¦¹°J¤ß·PÁ³o½g¤å³¹±o¨ì2¦ìª©¥D¦^À³¤Î¦U¼Ó¥Dªºª`·N, ¥ý¦æ»¡ÁnÁÂÁÂÁÂ!!
°ò©ó¤u§@¤Wªº»Ý¨D, ¤p§Ì¦b·Q, ¤£ª¾¥i§_§âµ{¦¡§ï³y¬°两ÓÀÉ®×, 1¸ê®Æ®wÀÉ®×, ³oÀɮ׬O¦s©ñ¸ê®Æ,
2¬d¸ßÀÉ®×, ¥Î®a¦b³oÀɮפº«ö¤U¬d¸ß«ö¶s, ¸ê®Æ«K±qÀɮ׫Ç1¸ê®Æ®w¤¤¶Ç¦^, ¥\¯à¤@¼Ë, ¦ý¤£¦Pªº, ¦b¦P
¤@ÀÉÀɮ׫Ǭd¸Ú§ï¬°¦b¥t¤@Àɮ׬d¸ß, ³o¼Ëªº®ÄªG¬O§_¥i°µ¨ì,
¤µ¤Ñ¬O¤¤¬î¸`, ¤p§Ì©ó¦¹, ¯¬¤j¤j̤ΦU¼Ó¥D¸`¤é¤H¤ë两¥þ, ÁÂÁÂ!!
[attach]12642[/attach][attach]12643[/attach]
§@ªÌ:
GBKEE
®É¶¡:
2012-9-30 15:50
¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-9-30 15:51 ½s¿è
¦^´_
33#
hong912
×§ï ¬d¸ßÀÉ®× ªí³æµ{¦¡½X¦p¤U
Dim PicAr() As Picture '¹Ï¤ù°}¦C
Dim fs As String, Sh As Worksheet ' ªí³æ¬d¸ßªí = "E:\temp.jpg" '¼È¦s¹Ï¤ù¥Ø¿ý¦ì¸m
Private Const r = 4 '¸ê®Æ°_©l¦C¸¹
Private Sub UserForm_Initialize() 'ªí³æªì©l¤Æ
Dim Pic As Picture
¬d¬Ý¸ê®Æ®w
fs = CurDir & "\temp.jpg" 'ªí³æ¬d¸ßªí ³o¸Ìקאּ·í¤Uªº¥Ø¿ý ( CurDir )¬°¼È¦s¹Ï¤ù¥Ø¿ý¦ì¸m ªí³æ¬d¸ßªí
With Sh
ReDim PicAr(.Pictures.Count)
For Each Pic In .Pictures '±N¨CӹϤù¸m¤J°}¦C
Set PicAr(Pic.TopLeftCell.Row - r) = Pic
Next
ComboBox1.List = .Range("A4", .[A4].End(xlDown).Offset(, 12)).Value '¤U©Ô²M³æ¤º®e
End With
Image1.PictureSizeMode = fmPictureSizeModeStretch '¹Ï¤ù¸ü¤Jªº«¬ºA
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) 'Ãö³¬ªí³æ
If Dir(fs) <> "" Then Kill fs '§R°£¼È¦s¹Ï¤ùÀÉ®×
Sh.Parent.Close 0 'Ãö³¬¸ê®Æ®wÀÉ®×
End Sub
Private Sub ¬d¬Ý¸ê®Æ®w()
Dim ¸ê®Æ®w As String, Wo As Workbook, Msg As Boolean 'Boolean«¬ºAªº¹w³]Ȭ° False
¸ê®Æ®w = "D:\¸ê®Æ®w.XLS" '¸ê®Æ®wÀɮתº¸ô®|¥Ø¿ý
For Each Wo In Workbooks '¬¡¶Ã¯ª«¥ó¶°¦X
If Wo.FullName = ¸ê®Æ®w Then '¸ê®Æ®wÀɮ׶}±Ò¤¤
Msg = True
Set Sh = Wo.Sheets(1) '±NÅܼƫü©w¬°²Ä¤@Ó¤u§@ªí
Exit For
End If
Next
Application.ScreenUpdating = False
'ScreenUpdating ÄÝ©Ê ¦pªG¿Ã¹õ§ó·s¥\¯à¬O¶}±Òªº«h¬° True¡CŪ/¼g Boolean¡C
If Msg = False Then Set Sh = CreateObject(¸ê®Æ®w).Sheets(1)
'¸ê®Æ®wÀɮצp¥¼¶}±Ò, ¶}±Ò¥¦:±NÅܼƫü©w¬°²Ä¤@Ó¤u§@ªí
Application.ScreenUpdating = True
End Sub
½Æ»s¥N½X
§@ªÌ:
hong912
®É¶¡:
2012-9-30 16:14
¦^´_
34#
GBKEE
ÁÂÁ¤j¤j¦^À³, ·|©ó©ñ¤u«á¬ã¨s¤Î¾Ç²ß, ÁÂÁÂ!!, ¯¬¸`¤é°·±d§Ö¼Ö..
Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)