ªð¦^¦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

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

TOP

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

TOP

        ÀR«ä¦Û¦b : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD