Looking to automate

Afogelman

New Member
Joined
Sep 8, 2014
Messages
2
Excel Wizards i am in need of your help to automate 3 processes or macros





Sub Hide()
Dim cell As Range
For Each cell In Range("A1:A200")
If Not IsEmpty(cell) Then
If cell.Value = 0 Then
cell.EntireRow.Hidden = True
End If
End If
Next
End Sub


Sub unhide()
'
' unhide Macro
' unhide
'


'
Cells.Select
Selection.EntireRow.Hidden = False
End Sub
Sub Sort()
'
' Sort Macro
' abc
'


'
Columns("A:A").Select
ActiveWorkbook.Worksheets("Testing").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Testing").Sort.SortFields.Add Key:=Range("A1"), _
SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("Testing").Sort
.SetRange Range("A1:B29")
.Header = xlNo
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub


Hopefully Unhide when one opens document
sort as data is being entered into the first sheet
Hide when closing document

so the hidden data does not take up space when being linked to a presentation


i hope this can be done and i know this is the place to get this answered!

Thank you for your time
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,214,515
Messages
6,119,973
Members
448,933
Latest member
Bluedbw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top