DaveRadford
Board Regular
- Joined
- Feb 18, 2010
- Messages
- 63
Afternoon,
I have a couple of macros that i call on that refer to other worksheets within the workbook, i want to hide these so the users of the spreadsheet will not see the data and will not know what is happening in the background.
Bit of Background Info:
I am attempting to it this way as i have a list in a form, depending on what the user selects would determine what is selectable in the next form control.
As data within the list will have the duplicates codes but different SubCodes i am filtering and then creating a list for named range to display in form. Users will nto want to see duplicate data in the 1st list hence this way.
My issue is i dont want users to see what im doing and i dont want them to have to see the sheet.
Any help would be appreciated.
My macros are:
Sub WSFilter()
Sheets("WS").Select
Columns("C:C").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$C$9").AutoFilter Field:=1, Criteria1:=Range("L1").Value, _
Operator:=xlAnd
End Sub
Sub CreateWSList()
Columns("A:B").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("WSList").Select
Columns("A:B").Select
ActiveSheet.Paste
Sheets("WS").Select
Selection.AutoFilter
Sheets("Week 16").Select
Thanks.
I have a couple of macros that i call on that refer to other worksheets within the workbook, i want to hide these so the users of the spreadsheet will not see the data and will not know what is happening in the background.
Bit of Background Info:
I am attempting to it this way as i have a list in a form, depending on what the user selects would determine what is selectable in the next form control.
As data within the list will have the duplicates codes but different SubCodes i am filtering and then creating a list for named range to display in form. Users will nto want to see duplicate data in the 1st list hence this way.
My issue is i dont want users to see what im doing and i dont want them to have to see the sheet.
Any help would be appreciated.
My macros are:
Sub WSFilter()
Sheets("WS").Select
Columns("C:C").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$C$9").AutoFilter Field:=1, Criteria1:=Range("L1").Value, _
Operator:=xlAnd
End Sub
Sub CreateWSList()
Columns("A:B").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("WSList").Select
Columns("A:B").Select
ActiveSheet.Paste
Sheets("WS").Select
Selection.AutoFilter
Sheets("Week 16").Select
Thanks.