Dear
Saya membuat satu macro yang bekerja jika user menekan ‘Ctrl + C’/copy maka macro akan berfungsi dengan menggunakan shortcut key yg sama ‘Ctrl + C” melalui option macro.
Macro nya berjalan dengan baik, tetapi yang saya ingin tanyakan mengapa jika saya membuka workbook baru atau workbook yang lain macro tersebut tetap bekerja.
Bagaimana caranya jika macro tersebut hanya bekerja pada satu workbook tertentu saja/satu worksheet tertentu saja
Mohon pencerahannya
Sub Macro1()
Dim Address As String
Dim row As Integer
Dim col As Integer
Address = Selection.Address(RowAbsolute:=False, ColumnAbsolute:=False)
row = Int(Mid(Address, 2, 5))
col = 2
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
Selection.Copy
Worksheets("Sheet1").Cells(row, col).Value = "Already Copied at" & Now()
Worksheets("Sheet1").Cells(row + 1, 1).Activate
End Sub
This email and any attachments are confidential and may also be privileged. If you are not the addressee, do not disclose, copy, circulate or in any other way use or rely on the information contained in this email or any attachments. If received in error, notify the sender immediately and delete this email and any attachments from your system. Emails cannot be guaranteed to be secure or error free as the message and any attachments could be intercepted, corrupted, lost, delayed, incomplete or amended. Standard Chartered PLC and its subsidiaries do not accept liability for damage caused by this email or any attachments and may monitor email traffic.
Standard Chartered PLC is incorporated in England with limited liability under company number 966425 and has its registered office at 1 Aldermanbury Square, London, EC2V 7SB.
Standard Chartered Bank ("SCB") is incorporated in England with limited liability by Royal Charter 1853, under reference ZC18. The Principal Office of SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the United Kingdom, SCB is authorised and regulated by the Financial Services Authority under FSA register number 114276.
If you are receiving this email from SCB outside the UK, please click http://www.standardchartered.com/global/email_disclaimer.html to refer to the information on other jurisdictions.
| Selamat jalan SitiVi, semoga bahagia di sisi-Nya... |
| Maaf moderasi lemooOooOott... momods siboek |
+-------------------------------------------------------------------+
| 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:
Postar um comentário