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

[µo°Ý] ¦p¦ó¨Ï¥Îexcel µo°e¤å¦r°T®§

[µo°Ý] ¦p¦ó¨Ï¥Îexcel µo°e¤å¦r°T®§

¦U¦ì¤j¤j¦n¡A§Ú·Q±NÀx¦s®æa1ªº­È¡A¶Ç°e¨ì¨Ò¦pline©Î¥ô¦óµøµ¡¤W­±¡A§Ú¬O¥Î¥H¤U¤è¦¡¼¶¼g¡A¦ý·|µo¥Í"¨S¦³¨Ï¥ÎÅv­­"
½Ð°Ý¸Ó¦p¦ó¸Ñ¨M???

©ÎªÌ¦³¤°»ò¤ñ¸û¦n¬Û®eªº«Øij¶Ü??

Sub sdfadf()

Dim a As Integer
Dim b As Integer

a = Sheets(1).Cells(1, 1).Value
b = Sheets(1).Cells(2, 1).Value

If a <> b Then
   a = Orderfunction(a, b)
   Sheets(1).Cells(3, 1).Value = a  
End If

End Sub



¼Ò²Õ¡G
Public Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) 'For 32 Bit Systems



Public Function Orderfunction(neworder As Integer, oldorder As Integer) As Integer
If neworder > 0 Then
   a = SetCursorPos(480, 160) '²¾°Ê¦Ü²Ä¤G¤U³æ®æ
        mouse_event 2, 0, 0, 0, 0     '¤UÀ£¥ª·Æ¹«
        mouse_event 4, 0, 0, 0, 0     '©ñÃP¥ª·Æ¹«
           Sleep (500)
      
   a = SetCursorPos(300, 70)
         mouse_event 2, 0, 0, 0, 0     '¤UÀ£¥ª·Æ¹«
         mouse_event 4, 0, 0, 0, 0     '©ñÃP¥ª·Æ¹«
          SendKeys Range("a1").Text
           Sleep (500)
          SendKeys "{ENTER}"
           Sleep (500)
end if
end function

½Ð°Ý¤@¤U¡A±z¸Ì­±¨º¨ÇSetCursorPos(480, 160)¤§Ãþªº°Ê§@¡A
¬O¦b¼ÒÀÀ·Æ¹«¥hÂILINE¹ï¸Üµøµ¡µM«á¶K°T®§°e¥X¶Ü?

TOP

¬Oªº¡A²¾°Ê·Æ¹««áÂIÀ»¿é¤J

TOP

¨S¦³¨Ï¥ÎÅv­­ ·|¤£·|¬O win8 °ÝÃD?

¥i¥H¥Î postMessage ¥h¹ê²{

TOP

­ì«h¤W¥i¥H¥Î¤Á´«¨ìLINE¹ï¸Üµøµ¡¼ÐÃDªº¤è¦¡¬Ý¬Ý¡A¥u­n¹ï¸Üµ¡¤£­nÁY¤p´N¥i¥H¤F(«ØijÅý¥¦©T©w¦b³Ì¤W¼h)

AppActivate "¹ï¸Üµøµ¡¼ÐÃD"
Sleep (500)
SendKeys Range("a1").Text
Sleep (500)
SendKeys "{ENTER}"
Sleep (500)

³o¼Ë¸Õ¸Õ¬Ý¡A§Æ±æ¹ï§A¦³À°§U¡I

TOP

        ÀR«ä¦Û¦b : ¶¢¤HµL¼Ö½ì¡A¦£¤HµL¬O«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD