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

[µo°Ý] ½Ð°Ý¦p¦ó±N°¸¼Æ¦Cªº¤å¦rÂন¼Æ­È(¤w¦³°ò¥»»yªk ¦ý¤£·|²Õ¦X)

[µo°Ý] ½Ð°Ý¦p¦ó±N°¸¼Æ¦Cªº¤å¦rÂন¼Æ­È(¤w¦³°ò¥»»yªk ¦ý¤£·|²Õ¦X)

¦U¦ì¤j¤j¦n

¤p§Ìªñ´Á¶}©l¨Ï¥ÎVBµ{¦¡

¦]¬°¬O¥H»Ý¨D¾É¦V¬°¥D ²{¦b¦h¥Î¿ý»s¥¨¶°¦b¥h­×§ï

²{¦b§Æ±æ¯à±N°¸¼Æ¦Cªº¤å¦r(¬O¼Æ¦r)Âন¼Æ­È(¥i¥H¥[Á`ªºÃþ«¬)

¥Ø«e¬O¥Î¤gªk·Ò¿ûªk¿ï¨ú°¸¼Æ¦C  Range(" 2:2,4:4,6:6 ").select

ª¦¤å¤F¸Ñ¨Ï¥Î¨ç¼Æ =mod(row(),2)=0 ¥i¥H¤@¦¸¿ï¨ú°¸¼Æ¦C

Âà´«¼Æ­Èªº»yªk   Range("2:2,4:4,6:6').NumberFormatLocal = "G/³q¥Î®æ¦¡"

¨ì³oÃä¤p§Ì´N¥dÃö¤F ¤£ª¾¹D¬O§_¦³¸Ñ¨M¤èªk

ÁÂÁÂ

¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-11-8 15:48 ½s¿è

¦^´_ 26# owen06
ª½±µ¼gsheet1¡A´N¤£¯à¦b¨ä¥LÀɮש³¤U°õ¦æ,¦]sheet1«ü³oÀɮתº¤u§@ªí¼Ò²Õ¦WºÙ,ÁöµM¨ä¥LÀɮפ]¦³sheet1ªº¤u§@ªí¼Ò²Õ¦WºÙ,
³oÀɮתºµ{¦¡½X¤¤µLªk¤Þ¥Î¨ä¥LÀɮתºª«¥ó,
¶·¦p¦¹
  1. ActiveWorkbook.Sheets ("sheet1") '¦WºÙ
  2.     ActiveWorkbook.Sheets (1)        '¯Á¤Þ­È
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 24# GBKEE


   ¶¶«KÂdzo­Ó°ÝÃD½Ð±Ð¤@¤Uª©¥D¡A¬°¤°»ò³o­Ócase¡A
   §Úª½±µ¼gsheet1¡A´N¤£¯à¦b¨ä¥LÀɮש³¤U°õ¦æ¡A
   ¦ý¦pªG§ï¦¨³£sheets("sheet1")¡A´N¥i¥H³q¥Î¤F¡A
   ½Ð°Ý³o¬O¤°»ò­ì¦]©O¡H·Ð½Ð½ç±Ð¡AÁÂÁÂ~

TOP

¦^´_ 22# HCG10G8bear


¦b¬Ý¤F§A¤§«eªþªº¹Ï¤§«á¡A§Ú·QÀ³¸Ó§ä¥X­ì¦]¤F¡A
§A¦ü¥G¬O¦³¥t¥~¥Î¦³¤@­Ó¥spersonalªºexcelÀɨÓÀx¦s¼Ò²Õ¡A
µM«á¦A¶}¨ä¥LexcelÀɨӰõ¦æpersonal¸Ì¼Ò²Õªºµ{¦¡¡A
¦Ó§Ú¼gªº®É­Ô³æ¯Âªº¬O¥H¦b¦P¤@­ÓÀɮש³¤Uªº¤è¦¡¨Ó¼gªº¡A
¨Ã¨S¦³ª`·N¨ì³o­Óª¬ªp¡A©Ò¥H¤~·|³y¦¨³o¨Ç°ÝÃD¡C

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-11-8 13:59 ½s¿è

¦^´_ 1# HCG10G8bear
³o»yªk¿ù»~ Range("2:2,4:4,6:6').NumberFormatLocal = "G/³q¥Î®æ¦¡"
  1. Range("2:2,4:4,6:6").NumberFormatLocal = "G/³q¥Î®æ¦¡"
½Æ»s¥N½X
¦^´_ 17# HCG10G8bear
UsedRange¬O¤u§@ªíªºª«¥ó(¤u§@ªí¤¤¤w¨Ï¥Îªº½d³ò)
¤u§@ªí¼Ò²Õ¤¤¨Ï¥ÎUsedRange´N¬O«ü³o¤u§@ªíªºUsedRange (¦ý¥i¦p:Sheet1¼Ò²Õ¤¤¿é¼g, Sheet2.UsedRange)
¦b¤@¯ë¼Ò²Õ¤¤(«D¤u§@ªí¼Ò²Õ)¨S¦³«ü©úUsedRangeªº¤÷¼h(¤u§@ªí),¹q¸£«Ü²Â¤£·|¬Ý¬ï¨Ï¥ÎªÌªº¤ß«ä,´N»¡§ä¤£¨ìª«¥ó
¦^´_ 22# HCG10G8bear
PERSONAL¼Ò²Õ¤¤µ{¦¡½X¥i­×§ï¦p¤U
  1. For I = 2 To ActiveWorkbook.ActiveSheet.UsedRange.Rows.Count Step 2
½Æ»s¥N½X
¦^´_ 23# HCG10G8bear

SpecialCells¤èªk ¥»°Q½×°Ï¦³¦h½gªº°Q½×,¤]¥i¸Ô¬ÝVBA»¡©ú
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 21# Hsieh


¶W¯Åª©¥D±z¦n

±zªºµ{¦¡½X¦³¥Î ¥i¥H¥¿±`°õ¦æ

¤£¹L§Ú¬Ý¤£¤ÓÀ´³o­Ó¦a¤è

Columns("B:B").SpecialCells(xlCellTypeConstants, 1)

¥i§_³Â·Ð±zÄÀºÃ¸Ñ´b

ÁÂÁ±z

TOP

¥»©«³Ì«á¥Ñ HCG10G8bear ©ó 2013-11-8 13:37 ½s¿è

¦^´_ 20# owen06

½d¨ÒÀÉ.zip (14.19 KB)
owen06¤j

ªþÀɳ£¬O¤½¥q©Ò¬d¸ßªº®w¦s

¥Ñ¤½¥q¨t²ÎÂনExcel®É ¦U¤Ø¤oªº¼Æ¦r¬°¤å¦rÀÉ µLªk¥[Á`

©Ò¥Hµo©«¸ß°Ý­n¦p¦ó±N¯S©wªº°¸¼Æ¦CÀx¦s®æÂà´«¦¨¼Æ­È

¥Ø«e°õ¦æª¬ªp¬O¤£·|¥X²{°õ¦æ¶¥¬q¿ù»~

¦ý¬O°õ¦æ«á¤]¨S¦³±N¦U¤Ø¤oªº¼Æ¦r(¤å¦r)Âন¥i­pºâªº¼Æ­È







¤£¦n·N«ä ¤@ª½³Â·Ð±z

ÁÂÁ±z

[attach]16637[/attach]

TOP

¦^´_ 19# HCG10G8bear
¥H§Aªº¸ê®Æ¯S©Ê¥Î¯S®íÀx¦s®æ¥iÁקK°j°é
  1. Sub ex()
  2. With Sheets("Sheet1")
  3. .Columns("B:B").SpecialCells(xlCellTypeConstants, 1).EntireRow.NumberFormat = "#"  '§ïÅÜÀx¦s®æ®æ¦¡
  4.    With .UsedRange
  5.    .Value = .Value  '­«·s¶ñ¤J¸ê®Æ
  6.    End With
  7. End With
  8. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 19# HCG10G8bear


§A­n¤£­n§â§A¦Û¤v¨Ï¥Î¡A¦³°ÝÃDªº¨º­ÓÀɮשñ¤W¨ÓÅý§Ú­ÌÀ°§AÀˬd¤@¤U¡H
¦]¬°§A»¡ªº°ÝÃD§Ú¦b°õ¦æ¤W³£¨Sµo¥Í¡A³o¼Ë­n¹jªÅ§â¯ß¬O¦³ÂI§xÃøªº¡C

TOP

¦^´_ 18# owen06

owen06¤j¤j

³o¼Ë¤l°õ¦æ´N¤£·|µo¥Í°õ¦æ¶¥¬q¿ù»~¤F

¦ý¬O

¥¦ªº­È¤£·|Åܦ¨¼Æ¦r­C

´N¬O°õ¦æ«á¨S¦³¥ô¦óÅܤÆ

§Ú¬Ý¤F¦n¤[ ¦n¹³¤]¨S¦³¦a¤è¤Ösheet1

¬OÁÙ­n§ï»yªk¶Ü?

TOP

        ÀR«ä¦Û¦b : ¡i¦æµ½­n¤Î®É¡j¦æµ½­n¤Î®É¡A¥\¼w­n«ùÄò¡C¦p¿N¶}¤ô¤@¯ë¡A¥¼¿N¶}¤§«e¤d¸U¤£­n°±º¶¤õ­Ô¡A§_«h­«¨Ó´N¤Ó¶O¨Æ¤F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD