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

[µo°Ý] ¬O§_¦³§ó¾A¦X¦r¦êªº½s¿è­×§ï©O¡H

[µo°Ý] ¬O§_¦³§ó¾A¦X¦r¦êªº½s¿è­×§ï©O¡H

¦U¦ì¤j¤j¦n¡G

   ¤p§Ì·Q´£¨Ñ¤@ªí³æ¨ÑUSER
¥i¥H¹ïBÄæ¦ì¸ê®Æ°µ½s¿è¡B­×§ï¦r¦ê¤º®e¡C

¶·¨D¦p¤U¡G
¤@¡BÀx¦s®æªº¸ê®Æ¬°­^¤å¤Î¼Æ­È²Õ¦X
¤G¡B¶·逹¦¨Àx¦s®æªº¦r¤¸¬°12­Ó¦r¤¸
¤T¡B¥i´¡¤J¦r¤¸¡B§R°£¦r¤¸¡B­×§ï¦r¤¸¡B´À´«¦r¤¸

   ¤p§Ì¤w§¹¦¨¤@ªí³æ¡A¤£ª¾¬O§_¦³¤£¶g©µ¤§³B¡C
¥t·Q½Ð敎¦U¦ì¤j¤j¬O§_¦³§ó¾A¦Xªº
¤è¦¡¥i¨ÑUSER¹ïÀx¦s®æªº¦r¦ê°µ¤W­zªº¾Þ§@¶Ü¡H

  ¤p§Ì¦P®É¤]·Q½Ð敎¦U¦ì¤j¤j¡A¦b¦¹¤@ªí³æ¨ä
Set mSht1 = Worksheets("UPDATA")
¦p¦ó¥i²¤Æ¶È¦C¥X¤@¦¸¦Ó¤£¥²³v¤@¦C
¥X¦b¤£¦Pªº±±¨î¶µ¸Ì³]©w©O¡H

ÁÂÁ¦U¦ì¤j¤j¡C

CHARACTER.rar (22.82 KB)

¦^´_ 11# GBKEE


    ª©¥D¤j¤j¦­¦w¡G

¤p§Ì¤w»â®©»yªk¤¤
DO WHILEªºÅܤƤF¡C
Sub aa()
    Dim mFlag As Boolean
    mFlag = True
    Do While mFlag
        MsgBox "²{¦b´ú¸Õ¤¤"
        mFlag = False
    Loop
End Sub

ª©¥D¤j¤j¬O§Q¥Î
InStr(xText, TextBox2)¤ÎxText
ªº§ïÅÜ

TOP

¦^´_ 10# dechiuan999
  1. 'InStr ¨ç¼Æ  ¶Ç¦^¦b¬Y¦r¦ê¤¤¤@¦r¦êªº³Ì¥ý¥X²{¦ì¸m¡A¦¹¦ì¸m¬° Variant (Long)¡C
  2. Private Sub TextBox2_Change()
  3.     Dim xl As Integer, xText As String
  4.     xText = TextBox1   '¦r¦ê=TextBox1
  5.     ComboBox1.Clear
  6.     Do While InStr(xText, TextBox2)
  7.         'While: ±ø¥ó¦¨¥ß   °õ¦æ¦^°é  ->  TextBox2¦r¦ê¦bxText¦r¦ê¤¤³Ì¥ý¥X²{¦ì¸m >1 => True¦¨¥ß,  0=>False ¤£¦¨¥ß
  8.         'Until: ±ø¥ó¤£¦¨¥ß °õ¦æ¦^°é
  9.         ComboBox1.AddItem xl + 1
  10.         xl = xl + 1
  11.         xText = Mid(xText, InStr(xText, TextBox2) + Len(TextBox2))
  12.         '¦r¦ê=­ç°£¤w¥X²{¦ì¸mªº¦r¤¸ªº¦r¦ê  ¥HÁקKµL½aªº°j°é
  13.         'InStr(xText, TextBox2) + Len(TextBox2) :³Ì¥ý¥X²{¦ì¸m+TextBox2ªº¦r¤¸¼Æ
  14.     Loop
  15. End Sub
½Æ»s¥N½X

TOP

¦^´_ 8# GBKEE


    ª©¥D¤j¤j±z¦n¡G
¤p§Ì¥Ñª©¥D¤j¤j´£¨Ñªºªk¤¤
¦h¾Ç¨ì¤FTextbox¤T­ÓÄÝ©Ê
SelText,SelLength,SelStar
¥t¤p§Ì¤]µo²{SelStarªº°_ºâ
¬O¥Ñ0°_ºâ¡C¦]¦¹¡A»yªk¤W¤p
§Ì¤]­×¥¿¬°
If Shift = 4 And KeyCode = 13 Then TextBox4 = TextBox1.SelStart + 1

¥tTextBox2_Change¤º¦³¤GÂIºÃ´b
¤@¡B
xText = Mid(xText, InStr(xText, TextBox2) + Len(TextBox2))
¦³¦ó¥Î·N©O¡H
¤G¡B
Do While InStr(xText, TextBox2)
¦¹»yªk»P¤p§Ìªº»{ª¾¦³©Ò¤£¦P
¤p§Ì§ï¦¨
x2=InStr(xText, TextBox2)
do while x2
´N·|²£¥ÍµL½a°j°é
¤p§Ì´N¤£ª¾ª©¥D¤j¤jªº
»yªk¬°¦ó¤£·|²£¥ÍµL½a°j°é©O¡H

ÁÂÁª©¥D¤j¤j¡C

TOP

¦^´_ 8# GBKEE


    ÁÂÁª©¥D¤j¤j¡C
ª©¥D¤j¤j¦A¦¸´£¨ÑReplace¨ç¼Æ½d¨Ò
¦bÀ³¥Î¤Wªº®t²§¡A¤]Åý¤p§Ì²z¸Ñ
¤Þ¼Æstart¤Îcount ¨ä¤¤ªºÅܤơC
¤p§Ì¤]¤F¸Ñ¦Û¤w¦b¾Ç²ß¤W
Á`¬O³B¦b¤@ª¾¥b¸Ñªºª¬ºA¡F
³o¤]¬OÅý¤p§Ì¤@ª½µLªk§ó
¤W¤@¼hªº­ì¦]¡C
¤p§Ì¤]·|±Nª©¥D¤j¤j´£¨Ñ
ªº½d¨Ò¥[¥Hµo´§¤ÎÀ³¥Î¡C

·P®¦¤j¤j¡I

TOP

¦^´_ 7# dechiuan999
Replace ¨ç¼Æ ªº¥Îªk
  1. Sub Ex()
  2.     Dim W As String
  3.     W = "1ABCDE2ABCDE3ABCDE4ABCDE"
  4.     MsgBox Replace(W, "E", "?", , 1) & Chr(10) & _
  5.            Replace(W, "E", "?", 7) & Chr(10) & _
  6.            Replace(W, "E", "?", 13, 1)
  7. End Sub
½Æ»s¥N½X

TOP

¦^´_ 6# GBKEE


    ÁÂÁª©¥D¤j¤j¡C
¤p§Ì¤é«á·|§ï¶i¡C
¤p§Ì¥¿¦b¨D¸Ñ¤¤¡C
replace¨ç¼Æ¤ñ¤p§Ì·Q¹³¤¤
­n½ÆÂø¤@¨Ç¡C

ÁÂÁ±z¡I

TOP

¦^´_ 5# dechiuan999
¥i°Ñ¦Ò³o½g
PS : ¦^¤å®É  ½Ð«ö [¦^ÂÐ] «ö¶s  µªÂЧAªº¤H¤~·|±o¨ì³qª¾,

TOP

ÁÂÁª©¥D¤j¤j¡C
¤p§Ì¤w¦¬¤U¤]¬ã¨s¦n¤@°}¤l¡A
ÁÙ¬O¥þµM¨S¦³§¹¥þ»â·|¨ä§t·N¡C
¤µ¤Ñ¤U¤ÈÀY¸£¯uªº¦³ÂI¤£²M¿ô¡A
¶V·Q¥¦ÀY¸£´N¶VÂण¹L¨Ó¡A¥u¦n¥ý¦¬§L
µ¥ÀY¸£²M¿ô¤@ÂI¦A¦n¦n¬ã¨s¥¦¤F¡C

·P®¦ª©¥D¤j¤j¡I

TOP

¦^´_ 3# dechiuan999
¸Õ¸Õ¬Ý

TEST.rar (9.67 KB)

TOP

        ÀR«ä¦Û¦b : ±o²z­nÄǤH¡A²zª½­n®ð©M¡C
ªð¦^¦Cªí ¤W¤@¥DÃD