- ©«¤l
- 1
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 2
- ÂI¦W
- 0
- §@·~¨t²Î
- MAC
- ³nÅ骩¥»
- OS
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2019-5-13
- ³Ì«áµn¿ý
- 2019-5-15
|
½Ð°Ý¦U¦ì°ª¤â¤U±¬Op¹º·Q¥Î¢ä¢Ð¢Ï§P¬qÅýEXCELªí¤¤mapping¬°¡§1"ªº©Ò¹ïÀ³ªº¡§name"Äæ¦ì¸ê°T¶K¦Ü¥t¤@Ó¤u§@ªí¡]alex)¸Ì,
¨ä¤¤0ªº¸õ¹L, ¥u¶Kmapping Äæ¦ì¬O1ªº¹ïÀ³ªº¡§name"Äæ¦ì¸ê°T, ¦ý¬O¤U±ªº»yªk¬O¥i§PÂ_mapping¬°¡§1"ªº©Ò¹ïÀ³ªº¡§name"Äæ¦ì¸ê°T, ¦ý¬O¥u¯à¸õµÛÅã¥Üalex, apple, lindia,µLªk¨Ì§Ç±Æ¦C
½Ð°ÝVBA¸Ó¦p¦óקï¡H¦Ò¼{¹LÂù°j°é¬O§_¯à¸Ñ¨M , ¦ý¬O¤£ª¾¦p¦ó¼g
³Â·Ð¨ó§U ·PÁÂ
name gender age mapping
alex m 21 1
apple f 34 1
zoe f 556 0
kelly f 76 0
lindia f 76 1
ikea m 98 0
alex
apple
lindia
Sub looptest()
Dim counter As Long
For counter = 2 To 7
If Cells(counter, 4) = 1 Then
Cells(counter, 1).Select
Selection.Copy
Sheets("alex").Select
Cells(counter, 1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End If
Sheets("¤u§@ªí1").Select
Next
End Sub |
|