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

¨ú¥N,«á¡A«e­±ªº0ÁÙ«O¯d(¤p°ÝÃD½Ð±Ð)¡AÁÂÁÂ

¨ú¥N,«á¡A«e­±ªº0ÁÙ«O¯d(¤p°ÝÃD½Ð±Ð)¡AÁÂÁÂ

Dear ¤j¤j­Ì¡G

·Q½Ð£¸­Ó°ÝÃD¡A¦pªþÀÉ
¦bFÄ榳«Ü¦h¼Æ¦r¡A·Q±N , ¥h°£¡A¦ý«O¯d«e­±ªº 0
¦p000,95  Åܦ¨00095 (®æ¦¡¡G¼Æ­È)
¼g¤F¨âºØ»yªk

Sub Replace_comma()
With [F:F] '¾Ç¸¹ªºÄæ¦ì
.Replace ",", "", xlWhole '±N,§R°£
End With
End Sub


µ²ªG¡G¨S¤ÏÀ³

Sub Replace_comma()
Range("F:F").Select
Selection.Replace What:=",", Replacement:="", LookAt:=xlPart, _
        SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
        ReplaceFormat:=False
End Sub

µ²ªG¡G¦¨¥\¡A¦ý«e­±ªº0¤£¨£¤F¡A©Ò¥H¤£¬O§Ú­nªº

©Ò¥H¨Ó½Ð¯q¦U¦ì¤j¤j­Ì
¦A·Ð½Ð«ü±Ð

·PÁÂ test_2.rar (16.26 KB)

¦^´_ 1# jj369963

¸Õ¬Ý¬Ý³o¼Ë²Å¦X§Aªº»Ý¨D¶Ü¡H
  1. Sub test()
  2. For Each r In [f2:f48]
  3. r.Value = "'" & r
  4. Next
  5. Range("F:F").Select
  6. Selection.Replace What:=",", Replacement:="", LookAt:=xlPart, _
  7.         SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
  8.         ReplaceFormat:=False
  9. End Sub
½Æ»s¥N½X

TOP

¦^´_ 1# jj369963
  1. Option Explicit
  2. Sub Ex()
  3.     Dim E As Range
  4.     For Each E In Range("f:f").SpecialCells(xlCellTypeConstants)
  5.         E.Value = "'" & Replace(E, ",", "")
  6.     Next
  7. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 3# GBKEE


    Dear  GBKEE »Powen06 ¤j¤j¡G

        ·PÁ±z­Ìªº¦^À³¡AÁÂÁ¡C»yªk³£¦³¦¨¥\¡A¥Ø«eÁÙ¦b§V¤O¬ÝÀ´»yªk¤¤(ªñ¤é¤~±µÄ²vba)¡A¤£¹L«D±`·PÁ±z­Ì¥Î¤ßªº¦^ÂСC
          ¦³¤H¥i¥H£¸°_°Q½×¯u¦n¡A¦A¦¸·PÁ¡C

TOP

        ÀR«ä¦Û¦b : µoµÊ®ð¬Oµu¼ÈªºµoºÆ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD