- ©«¤l
- 759
- ¥DÃD
- 249
- ºëµØ
- 0
- ¿n¤À
- 1021
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-11-15
|
¥»©«³Ì«á¥Ñ t8899 ©ó 2014-6-16 12:20 ½s¿è
¦^´_ t8899
Àx¦s®æªºReplace¤èªk¡A¬O¹ï¤å¦r¤º®e¨ú¥N¡A¨Ã«D¹ï¤½¦¡¤º®e§@¨ú¥N
nÅý¤½¦¡§ïÅÜ¥i¨Ï¥Î¨ú¥X¤½ ...
Hsieh µoªí©ó 2014-6-16 09:55
[a1]=YEAR(TODAY()) - 1911&"/06/08"
¦pªG§Ú§ï¬° ´À´« &"/06/08" (§Y&«á±ªº¦r¥þ´À´«) ¬° +10 (³o¼Ë§ï«á¤½¦¡¬O¥¿½Tªº,µª®×¬°113)
[a1]=Replace([A1].Formula, "&"/06/08"", "+10")
¥X²{ »yªk¿ù»~ ??
---------------------------------------------------
ì1¼Ó§Ú·Q¨ìªº¥t¥~¤èªk¬O
[a1]=YEAR(TODAY()) - 1911&"/06/08" '¨D ´À´« & ¬° abc
DIM A,B,C,D,E
D = InStr([a1].Formula, Chr(38)) '&¦b¥ªÃä²Ä´X¦r,§Y&¥ªÃä¦@´X¦r(§t&)
A = Left([a1].Formula, D - 1) '¦©±¼& ¡A¨ú&¥ªÃä³Ñ¤Uªº¦r
B = Len([a1].Formula) ' ¥þ³¡ªº¦r¼Æ
C = B - D '& ¥kÃ䪺¦r¼Æ
E = Right([a1].Formula, C) '¥kÃ䪺¦r
[a25].Formula = A & "ABC" & E '<==='µª®× & ¥¢¥h§@¥Î((Á|¨Ò¤£·í,´À´««á¤½¦¡¿ù»~,ÅÞ¿è¹ï(¤TÓÓ§O¥N¤J³£¹ï)) |
|