µù¥U
µn¿ý
º¶
½×¾Âª©³W
¸T¤î¦Cªí
»¡©ú
¦a¹Ï
¼Æ¦ì®Ñ»
¨p¤H®ø®§ (0)
¤½¦@®ø®§ (0)
½×¾Â¥ô°È (0)
¨t²Î®ø®§ (0)
¦n¤Í®ø®§ (0)
©«¤l®ø®§ (0)
³Â»¶®a±Ú°Q½×ª©ª©
»
VB »P VB.Net
» VB.net ¦p¦ópºâExcel¤¤AÄæ¦ìxlDown?
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
µo©«
[µo°Ý]
VB.net ¦p¦ópºâExcel¤¤AÄæ¦ìxlDown?
faye59
µoµu®ø®§
¥[¬°¦n¤Í
faye59
(温©_)
·í«eÂ÷½u
ij½×ªÌ
UID
30039
©«¤l
104
¥DÃD
5
ºëµØ
0
¿n¤À
110
ª÷¿ú
110
ÂI¦W
0
§@·~¨t²Î
win7
³nÅ骩¥»
Office2007
¾\ŪÅv
20
©Ê§O
¨k
¦b½u®É¶¡
116 ¤p®É
µù¥U®É¶¡
2017-11-14
³Ì«áµn¿ý
2019-4-30
¡@¼ÊºÙ:
温©_
¡@ÀY»Î:
ij½×ªÌ
¤¤¾Ç¥Í
©«¤l
104
¥DÃD
5
ºëµØ
0
¿n¤À
110
ÂI¦W
0
§@·~¨t²Î
win7
³nÅ骩¥»
Office2007
¾\ŪÅv
20
©Ê§O
¨k
µù¥U®É¶¡
2017-11-14
³Ì«áµn¿ý
2019-4-30
1
#
¸õÂà¨ì
»
˧Ǭݩ«
¥´¦L
¦rÅé¤j¤p:
t
T
µoªí©ó 2018-6-22 05:38
|
¥u¬Ý¸Ó§@ªÌ
[µo°Ý]
VB.net ¦p¦ópºâExcel¤¤AÄæ¦ìxlDown?
½Ð°ÝVB.netn¦p¦óºâExcel¤ºFor°j°éªºµ²§ôÈ?
§Ú¥ÎVBAªº¤èªk³£Åã¥ÜxlDown¸òxlUp³£¬OµL®Ä
Wo Op Time
M123456789 OAG 01 10:00:00
M123456789 HAG 01 10:00:00
M123456789 SAG 01 10:00:00
M123456788 OAG 02 10:00:00
M123456788 SAG 02 10:00:00
Private Sub Button3_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim WB, XL, oSheet As Object
XL = CreateObject("Excel.Application")
XL.Visible = False
WB = XL.Workbooks.Open("\\Test\test.xlsx", True)
oSheet = XL.Workbooks("Test.xlsx").Sheets("Text1")
'For i As Long = 1 To oSheet.Range("A100").End(xlUp).Row
'Dim aa As String = Wo.Text
'Dim bb As String = oSheet.Range("A2").End(xlUp)
'Dim rng As Range
rng = XL.range(XL.cells(1, 1), XL.cells(1, 1).End(xlDown))
For i As Integer = 1 To rng'n¦p¦ópºâExcel¤º·|°j°éÁ`¼Æ?
oSheet.cells(4, i).value = "Test"
Next
XL.Workbooks("Test.xlsx").Save()
XL.DisplayAlerts = True
MsgBox("OK")
XL.Workbooks("Test.xlsx").Close()
XL.Application.Quit()
XL = Nothing
WB = Nothing
oSheet = Nothing
End Sub
½Æ»s¥N½X
¼Ó¥D¼ö©«
¶}±Ò2ÓExcel°µ¸ê®Æ¤ñ¹ï
¥i¥H¾Þ§@¦Û°Ê¤W¶Ç¸ê®Æ¶Ü?
Excel·s¼WSheet¦A§R°£¨ÃSaveÁ¼«ä
¦¬ÂÃ
¤À¨É
¤@¤À§V¤O¡A¤@¤À¦¬Ã¬¡C
µo°ÝÃD«e¥i¥H¥ý·j¯Á¤º¤å¬O§_¦³¬ÛÃö½d¨Ò¡C
faye59
µoµu®ø®§
¥[¬°¦n¤Í
faye59
(温©_)
·í«eÂ÷½u
ij½×ªÌ
UID
30039
©«¤l
104
¥DÃD
5
ºëµØ
0
¿n¤À
110
ª÷¿ú
110
ÂI¦W
0
§@·~¨t²Î
win7
³nÅ骩¥»
Office2007
¾\ŪÅv
20
©Ê§O
¨k
¦b½u®É¶¡
116 ¤p®É
µù¥U®É¶¡
2017-11-14
³Ì«áµn¿ý
2019-4-30
¡@¼ÊºÙ:
温©_
¡@ÀY»Î:
ij½×ªÌ
¤¤¾Ç¥Í
©«¤l
104
¥DÃD
5
ºëµØ
0
¿n¤À
110
ÂI¦W
0
§@·~¨t²Î
win7
³nÅ骩¥»
Office2007
¾\ŪÅv
20
©Ê§O
¨k
µù¥U®É¶¡
2017-11-14
³Ì«áµn¿ý
2019-4-30
2
#
µoªí©ó 2018-7-5 01:39
|
¥u¬Ý¸Ó§@ªÌ
¤w§ä¨ì¸Ñµª¤F¡A¤À¨Éµ¹¦U¦ì!
Constant Value
xlDown -4121
xlToLeft -4159
xlToRight -4161
xlUp -4162
Const xlUp = -4162
Const xlDown = -4121
½Æ»s¥N½X
¤@¤À§V¤O¡A¤@¤À¦¬Ã¬¡C
µo°ÝÃD«e¥i¥H¥ý·j¯Á¤º¤å¬O§_¦³¬ÛÃö½d¨Ò¡C
TOP
ÀR«ä¦Û¦b :
¡i»X½ªªº¦Û¥Ñ¡j¤H±`¦b¤°»ò³£¥i¥H¦Û¥Ñ¦Û¦bªº®ÉÔ¡A«o³Q³oºØÀH¤ß©Ò±ýªº¦Û¥Ñ»X½ª¡AµêÂY®É¥ú¦Ó²@µLıª¾¡C
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
EXCEL±MÄÝ°Q½×°Ï
Excel£¸¯ë°Ï
Excelµ{¦¡°Ï
¶i¶¥À³¥Î±M°Ï
OFFICE ¨t¦C
Word
PowerPoint
Access
Office¤£¤À°Ï
µ{¦¡»y¨¥
VB »P VB.Net
C »P C#
Java »P J#
µ{¦¡³]p¤£¤À°Ï
¸ê®Æ®w
ORACLE
My SQL
MS SQL
ºô¶³]p
ASP »P ASP.NET
PHP
PHP+MySQL ¤Jªù¹ê§@
JavaScript
FLASH / ActionScript
HTM/ HTML/ CSS
ºô¶³]p¤£¤À°Ï
¹q¸£»P§@·~¨t²Î
¹q¸£¦UºØµwÅé°Q½×
¤@¯ë¹q¸£³nÅé°Q½×
½×¾Â¨Æ°È
ºÞ²z¤½§i
§ë¶D¤Ï¬M
·s¤â´ú¸Õ
·R ¡E ¥Í¬¡
¤½¯q§G§iÄæ
¥Í¬¡»P·P°Ê
[¦¬Âæ¹¥DÃD]
[Ãöª`¦¹¥DÃDªº·s¦^´_]
[³q¹L QQ¡BMSN ¤À¨Éµ¹ªB¤Í]
¥Ó½Ð¤Í±¡Ãì±µ
Facebook¯»µ·