Welcome to my page

Selasa, 19 Juli 2016

VBA Excel : Membandingkan jika ganjil atau genap, If even or odd statement

Hai sanak saudara,

Kali ini sharing tentang jika angka ganjil/genap di suatu cell maka :


Cekidot :


ThisWeek = Sheets("MASTER FUNCTION").Cells(5, 11).Value ' cell yang jadi patokan
If ThisWeek Mod 2 = 1 Then
GoTo 1 'perintah selanjutnya
End If



Terimakasih,

Mbahe


_____________________________________________________________________

IMPORTANT - This email and any attachments may be confidential and privileged. 

If received in error, please contact Thiess and delete all copies.  You may not

rely on advice and documents received by email unless confirmed by a signed Thiess

letter.  This restriction on reliance will not apply to the extent that the above email

communication is between parties to a contract and is authorised under that contract.

Before opening or using attachments, check them for viruses and defects.  Thiess'

liability is limited to resupplying any affected attachments. THIESS PRIVACY STATEMENT

 

Kamis, 14 Juli 2016

VBA Excel : Membuat tanggal menjadi format teks dalam sebuah formula, put date as format text in a formula

Hai bloger, sekedar sharing agar tanggal dapat diatur formatnya dalam formula (tidak berbentuk angka).. 


coba dengan rumus ini : =TEXT($A$1,"mmm-yy"


Terimakasih,

Mbahe


_____________________________________________________________________

IMPORTANT - This email and any attachments may be confidential and privileged. 

If received in error, please contact Thiess and delete all copies.  You may not

rely on advice and documents received by email unless confirmed by a signed Thiess

letter.  This restriction on reliance will not apply to the extent that the above email

communication is between parties to a contract and is authorised under that contract.

Before opening or using attachments, check them for viruses and defects.  Thiess'

liability is limited to resupplying any affected attachments. THIESS PRIVACY STATEMENT

 

Senin, 11 Juli 2016

VBA Excel : Menghitung jumlah row yang ter filter, count row filtered

Sub hitunguntukproses


Dim X As Long

X = ActiveSheet.AutoFilter.Range.Columns(1).SpecialCells(xlCellTypeVisible).Cells.Count - 1

For Y = 0 To X Step 1
Call proses
Next Y

End sub

_____________________________________________________________________

IMPORTANT - This email and any attachments may be confidential and privileged. 

If received in error, please contact Thiess and delete all copies.  You may not

rely on advice and documents received by email unless confirmed by a signed Thiess

letter.  This restriction on reliance will not apply to the extent that the above email

communication is between parties to a contract and is authorised under that contract.

Before opening or using attachments, check them for viruses and defects.  Thiess'

liability is limited to resupplying any affected attachments. THIESS PRIVACY STATEMENT

 

VBA Excel : Unfilter / buka semua filter dalam sebuah sheet tanpa menghapus filter, Unfilter all data without erase filter

Sub UNFILTER_DATA()

If ActiveSheet.FilterMode = True Then
ActiveSheet.ShowAllData
End If
On Error Resume Next

End Sub

_____________________________________________________________________

IMPORTANT - This email and any attachments may be confidential and privileged. 

If received in error, please contact Thiess and delete all copies.  You may not

rely on advice and documents received by email unless confirmed by a signed Thiess

letter.  This restriction on reliance will not apply to the extent that the above email

communication is between parties to a contract and is authorised under that contract.

Before opening or using attachments, check them for viruses and defects.  Thiess'

liability is limited to resupplying any affected attachments. THIESS PRIVACY STATEMENT

 

VBA Excel : Membuka / mengaktifkan worksheet excel dengan partial nama, Open or activate excel worksheet with partial name

Sub BUKA_FIRST_TIME()

    Dim winAPP As Window
    For Each winAPP In Application.Windows
        If winAPP.Caption Like "*nama dokumen kamu*" Then 'ganti nama dokumen kamu / change your document name
            winAPP.Activate
            Exit For
        End If
    Next

End Sub

_____________________________________________________________________

IMPORTANT - This email and any attachments may be confidential and privileged. 

If received in error, please contact Thiess and delete all copies.  You may not

rely on advice and documents received by email unless confirmed by a signed Thiess

letter.  This restriction on reliance will not apply to the extent that the above email

communication is between parties to a contract and is authorised under that contract.

Before opening or using attachments, check them for viruses and defects.  Thiess'

liability is limited to resupplying any affected attachments. THIESS PRIVACY STATEMENT