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

transfer string to number(¤p°ÝÃD½Ð±Ð)

Dear ¦U¦ì¤j¤j»P«e½ú­Ì¡G

¦pªþÀÉ¡A·Q±NDÄæ¨ìCOÄæ¦ìÂন¼Æ¦r®æ¦¡¡A¥Ø«e¥Î¥H¤U¥N½X¸Õ¹L¦¨¥\¡Abut ¬O­n¤@­Ó ...
jj369963 µoªí©ó 2013-10-20 19:27

ÃöÁä¬Oµ½¥Î Union »P For Each ¨ç¼Æ :
  1. Sub tf()
  2.   Dim rTar As Range, RngHead As Range
  3.   Dim DataCunt As Long
  4.   Dim vTar
  5.   
  6.   Set RngHead = Range("A2")
  7.   DataCunt = Range("A65536").End(xlUp).Row
  8.   Set rTar = Union(Range(RngHead.Address & ":A" & DataCunt), Range("F" & RngHead.Row & ":J" & DataCunt))
  9.   For Each vTar In rTar
  10.     With vTar
  11.       If .Value <> 0 Then
  12.        .NumberFormatLocal = "G/³q¥Î®æ¦¡"
  13.        .Value = Val(.Value)
  14.       End If
  15.     End With
  16.   Next vTar
  17. End Sub
½Æ»s¥N½X
trasfer number-a.zip (404.62 KB)

TOP

        ÀR«ä¦Û¦b : ¤H¥Í¨S¦³©Ò¦³Åv¡A¥u¦³¥Í©Rªº¨Ï¥ÎÅv¡C
ªð¦^¦Cªí ¤W¤@¥DÃD