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

[µo°Ý] ¨Ï¥ÎVBA¦Û­q½d³ò¸ê®ÆÅçÃÒ¥¢±Ñ

[µo°Ý] ¨Ï¥ÎVBA¦Û­q½d³ò¸ê®ÆÅçÃÒ¥¢±Ñ

·Q½Ð±Ð¤j¤j­Ì¬°¦ó·|¥¢±Ñ©O~?
'¦Û­q°Ï°ì
With Sheets("Âà´«ªí")
        myRange = .Range("s2:s" & .Range("s65536").End(xlUp).Row) '¸ê®ÆÅçÃÒ¥Î
end With

'¸ê®ÆÅçÃÒ¿ï³æ
'¸Õ¹L¨âºØ¤è¦¡
'²Ä¤@ºØ
    For Each e In myRange
        arr = arr & "," & e
    Next
    arr = Split(Mid(arr, 2, 10000), ",")
    With Range("d2:d" & allr).Validation
        .Delete
        .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
        xlBetween, Formula1:=arr
    End With
'²Ä¤GºØ¬Oª½±µ±NArr´«¦¨myRange
PKKO

¦^´_ 16# GBKEE


   ¶â¶â¶â!§Ú¤F¸Ñ¤F,½T¹ê¤]¥i¥H¥[§Ö¼¶¼gµ{¦¡½Xªº³t«×,ÁÂÁ®@!!
PKKO

TOP

¦^´_ 14# PKKO


   
WITH ME¦]¸Ó¬O¨S¦³¦s¦bªº¥²­n?(°²³]¤w¸g±Nµ{¦¡½X©ñ¸m¦b¸ÓSHEET¤ºªº¸Ü)
¤]¤£¬O¦p¦¹ªº»¡ªk,¥i²¤Æµ{¦¡½Xªºkey in .

¦p¹Ï ¤u¨ã->¿ï¶µ ªº¤Ä¿ï
¦p¹ïvbaªº»yªk¤£¼ô,¤]¥i¥[§Öµ{¦¡½Xªº½s¼g,¼ô±x.


·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ HUNGCHILIN ©ó 2015-3-9 00:24 ½s¿è

¥u¬O³æ¯Âªº´ú¸Õµ{¦¡¡A¨S§Oªº
²¤Æµ{¦¡¡A«Ü¦nªº·Qªk

TOP

¦^´_ 13# GBKEE


    ®¦®¦,·PÁÂ!

   ¦ý­Y¬O¤w¸g©ñ¦b¸ÓSHEET¤ºÀ³¸Ó´N¥i¥Hª½±µ¥Î Rows(1).Find("©Ò¦³³æ¦ì", Lookat:=xlWhole).Column '¥N¸¹ªºColumn

¦Ó¤£¥Î¨Ï¥Î¥H¤Uªº¼gªk
WITH ME
   .Rows(1).Find("©Ò¦³³æ¦ì", Lookat:=xlWhole).Column '¥N¸¹ªºColumn
END WITH

·íµMª©¥D¤j¤j¬O¦]¬°ª½±µ­×§ï§Úªºµ{¦¡½X·|¤ñ¸û§Ö,¦ý°£¦¹¤§¥~
¦pªG¬O¦Û¤v¼¶¼gµ{¦¡½Xªº¸Ü,WITH ME¦]¸Ó¬O¨S¦³¦s¦bªº¥²­n?(°²³]¤w¸g±Nµ{¦¡½X©ñ¸m¦b¸ÓSHEET¤ºªº¸Ü)
ÁÙ¬O¦³¨ä¥Lªº¥Îªk?
PKKO

TOP

¦^´_ 12# PKKO
¤£¬O³t«×§Ö,¥i«ü©w³oª«¥óªºÄÝ©Ê,¤lª«¥ó
  1. With Cells(1, 1)
  2.         .Value = 555
  3.         .Interior.Color = vbRed
  4.         With .Font
  5.             .Bold = True
  6.             .ColorIndex = xlAutomatic
  7.         End With
  8.    End With
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ PKKO ©ó 2015-3-8 01:32 ½s¿è

·PÁª©¥D¤j¤j,­ì¨Ó¦p¦¹!

¦ý·Q°Ý¤@¤U,­Y¬O¤w¸g©ñ¦b¸ÓSHEET¤ºªºµ{¦¡½X

¤£´N¥i¥Hª½±µ¨Ï¥Îex: CELLS(1,1),¤£»Ý­nWITH

ÁÙ¬O»¡³z¹LWITH ¸Ì­±[ . ªºµ{¦¡½X]°õ¦æ³t«×·|¤ñ¸û§Ö?
PKKO

TOP

¥»©«³Ì«á¥Ñ HUNGCHILIN ©ó 2015-3-7 23:54 ½s¿è

¦^´_ 10# PKKO
ªü¦N´ú¸Õ®É§âµ{¦¡¶K¦b¡ASheets("Âà´«ªí") ªº¤u§@ªíµ{¦¡区内¡A¬Gª½±µ¥ÎMe¡A´N¥i¥H¤F¡A
¦pªGµ{¦¡©ñ¦b ¼Ò²Õ1 内¡A´N¤@©w­n«ü©w¡Awith Sheets("Âà´«ªí")¡A
§Ú³q±`¸û¤Ö¥Î Sheets("Âà´«ªí")ªº¼gªk¡A¦]¬°§ïSheet¦WºÙµ{¦¡´N·|³ø¿ù»~´£¥Ü¡C
¦³®É¥ÎSheet1¡ASheet2¼gªk¸û¨Î¡C

TOP

¦^´_ 6# HUNGCHILIN

ª©¥D¤j¤j,¥i§_½Ð±Ð±z¨Ï¥Îªº With Me => ³o­ÓMe ¥Nªíªº¬O?
PKKO

TOP

¦^´_ 8# GBKEE


    ·PÁÂ,­ì¨Ó¦p¦¹!
PKKO

TOP

        ÀR«ä¦Û¦b : ¹D¼w¬O´£ª@¦Û§Úªº©ú¿O¡A¤£¸Ó¬O¨þ¥¸§O¤HªºÃ@¤l¡C
ªð¦^¦Cªí ¤W¤@¥DÃD