Tecnologia, programação e muito Visual FoxPro.

sexta-feira, 15 de fevereiro de 2013

Bls: ]] XL-mania [[ mengurutkan sheet sesuai kode dalam 1 file

 

coba pake macro ini...

Sub Sort_Active_Book()
   Dim i As Integer
   Dim j As Integer
   Dim iAnswer As VbMsgBoxResult
   '
 
   '
     iAnswer = MsgBox("Sort Sheets in Ascending Order?" & Chr(10) _
       & "Clicking No will sort in Descending Order", _
       vbYesNoCancel + vbQuestion + vbDefaultButton1, "Sort Worksheets")
     For i = 1 To Sheets.Count
        For j = 1 To Sheets.Count - 1
 
           If iAnswer = vbYes Then
              If UCase$(Sheets(j).Name) > UCase$(Sheets(j + 1).Name) Then
                 Sheets(j).Move After:=Sheets(j + 1)
              End If
 
           ElseIf iAnswer = vbNo Then
              If UCase$(Sheets(j).Name) < UCase$(Sheets(j + 1).Name) Then
                 Sheets(j).Move After:=Sheets(j + 1)
              End If
           End If
       Next j
     Next i
  End Sub



 
Aswar Munap
Inventory Control
PT.TRANS ICE / Baskin Robbins
Graha Trans Coffee
Jl. Raya Duren Tiga No.53-55 Lt.3A
Jakarta 12760
Phone : 021-7947954 (ext-513)



Dari: Riska Natalia <nataliariska27@yahoo.com>
Kepada: "XL-mania@yahoogroups.com" <XL-mania@yahoogroups.com>
Dikirim: Senin, 11 Februari 2013 12:00
Judul: ]] XL-mania [[ mengurutkan sheet sesuai kode dalam 1 file

 
dear XL mania,
bagaimana cara mengurutkan sheet sesuai kode item dalam 1 file?
contoh file terlampir,
FG xxxxxx = kode item nya


terimakasih sebelumnya,
Riska


__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)
Recent Activity:
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| Merry Christmas. May God bless you and your family...             |
+-------------------------------------------------------------------+
| DILARANG : MLM, money game, OOT, iklan tanpa izin, SARA, testing, |
| pembicaraan pribadi, one line message,  melecehkan,  tidak sopan. |
+-------------------------------------------------------------------+
| Buat subjek yang kreatif, jangan : "tanya", "help", "mohon bantu" |
| Usahakan besar attachment < 200 kb. Gunakan  winzip  jika  perlu. |
+-------------------------------------------------------------------+
| Ajak teman-teman Anda bergabung dengan mengirim e-mail kosong ke  |
| XL-mania-subscribe@yahoogroups.com atau kirimkan mereka file dari |
| http://groups.yahoo.com/group/XL-mania/files/Promotion/           |
+-------------------------------------------------------------------+
| Berikan testimoni di :                                            |
| http://www.xl-mania.com/2008/06/testimoni-xl-mania.html           |
+-------------------------------------------------------------------+
| Message lama ada di :                                             |
| http://groups.yahoo.com/group/XL-mania/messages [perlu yahoo id]  |
| http://www.mail-archive.com/xl-mania@yahoogroups.com              |
+-------------------------------------------------------------------+
.

__,_._,___

Nenhum comentário:

Arquivo do blog