½Æ¨î activecell ©Ò¦b¦æªº¸ê®Æ¨ì¬Y¶¡A
- ©«¤l
- 79
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 123
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- x64
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2013-10-24
- ³Ì«áµn¿ý
- 2024-3-28
|
½Æ¨î activecell ©Ò¦b¦æªº¸ê®Æ¨ì¬Y¶¡A
½Æ¨î activecell ©Ò¦b¦æªº¸ê®Æ¨ì¬Y¶¡A
§Ú¬O°Ñ¦Ò http://forum.twbts.com/thread-10659-1-1.html¡Aקï¥X¨Óªº- Sub setup_cal()
- Dim E As Range
- Sheets("Sheet1").Activate
- For Each E In Selection.EntireRow
- If E.Row > 1 Then 'And (E.Range("a1") = 1 Or E.Range("a1") = "Yes") Then
-
- With Sheets("Sheet2")
- .[a1]= E.Range("b1") '«È¤á½s¸¹
- .[b1]= E.Range("d1") '«È¤á¦WºÙ
- .[k2]= E.Range("e1") '¥»´ÁÀ³¦¬
- End With
- End If
- Next
- End Sub
½Æ»s¥N½X ³oÓµ{§Ç·|±N©Ò¦b¦æªº¸ê®Æ copy ¨ì¥t¤@Ó sheet
°Ý¬O¥d¦b¡GµL½×¿ï¾Ü¤@¦æ¡B¨â¦æ¡AÁÙ¬O«Ü¦h¦æ¡A§Ú³£¥u»Ýn½Æ¨î³Q¿ï¾Üªº²Ä¤@¦æ¨ì¥t¤@Ósheet ¤§¤¤¡C
For Each E In Selection.EntireRow ¡A§ÚÀ³¸Ó«ç»ò§ï¼g¡HÁÂÁ |
|
¤½¶}¸gÅç¡A³Ð³y´¼¼z¡]§Ú¤S¤£¾a³o¹L¬¡¡^
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
µL½×¿ï¾Ü¤@¦æ¡B¨â¦æ¡AÁÙ¬O«Ü¦h¦æ¡A§Ú³£¥u»Ýn½Æ¨î³Q¿ï¾Üªº²Ä¤@¦æ¨ì¥t¤@Ósheet ¤§¤¤¡C
For Each E In Selection.EntireRow ¡A§ÚÀ³¸Ó«ç»ò§ï¼g
§ï¬°
Set E = Selection(1, 1).EntireRow
Sub setup_cal()
Dim E As Range
Set E = Selection(1, 1).EntireRow
If E.Row > 1 Then
With Sheets("Sheet2")
.[a1] = E.Range("b1") '«È¤á½s¸¹
.[b1] = E.Range("d1") '«È¤á¦WºÙ
.[k2] = E.Range("e1") '¥»´ÁÀ³¦¬
End With
End If
End Sub |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 79
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 123
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- x64
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2013-10-24
- ³Ì«áµn¿ý
- 2024-3-28
|
¦^´_ 2# ML089
«D±`·PÁ§Aªº¦^´_¡Aì¨Ó¬O¥Î set ~~ÁÂÁÂ~~ |
|
¤½¶}¸gÅç¡A³Ð³y´¼¼z¡]§Ú¤S¤£¾a³o¹L¬¡¡^
|
|
|
|
|