outline
Sub name()
'
' name macro
' descrption
' keyboard shortcut Ctrl +Shift+D
End Sub
choose language
'选择单元格
Range("A1,B2:D12").Select
'选择行
Rows("3:3").Select
'选择列
Columns("D:D").Select
'选择表
Sheets("sheet2").Select
operate on the selection(ctrl+c、ctrl+x、Ctrl+b、ctrl+I)
Selection.Copy
Selection.Cut
Selection.Font.bond = True
Selection.Font.Italic = True
- KEY Tab can used to 缩进
CTRL+A
Range("a2").CurrentRegion.Select
ctrl+directions
Selection.End(xlToLeft).Select
Selection.End(xlUp).Select
Selection.End(xlToRight).Select
Selection.End(xlDown).Select
ADJUST THE WINDOWS through the roll
ActiveWindow.SmallScroll Down:=1
ActiveWindow.SmallScroll ToRight:=-1
"ActiveWindow.ScrollRow = 2
ActiveWindow.ScrollColumn = 1"
l have the question for this code,something is wrong
ActiveWindow.LargeScroll Down:=1
set the color of the background
With Selection.Interior
.Pattern = xlGray25
.PatternThemeColor = xlThemeColorAccent1
.ThemeColor = xlThemeColorAccent4
.TintAndShade = -0.249946592608417
.PatternTintAndShade = 0
End With
with language :omit the subject
With Selection.Interior
End with
author :llovewyq
you are the most wonderful scenery of my life