- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 3
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- sp1
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2014-6-9
- ³Ì«áµn¿ý
- 2015-9-11
|
[µo°Ý] ½Ð°Ý¡AFunction¤¤¡A¥Ñ©T©wÀx¦s®æ§ï¬°ÅܼÆÀx¦s®æ°ÝÃD?
- Public Function GetOrderText()
- If Sheet1.Cells(1, 2) = "S" Then
- GetOrderText = "Account=" & Sheet1.Cells(3, 2) & ",ProductID=" & Sheet1.Cells(5, 2) & ",TradeType=" & Sheet1.Cells(6, 2) & ", TradeKind=" & Sheet1.Cells(7, 2) & ", OrderType=" & Sheet1.Cells(8, 2) & ", BuySell=" & Sheet1.Cells(9, 2) & ", Qty=" & Sheet1.Cells(10, 2) & ", Price=" & Sheet1.Cells(11, 2) & ", OrderNo=" & Sheet1.Cells(12, 2) & ", TradeDate=" & Sheet1.Cells(13, 2) & ", BasketNo=" & Sheet1.Cells(14, 2)
- End If
- End Function
½Æ»s¥N½X ¥H¤W¬Oìµ{¦¡½s½X¡A¦Ó§Ú·Q§â¨ä¤¤´X¶µ§ï¬°ÅܼơA¨Ì³yÀx¦s®æ¤£¦P¦Ó¶]¤£¦Pªº¥N¸¹
¥H¤U¬O§Ú§ï¼gªº³¡¤À- Public Function GetOrderText(OrderStock As String,OrderPrice As String)
- If Sheet1.Cells(1, 2) = "S" Then
- GetOrderText = "Account=" & Sheet1.Cells(3, 2) & ",ProductID=" & OrderStock & ",TradeType=" & Sheet1.Cells(6, 2) & ", TradeKind=" & Sheet1.Cells(7, 2) & ", OrderType=" & Sheet1.Cells(8, 2) & ", BuySell=" & Sheet1.Cells(9, 2) & ", Qty=" & Sheet1.Cells(10, 2) & ", Price=" & OrderPrice & ", OrderNo=" & Sheet1.Cells(12, 2) & ", TradeDate=" & Sheet1.Cells(13, 2) & ", BasketNo=" & Sheet1.Cells(14, 2)
- End If
- End Function
½Æ»s¥N½X ¦pªG¥Îì½d¥»¡A¹q¸£¿é¥X¨ìµ{¦¡«á¨t²Î¥i¥H§P§O³oÓ¤U³æ¦r¦ê¡A
¦ý¬O·í§Ú§â¥¦§ï¬°ÅܼƤ§«á¡A¨t²Î´NŪ¤£¨ì§Úªº¤U³æ¦r¦ê¡C
½Ð°Ý¬O§Ú¦b§â¥L§ï¬°Åܼƪº¹Lµ{¤¤¡A¦³¿òº|¤°»ò¶Ü??¥ç©Î¬O³]©w¿ù»~??
¦]¬°§Ú±µÄ²VBA¤~¤@Ó§«ô¡A³£¬O±q¿ù»~¤¤¾Ç²ß¡A§Æ±æ¦U¦ì¥ý¶i¯à¤£§[«ü¾É!!!
ÁÂÁ¦U¦ì¥ý¶i¤F!!! |
|