transfer string to number(¤p°ÝÃD½Ð±Ð)
- ©«¤l
- 147
- ¥DÃD
- 46
- ºëµØ
- 0
- ¿n¤À
- 205
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-3-19
- ³Ì«áµn¿ý
- 2021-5-21
|
transfer string to number(¤p°ÝÃD½Ð±Ð)
¥»©«³Ì«á¥Ñ jj369963 ©ó 2013-10-20 19:29 ½s¿è
Dear ¦U¦ì¤j¤j»P«e½úÌ¡G
¦pªþÀÉ¡A·Q±NDÄæ¨ìCOÄæ¦ìÂন¼Æ¦r®æ¦¡¡A¥Ø«e¥Î¥H¤U¥N½X¸Õ¹L¦¨¥\¡Abut ¬On¤@Ó¤@Ó¼g¨ìCOÄæ¶Ü?
½Ð°Ý¬O§_¦³¨ä¥L¤è¦¡?µo°Ý¬O¶i¨Bªºì°Ê¤O¡A¦A·Ð½Ð¦U¦ì¥ý½ú«ü±Ð¡A·PÁÂ- Sub transfer()
- Dim RngHead As Range, DataCunt As Long, i As Long
- Set RngHead = Range("A2")
- DataCunt = Range("A65536").End(xlUp).Row
- Application.ScreenUpdating = False
- For i = RngHead.Row To DataCunt
- If Val(Range("A" & i).Value) <> 0 Then
- Range("A" & i).NumberFormatLocal = "G/³q¥Î®æ¦¡"
- Range("A" & i).Value = Val(Range("A" & i).Value)
- End If
- If Val(Range("F" & i).Value) <> 0 Then
- Range("F" & i).NumberFormatLocal = "G/³q¥Î®æ¦¡"
- Range("F" & i).Value = Val(Range("F" & i).Value)
- End If
- If Val(Range("G" & i).Value) <> 0 Then
- Range("G" & i).NumberFormatLocal = "G/³q¥Î®æ¦¡"
- Range("G" & i).Value = Val(Range("G" & i).Value)
- End If
- If Val(Range("H" & i).Value) <> 0 Then
- Range("H" & i).NumberFormatLocal = "G/³q¥Î®æ¦¡"
- Range("H" & i).Value = Val(Range("G" & i).Value)
- End If
- If Val(Range("I" & i).Value) <> 0 Then
- Range("I" & i).NumberFormatLocal = "G/³q¥Î®æ¦¡"
- Range("I" & i).Value = Val(Range("G" & i).Value)
- End If
- If Val(Range("J" & i).Value) <> 0 Then
- Range("J" & i).NumberFormatLocal = "G/³q¥Î®æ¦¡"
- Range("J" & i).Value = Val(Range("G" & i).Value)
- End If
- Next i
- End Sub
½Æ»s¥N½X
trasfer number.rar (221.16 KB)
|
|
|
|
|
|
|
- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
Dear ¦U¦ì¤j¤j»P«e½úÌ¡G
¦pªþÀÉ¡A·Q±NDÄæ¨ìCOÄæ¦ìÂন¼Æ¦r®æ¦¡¡A¥Ø«e¥Î¥H¤U¥N½X¸Õ¹L¦¨¥\¡Abut ¬On¤@Ó ...
jj369963 µoªí©ó 2013-10-20 19:27
ÃöÁä¬Oµ½¥Î Union »P For Each ¨ç¼Æ :- Sub tf()
- Dim rTar As Range, RngHead As Range
- Dim DataCunt As Long
- Dim vTar
-
- Set RngHead = Range("A2")
- DataCunt = Range("A65536").End(xlUp).Row
- Set rTar = Union(Range(RngHead.Address & ":A" & DataCunt), Range("F" & RngHead.Row & ":J" & DataCunt))
- For Each vTar In rTar
- With vTar
- If .Value <> 0 Then
- .NumberFormatLocal = "G/³q¥Î®æ¦¡"
- .Value = Val(.Value)
- End If
- End With
- Next vTar
- End Sub
½Æ»s¥N½X
trasfer number-a.zip (404.62 KB)
|
|
|
|
|
|
|