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

Àx¦s®æªº³]©w«ç»ò·|¶]±¼©O?

Àx¦s®æªº³]©w«ç»ò·|¶]±¼©O?

With ActiveSheet.QueryTables.Add(Connection:=input_file, Destination:=Range("$A$1"))
         .RefreshStyle = xlInsertDeleteCells
         .AdjustColumnWidth = True
         .TextFilePlatform = 65001
         .TextFileStartRow = 1
         .TextFileParseType = xlFixedWidth
         .TextFileColumnDataTypes = Array(2, 2, 2, 2)
         .TextFileFixedColumnWidths = Array(3, 3, 3)
         .Refresh BackgroundQuery:=False
End With

¤£ºÞ¸ê®Æ¦³¦h¤j,¥H¤Wªºµ{¦¡§â¸ê®ÆŪ¶i¨Ó«á,[A][B][C]Äæ¦ìªºType À³¸Ó´N¬O¤å¦r«¬ºA,¦pªG¶]ªº¹Lµ{³£¤£¥h§ó°Ê¥¦,¬O¤£¬O¤@ª½³£·|¬O"¤å¦r"«¬ºA,¬P´Á¤Ñ¤U¤È¾ã­Ó¤U¤È³£¦b§ì³o¼Ëªº¿ù,¦p¤U:

Dim rs AS string
Dim mystr AS string

rs = "F41"
mystr = "% 08"
Range(rs).Value = mystr

¨ì¬¡­¶Ã¯¥h¬Ý®É,F41 ¶]¥X¨Óªº­È·|Åܦ¨ 8%,¦U¦ì¦³¨Ã¹L³o¼Ëªº°ÝÃD¶Ü?

«á¨Ó¥Î¦p¤Uªº¤è¦¡¸Ñ¨M¤F°ÝÃD:
rs = "F41"
mystr = "% 08"
Range(rs).NumberFormatLocal = "@"
Range(rs).Value = mystr
½Ð°Ý¦U¦ì¦³¤H¦³¨Ã¹L³o¼Ëªº°ÝÃD¶Ü?¦³§ó¦nªº¸Ñ¨M¤èªk¶Ü?
V98

¦^´_ 1# linshin1999
mystr = "'% 08"
¥[¤W'±j¨î¬°¤å¦r«¬ºA

TOP

GBKEE ªO¥D,ÁÂÁÂ!!
V98

TOP

        ÀR«ä¦Û¦b : ·R¤£¬O­n¨D¹ï¤è¡A¦Ó¬O­n¥Ñ¦Û¨­ªº¥I¥X¡C
ªð¦^¦Cªí ¤W¤@¥DÃD