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

¦Û°Ê§R°£ªÅ¥Õ¦C

¦Û°Ê§R°£ªÅ¥Õ¦C

¦U¦ì¤j¤j¦­±á, ½Ð¬Ýªþ¥ó,
Book1.zip (2.49 KB)



¶À¦â³¡¥÷¬Opivot table, ºñ¦â³¡¥÷¬O­n§R°£ªºªÅ¥Õ¦C

¤p§Ì·Q½Ð±Ð¤U, ¦]¬°¨C¦¸insert pivot table ³£¤£¤@¼Ë. ¦³®É¦h, ¦³®É¤Ö, §ÚÀ³¸Ó¦p¦ó¤~¥i¥H§R°£¤U­±ªºªÅ¥Õ¦C ??

¦U¦ì¤j¤j¦­±á, ½Ð¬Ýªþ¥ó,




¶À¦â³¡¥÷¬Opivot table, ºñ¦â³¡¥÷¬O­n§R°£ªºªÅ¥Õ¦C

¤p§Ì·Q½Ð±Ð¤U, ¦] ...
yowhome µoªí©ó 2013-4-9 09:55



´£¨Ñ­Ó¤p¤èªk
Sub owg()
Dim nt, un As String

nt = "NTHDE"
un = "UNIT NB"

For goe = 1 To 65535
    If Cells(goe, 2) = nt Then kn = goe + 2
    If Cells(goe, 2) = un Then ku = goe - 2

Next
'    Rows("36:36").Select '§R°£¾ã¦C

    Range("b" & kn, "j" & ku).Select
    Selection.Delete Shift:=xlUp
End Sub

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_ 2# mark15jill


    §A¦n... §Ú¹Á¸Õ¹L, ¥i¥H¤F, ¤£¹L·Q°Ý¤U, ¦]¬°table ¤J­±¸ê®Æ·|§ïÅÜ, ¦pªG§Ú­n¥ÎGRAND TOTAL ¶}©l,

ËݧڴN±i nt = "NTHDE" §ï¬° nt= "grand total", ¸ò¦í´Nerror, §Ú¤SÀ³¦p¦ó¼gªk©O ??

TOP

¦^´_ 3# yowhome


    ¤£¦n·N«ä, §Ú¦¨¥\¤F, ­ì¨Ó­n¤j²Ó¬Û¦P. ÁÂÁÂ!!

TOP

¥»©«³Ì«á¥Ñ mark15jill ©ó 2013-4-9 13:45 ½s¿è
¦^´_  yowhome


    ¤£¦n·N«ä, §Ú¦¨¥\¤F, ­ì¨Ó­n¤j²Ó¬Û¦P. ÁÂÁÂ!!
yowhome µoªí©ó 2013-4-9 13:16



  1.µ{¦¡ªº +2    -2  ¬O¬Ý©pªº nt ©M un ¥H¤Î·Q­n¯dªºªÅ¥Õ¦Ó©w..
  2. nt   un ªº¤å¦r¥i§ó´«¡A¦ý­^¤å¤j¤p¼g­n¬Û¦P¡A¤£µM·|µL¸ê®Æ
3.¤§©Ò¥H¥Î "NTHDE"  ¬O¦]¬° ³æ¤@Àx¦s®æ¤ñ¸û¦n§PÂ_..


    nt = "NTHDE"
un = "UNIT NB"


    If Cells(goe, 2) = nt Then kn = goe + 2   
    If Cells(goe, 2) = un Then ku = goe - 2

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_ 5# mark15jill

Book1.zip (7.1 KB)
    §A¦n, ¤p§Ì¤Sµo²{¦³°ÝÃD, ¤p§Ì¥Î§A³o­Ó¤èªk¹Á°µ¤@­Órange selection,

Dim RS, GT As String

RS = "REMARKS:"
GT = "Grand Total"

For GOE = 1 To 65535
    If Cells(GOE, 2) = RS Then RS1 = GOE + 2 ' ²Ä¤G¦æÀx¦s®æ§t¦³REMARKS:
    If Cells(4, GOE) = GT Then GT1 = GOE + 2 ' ²Ä¥|¦CÀx¦s®æ§t¦³Grand Total


Next

    Range("A1", GT1 & RS1).Select
    Selection.Copy

¦ý«Y (    If Cells(4, GOE) = GT )  ¥X²{error, §ÚÀ³¦p¦ó¸Ñ¨M©O ??

TOP

¥»©«³Ì«á¥Ñ mark15jill ©ó 2013-4-10 10:32 ½s¿è
¦^´_  mark15jill


    §A¦n, ¤p§Ì¤Sµo²{¦³°ÝÃD, ¤p§Ì¥Î§A³o­Ó¤èªk¹Á°µ¤@­Órange selection,

Dim R ...
yowhome µoªí©ó 2013-4-10 09:59



    ¤@¤U¤l§ä¦C  ¤@¤U¤l§ä¦æ  ·íµM¿ù»~...
    Äæ¦L¶H¤¤ ¤£¯à¶W¹L256
     ·Q­n¸ß°Ýªº¬O¤°»ò?

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_ 6# yowhome
¤£¬O­n§R°£ºñ¦â³¡¤Àªº¾ã¦C¶Ü?
¤]´N¬O¶Àªí®æ¤U­±¯d2¦CªÅ¥Õ¦C¤£¬O¶Ü?
  1. Sub ex()
  2. With ActiveSheet.UsedRange
  3. Set rng = .Columns(2).SpecialCells(xlCellTypeBlanks)
  4. For Each a In rng.Areas
  5.    If a.Count > 2 Then a.Cells(1).Offset(1).Resize(a.Count - 2, 1).EntireRow.Delete
  6. Next
  7. End With
  8. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 7# mark15jill


    ¤£¦n·N«ä, §Ú¤S»¡±o¤£²M·¡¤F, ¬O³o¼Ëªº:

§Ú·Q­nªº¬O¤@­Ó½d³òSELECTION. ½d³ò«Y¥ÑA1¶}©l¨ì ²Ä¥|¦CGRAND TOTAL ¦V¥k¤G¦æ,  ¤Î REMARKS: ¤Uªº2¦æ,

¦pªG¥Î BOOK1.XLS ´N¬O A1:L30, ¦ý¬O¥Ñ©ó§Ú¨C¦¸´¡¤JªºPIVOT TABLE ¤j¤p³£¤£¤@¼Ë, ©Ò¥H¥u¦n¹Á¸Õ¥Î³o­Ó¤èªk,

§Ú·Q½Ð°Ý¤U§ÚÀ³¦p¦ó°µ©O ?

TOP

¦^´_ 8# Hsieh


    §A¦n. ¨ä¹ê³o­Ó°ÝÃD¤w¸g¸Ñ¨M¤F, ¥u¬O¥t¦³¤@­Ó°ÝÃD, §Ú¤S¤£·Q°Ý·s¸ÜÃD, ©Ò¥H¦b¦¹Ä~Äò, ¤£¦n·N«ä

TOP

        ÀR«ä¦Û¦b : Ãø¦æ¯à¦æ¡AÃø±Ë¯à±Ë¡AÃø¬°¯à¬°¡A¤~¯àª@µØ¦Û§Úªº¤H®æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD