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

2­Ó¼Æ­È¤ñ¸û,¨ú¸û¤j­È

2­Ó¼Æ­È¤ñ¸û,¨ú¸û¤j­È

½Ð±ÐVBA¼gªk.

CÄæ»PDÄæ¼Æ­È°µ¤ñ¹ï,
C¤p©óD,«h±ND­È¨ú¥NC,
C¤j©óD,«h«O¯dC­È
¦p¹J¨ìAÄ欰ªÅ¥Õ®É,«h²¤¹L,¤£»Ý¤ñ¸û.

·PÁÂ!!

Sales forecast by CSR.rar (276.24 KB)

fangac

¦^´_ 1# fangsc
  1. Sub xx()
  2. LR = [A2].CurrentRegion.Rows.Count
  3. For R = 3 To LR
  4.   If Cells(R, "A") <> "" And Cells(R, "AN") < Cells(R, "BB") Then Cells(R, "AN") = Cells(R, "BB")
  5. Next R
  6. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# register313

·PÁ«ü¾É.

½Ð°ÝLR¤£»Ý­n¥ý°µÅܼƫŧi¶Ü?
fangac

TOP

¦^´_ 3# fangsc

ÅܼƤ£¥ý©w¸qªº¸Ü¡AVBA¦Û°Ê·|©w¸q
®Ú¾Ú¸ê®Æªº¤£¦P¡A¦³¥i¯à¬Ointeger, long, double, variant ªº¥ô·N¤@­ÓÃþ«¬
©Ò¥H强¨î¦Û¤v©w¸qÅܼƤ~¬O¦n²ßºD

Option Explicit ±j¨îÁn©ú
¦pªG¤£¥Î¦¹»yªk¡A«hÅܼƥi¤£¥Î©w¸qª½±µ¨Ï¥Î
¦pªG¨Ï¥Î¦¹»yªk¡A«hÅܼƥ²¶·©w¸q«á¤~¯à¨Ï¥Î

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-6-18 08:00 ½s¿è

¦^´_ 3# fangsc
¼gµ{¦¡­n¤@©w¾i¦¨ ¥ÎOption Explicit ±j¨î«Å§iÅÜ¼Æ ªº²ßºD
°õ¦æµ{¦¡¥i¥H§ì¥X,¥¼«Å§iªºÅܼÆ,¥iÁקK§A¿é¤J¬Û¦üªºÅܼƦWºÙ,¦]¦Ó§ä¤£¥X¿ù»~­þ¸Ì.

¦^´_ 4# register313
ÅܼƤ£¥ý©w¸qªº¸Ü¡AVBA¦Û°Ê·|©w¸q
ÅܼƤ£«Å§i«¬ºA   VBA·|µø¬° Variant ¸ê®Æ«¬ºA
Variant ¸ê®Æ«¬ºA¬O©Ò¦³¨S³Q©ú½T«Å§i¬°¨ä¥L«¬ºA

TOP

·PÁÂ2¦ìªº«ü¾É.
®Ñ¤W¬O¦³¼g»¡Variant«¬ºAªºÅܼƥi¥H¬Ù¥h­nª`·N¸ê®Æ«¬ºA¤@­Pªº³Â·Ð,¤£¹L³o¼Ëªº¥Îªk·|®ö¶O¦h¾lªº°O¾ÐªÅ¶¡.
¾i¦¨¦n²ßºDÁÙ¬O¥i¥HÁקK³\¦h³Â·Ð.
¨ü±Ð¤F.
fangac

TOP

        ÀR«ä¦Û¦b : ¦Û¤v®`¦Û¤v¡A²ö¹L©ó¶ÃµoµÊ®ð¡C
ªð¦^¦Cªí ¤W¤@¥DÃD