Excel VBA 質問スレ Part80(ワッチョイあり) (101レス)
Excel VBA 質問スレ Part80(ワッチョイあり) http://mevius.5ch.net/test/read.cgi/tech/1700826110/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
必死チェッカー(本家)
(べ)
自ID
レス栞
あぼーん
52: デフォルトの名無しさん (ブーイモ MM02-Ky5X) [sage] 2024/04/09(火) 14:44:25.19 ID:EBugvdEwM >>47 Sub 全自動で表を作るMacro1() Dim da As Date da = "1/1" 'この日からスタート ro = 2 For we = 1 To 52 '52週間分作る Cells(ro, 3).Resize(1, 3) = Array("a", "b", "c") For lo = 1 To 7 Cells(ro + lo, 2) = da da = da + 1 Next Set ra = Cells(ro, 2).Resize(8, 4) ra.Borders(xlEdgeLeft).LineStyle = xlContinuous ra.Borders(xlEdgeLeft).Weight = xlMedium ra.Borders(xlEdgeRight).LineStyle = xlContinuous ra.Borders(xlEdgeRight).Weight = xlMedium ra.Borders(xlEdgeTop).LineStyle = xlContinuous ra.Borders(xlEdgeTop).Weight = xlMedium ra.Borders(xlEdgeBottom).LineStyle = xlContinuous ra.Borders(xlEdgeBottom).Weight = xlMedium ra.Borders(xlInsideVertical).LineStyle = xlContinuous ra.Borders(xlInsideVertical).Weight = xlMedium ra.Borders(xlInsideHorizontal).LineStyle = xlContinuous ra.Borders(xlInsideHorizontal).Weight = xlMedium ro = ro + 8 Next Range("B:B").Font.Name = "MS 明朝" Range("C:E").Font.Name = "MS ゴシック" Range("B:E").Font.Bold = True Range("B:B").NumberFormatLocal = "m月d日 (aaa)" End Sub http://mevius.5ch.net/test/read.cgi/tech/1700826110/52
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.477s*