Sub 宏1()
'
' 宏1 宏 //用于调整列宽 加边框
'
' 快捷键: Ctrl+w
'
ActiveCell.Cells.Select
ActiveCell.Cells.EntireColumn.AutoFit
ActiveCell.Columns("A:A").EntireColumn.Select
Selection.ColumnWidth = 3.4
ActiveCell.Offset(, ).Columns("A:A").EntireColumn.Select
Selection.ColumnWidth =
ActiveCell.Offset(, ).Columns("A:A").EntireColumn.Select
Selection.ColumnWidth =
ActiveCell.Offset(, ).Columns("A:A").EntireColumn.Select
Selection.ColumnWidth = 6.78
ActiveCell.Offset(, ).Columns("A:A").EntireColumn.Select
Selection.ColumnWidth =
ActiveCell.Offset(, ).Columns("A:A").EntireColumn.Select
Selection.ColumnWidth =
ActiveCell.Offset(, -).Columns("A:A").EntireColumn.Select
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlCenter
.WrapText = True
.Orientation =
.AddIndent = False
.IndentLevel =
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
ActiveCell.Offset(, ).Columns("A:A").EntireColumn.Select
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlCenter
.WrapText = True
.Orientation =
.AddIndent = False
.IndentLevel =
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
ActiveCell.Offset(, -).Range("A1:F75").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex =
.TintAndShade =
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex =
.TintAndShade =
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex =
.TintAndShade =
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex =
.TintAndShade =
.Weight = xlThin
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex =
.TintAndShade =
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex =
.TintAndShade =
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex =
.TintAndShade =
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex =
.TintAndShade =
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex =
.TintAndShade =
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex =
.TintAndShade =
.Weight = xlThin
End With
End Sub Sub 宏2()
'
' 宏2 宏
'
' 快捷键: Ctrl+Shift+O
'
ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, 67.8, 73.2, , _
106.8).Select
Selection.ShapeRange.IncrementRotation -28.98145
Selection.ShapeRange.IncrementLeft -26.4
Selection.ShapeRange.IncrementTop -2.1204724409
Selection.ShapeRange().TextFrame2.TextRange.Characters.Text = ""
Selection.ShapeRange().TextFrame2.TextRange.Characters(, ).ParagraphFormat. _
FirstLineIndent =
With Selection.ShapeRange().TextFrame2.TextRange.Characters(, ).Font
.Bold = msoTrue
.NameComplexScript = "+mn-cs"
.NameFarEast = "+mn-ea"
.Fill.Visible = msoTrue
.Fill.ForeColor.ObjectThemeColor = msoThemeColorDark1
.Fill.ForeColor.TintAndShade =
.Fill.ForeColor.Brightness =
.Fill.Transparency =
.Fill.Solid
.Size =
.Name = "+mn-lt"
End With
Selection.ShapeRange.Fill.Visible = msoFalse
Selection.ShapeRange.Line.Visible = msoFalse
Application.CommandBars("Format Object").Visible = False
With Selection.ShapeRange.TextFrame2.TextRange.Font.Fill
.Visible = msoTrue
.ForeColor.ObjectThemeColor = msoThemeColorDark1
.ForeColor.TintAndShade =
.ForeColor.Brightness =
.Transparency = 0.8299999833
.Solid
End With
End Sub Sub 宏3()
'
' 宏3 宏
'
' 快捷键: Ctrl+Shift+i
'
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Paste
Selection.ShapeRange.IncrementTop
Selection.ShapeRange.IncrementLeft -
ActiveSheet.Paste
Selection.ShapeRange.IncrementTop
Selection.ShapeRange.IncrementLeft -
ActiveSheet.Paste
Selection.ShapeRange.IncrementTop
Selection.ShapeRange.IncrementLeft -
End Sub

最新文章

  1. console使用方法
  2. PHP 获取图像信息 getimagesize 函数
  3. ios-model数据结构
  4. jquery 如何遍历json
  5. 堆的基础题目学习(EPI)
  6. Android 遍历界面控件
  7. 【翻译】Kinect v2程序设计(C++) BodyIndex篇
  8. Hadoop CLI MiniCluster
  9. 动态增加表单元素并获取元素的text和value提交
  10. css 相关算法
  11. My third homework
  12. QR二维码原理(一)
  13. AI人工智能顶级实战工程师 课程大纲
  14. 20155326刘美岑《网络对抗》Exp5 MSF基础应用
  15. laravel框架中报错 DataTables warning: table id=xxx-table - Cannot reinitialise DataTable.
  16. 利用windows的计划任务和eKing.CmdReadFileAndSendEmailOper(控制台小程序)实现远程登录服务器的邮件告警提醒
  17. Optimal Milking POJ - 2112 (多重最优匹配+最小费用最大流+最大值最小化 + Floyd)
  18. ECMAScript6新特性之Reflect
  19. 批量ping工具fping
  20. TCGA系列--TCGA长链非编码RNA的可视化工具TANRIC

热门文章

  1. windows server2012安装mysql时一直停留在start server的解决方法
  2. jQuary总结2: jQuery选择器
  3. javascript总结24:Array常用的队列操作和排序方法
  4. 20169205实验二 Java面向对象程序设计
  5. 【扫盲贴】为什么屏幕分辨率是 640x480
  6. 策略和计费控制(PCC)系统研究
  7. 安装Python-Windows
  8. VCS简介
  9. django DatabaseFunctions
  10. unable browse url when InfoPath Convert to Connection File