ClwnMan76
New Member
- Joined
- Oct 26, 2009
- Messages
- 28
- Office Version
- 365
- Platform
- Windows
First of all, good morning and thanks to all of you who come on here and help us out and never asking much in return. You've inspired me to go to other forums where I actually do something about the subject and help out.
I seem to have a sick dog now that is wanting attention so I've broken down to ask for assistance on a couple things.
As you can see by what I have so far it works, but I know there's gotta be a more efficient way to write and execute this. I have a sheet, 3 letters, for each day of the month. There are 16 sheets in all. I was reading up on cycling through the whole spreadsheet and that's perfectly fine as the sheets that aren't a month won't mess anything up.
Oh, and feel free to correct anything else i have. I'd really like to learn where I can improve!!
I don't know if I can post a second problem, but I was trying to create some code that monitored k2:k22 on the "MAIN" sheet for changes and then would run the code below, but after a few hours I gave up and added a button. LOL See below.
I found this code below that I thought I could edit to fit my needs, but no matter what I did it wouldn't work.
I don't know if this will help or not, but here's the file. If you need the password it's in the MAIN sheet cell d28.
P.S. I apologize if I posted incorrectly. I'm a recent convert from another forum that just became way too negative if you weren't perfect.
I seem to have a sick dog now that is wanting attention so I've broken down to ask for assistance on a couple things.
As you can see by what I have so far it works, but I know there's gotta be a more efficient way to write and execute this. I have a sheet, 3 letters, for each day of the month. There are 16 sheets in all. I was reading up on cycling through the whole spreadsheet and that's perfectly fine as the sheets that aren't a month won't mess anything up.
Oh, and feel free to correct anything else i have. I'd really like to learn where I can improve!!
I don't know if I can post a second problem, but I was trying to create some code that monitored k2:k22 on the "MAIN" sheet for changes and then would run the code below, but after a few hours I gave up and added a button. LOL See below.
Code:
Sub HideUnhide()
Application.ScreenUpdating = False
Worksheets("JAN").Activate
BeginRow = 3
EndRow = 150
ChkCol = 35
For RowCnt = BeginRow To EndRow
If Cells(RowCnt, ChkCol).Value = "hide" Then
Cells(RowCnt, ChkCol).EntireRow.Hidden = True
Else
Cells(RowCnt, ChkCol).EntireRow.Hidden = False
End If
Next RowCnt
Worksheets("FEB").Activate
BeginRow = 3
EndRow = 150
ChkCol = 35
For RowCnt = BeginRow To EndRow
If Cells(RowCnt, ChkCol).Value = "hide" Then
Cells(RowCnt, ChkCol).EntireRow.Hidden = True
Else
Cells(RowCnt, ChkCol).EntireRow.Hidden = False
End If
Next RowCnt
Application.ScreenUpdating = True
End Sub
I found this code below that I thought I could edit to fit my needs, but no matter what I did it wouldn't work.
Code:
Private SubWorksheet_Change (ByVal Target As Range)
If Not
Intersect (Target, Range ("A1:B100"))
Is Nothing Then
Call Mymacro
End If
End Sub
I don't know if this will help or not, but here's the file. If you need the password it's in the MAIN sheet cell d28.
P.S. I apologize if I posted incorrectly. I'm a recent convert from another forum that just became way too negative if you weren't perfect.