1. Select cell (misal B8)
2 Jalankan makro "BulanInBorders"
2 Jalankan makro "BulanInBorders"
a. Tekan Alt+F8 >
b. Pilih Nama makro ("BulanInBorders")
c. Tekan tombol RUN
b. Pilih Nama makro ("BulanInBorders"
c. Tekan tombol RUN
'-----------------------------
Sub BulanInBorders()
'// siti Vi //
Dim b As Byte
Const bln As String = "JanPebMarAprMeiJunJulAguSepOktNopDes"
For b = 1 To 12
With ActiveCell(1, b)
.Value = Mid(bln, b * 3 - 2, 3)
.Font.Bold = True
.BorderAround Weight:=xlMedium
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
End With
Next
With ActiveCell(1, Month(Date) - 1).Borders(xlDiagonalDown)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With ActiveCell(1, Month(Date) - 1).Borders(xlDiagonalUp)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
ActiveCell(2, 1).Select
End Sub
'-----------------------------
'// siti Vi //
Const bln As String = "JanPebMarAprMeiJun
For b = 1 To 12
With ActiveCell(1, b)
.Value = Mid(bln, b * 3 - 2, 3)
.Font.Bold = True
.BorderAround Weight:=xlMedium
.HorizontalAlignmen
.VerticalAlignment = xlCenter
End With
Next
With ActiveCell(1, Month(Date) - 1).Borders(xlDiagon
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With ActiveCell(1, Month(Date) - 1).Borders(xlDiagon
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
ActiveCell(2, 1).Select
End Sub
'-----------
From: antonius sagala
To: XL-mania@yahoogroup
Sent: Monday, October 26, 2009 09:54AM
Subject: ]] XL-mania [[ Membuat "border" secara otomatis
Bisa gak yach di XL dibuat suatu kondisi yang memungkinkan hasil seperti terlampir.
Rgrds
Antonius
__._,_.___
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| Moderasi akan lambat minggu ini, momods pergi ke tempat jauh |
| http://www.facebook.com/group.php?gid=37671048001&ref=mf |
+-------------------------------------------------------------------+
| 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.friendster.com/xlmania atau... |
| 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 |
+-------------------------------------------------------------------+
| Moderasi akan lambat minggu ini, momods pergi ke tempat jauh |
| http://www.facebook.com/group.php?gid=37671048001&ref=mf |
+-------------------------------------------------------------------+
| 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.friendster.com/xlmania atau... |
| 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 |
+-------------------------------------------------------------------+
MARKETPLACE
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
.
__,_._,___
Nenhum comentário:
Postar um comentário