ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¹Ïªí¨Ó·½¼gªk

[µo°Ý] ¹Ïªí¨Ó·½¼gªk

Dim i As Integer
Dim j As Integer
Dim k As Integer
Dim l As Integer
Dim m As Integer
Dim t As String
Dim w As String
Dim u As String
Dim Row1 As String
Dim Row2 As String
Dim Row3 As String
i = InputBox("½Ð¿é¤J­nø»s¹Ïªí¦~¤À" & Chr(13) & "¨Ò¦p¡G105¦~¿é¤J105", ø»s¦~¥÷)
j = InputBox("½Ð¿é¤J­nø»s¹Ïªí¤ë¤À" & Chr(13) & "¨Ò¦p¡G1¤ë¿é¤J1", ø»s¤ë¥÷)
t = i & "." & j & "(¤u°È©Ò)"
w = i & "." & j & "(¦U¶µ¯Ê¥¢²Î­p¹Ï)"
u = i & "." & j & "(Åv­«²Î­p¤ÀªR)"
Sheets(t).Select
FindStr = "¤p­p"
Set a = Cells.Find(FindStr, lookat:=xlWhole)
If a Is Nothing Then MsgBox "¬dµL¦¹¦r¦ê" Else b = a.Address
If Len(b) = 5 Then Row = Right(b, 2) Else Row = Right(b, 1)
k = Row - 1
l = Row + 1
m = Row + 3
Row1 = "W" & CStr(k)
Row2 = "W" & CStr(l)
Row3 = "W" & CStr(m)

Charts.Add Before:=Worksheets(u)
ActiveChart.Name = w
Worksheets(t).Range("A3:" & Row1, "A" & l & ":" & Row2, "A" & m & ":" & Row3).Select

¦]¬°¤u§@¤W»Ý­n ¨C­Ó¤ë³£­nø»sÃþ¦üªº¹Ïªí
¦ý¬O¨C­Ó¤ëªº°ò¥»¸ê®Æµ§¼Æ³£¤£¤@¼Ë
©Ò¥H¦b¿ï¨ú¹Ïªí½d³ò®É §Ú¬O·Q»¡¥ý¥Î·j´M"¤p­p"±o¨ì³o®æªº¦ì¸m ¨ä¦C¼Æ´î1´N±o¨ì§Ú­n¿ï¨úªº½d³ò
¦ý°£¤F°ò¥»¸ê®Æ §ÚÁÙ·Q¥[¦P¤@¤u§@ªí¸Ì¥t¥~¦Ê¤À¤ñªº¨â¦C¤@°_ø»s²Î­p¹Ïªí(¸Ó¨â¦C»P¤W­±°ò¥»¸ê®Æ½d³ò¤£¬Û³s)
¦ý¬O¨ì¤F¤W­±³Ì«á¤@¦æ °õ¦æ¤@ª½¥X²{"¤Þ¼Æ­Ó¼Æ¿ù»~©Î«ü©w¤£½T©wªºÄÝ©Ê"¿ù»~
¦ý¬O§Ú§â¤T­Ó½d³ò¤À§O³æ¿W°õ¦æ¤S³£¨S°ÝÃD
½Ð±Ð°ÝÃD¥X¦b­þ
¥i§_«üÂI°g¬z ÁÂÁÂ

1460384936647.jpg (154.39 KB)

1460384936647.jpg

¦^´_ 1# seanchu
Range¤£¯àª½±µ§t¬A "¦h­Ó" ½d³ò,

­n§ï¥Î Union ±N¦h­Ó Rage ¶°¦X°_¨Ó :

Union(Range("A3:" & Row1, Range("A" & l & ":" & Row2), Range("A" & m & ":" & Row3)).Select

TOP

ÁÂÁÂluhproÄÀºÃ~~~

TOP

        ÀR«ä¦Û¦b : ¥Ç¿ù¥XÄb®¬¤ß¡A¤~¯à²M²bµL·Ð´o¡C
ªð¦^¦Cªí ¤W¤@¥DÃD