I have a workbook that has some VBA coding in it. I did not create the code (nor am I an expert in VBA). Can someone please tell me what these two module codes are doing:
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #011993; background-color: #ffffff}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; background-color: #ffffff; min-height: 13.0px}p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}span.s1 {color: #000000}span.s2 {color: #011993}</style>Option Explicit
Dim ws As Worksheet
Sub Home_Range()
For Each ws In Worksheets
ws.Activate
ws.Range("A1").Select
Next ws
Worksheets(1).Activate
End Sub
-------------------------------------------
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #011993; background-color: #ffffff}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; background-color: #ffffff; min-height: 13.0px}p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff; min-height: 13.0px}span.s1 {color: #000000}span.s2 {color: #011993}</style>
Option Explicit
Dim ws As Worksheet
Sub szColumns()
For Each ws In Worksheets
If ws.Index >= 3 Then
ws.Activate
ws.Rows("1:2").RowHeight = 48
ws.Columns("A").ColumnWidth = 4.43
ws.Columns("B").ColumnWidth = 13.14
ws.Columns("C").ColumnWidth = 83.29
ws.Columns("D").ColumnWidth = 56.86
ws.Columns("E:G").ColumnWidth = 11.71
ws.Columns("H:I").ColumnWidth = 7.43
ws.Columns("J:L").ColumnWidth = 8.43
ws.Columns("M").ColumnWidth = 10#
End If
Next ws
End Sub
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #011993; background-color: #ffffff}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; background-color: #ffffff; min-height: 13.0px}p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}span.s1 {color: #000000}span.s2 {color: #011993}</style>Option Explicit
Dim ws As Worksheet
Sub Home_Range()
For Each ws In Worksheets
ws.Activate
ws.Range("A1").Select
Next ws
Worksheets(1).Activate
End Sub
-------------------------------------------
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #011993; background-color: #ffffff}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; background-color: #ffffff; min-height: 13.0px}p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff; min-height: 13.0px}span.s1 {color: #000000}span.s2 {color: #011993}</style>
Option Explicit
Dim ws As Worksheet
Sub szColumns()
For Each ws In Worksheets
If ws.Index >= 3 Then
ws.Activate
ws.Rows("1:2").RowHeight = 48
ws.Columns("A").ColumnWidth = 4.43
ws.Columns("B").ColumnWidth = 13.14
ws.Columns("C").ColumnWidth = 83.29
ws.Columns("D").ColumnWidth = 56.86
ws.Columns("E:G").ColumnWidth = 11.71
ws.Columns("H:I").ColumnWidth = 7.43
ws.Columns("J:L").ColumnWidth = 8.43
ws.Columns("M").ColumnWidth = 10#
End If
Next ws
End Sub