Hello,
I am decent with excel but brand new to the VBA side of things; decided that I need specific help because I'm using excel in a unique way (not financial) and can't seem to find precisely what I need. My job is to determine what legislation or other internal processes are triggered by the nature of the work that my company is proposing to undertake. To do this, I have created a series of yes/no questions which are tied together with in-cell =IFS formulas. I have added some VBA code for hiding any rows deemed 'N/A' and a colleague helped with a =VRLookUp formula for adding a drop-down list which pulls from a reference sheet within the same workbook. All of these elements are working how I want them to.
Now I want to add some user features such as a 'Reset' button for restoring the form to its original position but I am running into an error in my row-hiding sub. For the =VRLookUp section, I want to add a 'DONE Adding Mitigations' button which will hide/delete all rows up to the last entry.
Lastly I want to create a userform which will prompt the user to add additional information depending on how they have responded to select questions in the screening form. Something like: "You answered "YES" to [question from screening form]. Provided a detailed explanation below". The userform will be launched via a button at the end of screening form. This is a lot so anyone who is up for the challenge I greatly appreciate the help!!
My row hiding code looks like this:
Private Sub worksheet_change(ByVal Target As Range)
If Range("I28").Value = "NO" Then
Rows("32:45").EntireRow.Hidden = True
ElseIf Range("I28").Value = "YES" Then
Rows("32:45").EntireRow.Hidden = False
End If
If Range("I28").Value = "NO" Then
Rows("51:56").EntireRow.Hidden = True
ElseIf Range("I28").Value = "YES" Then
Rows("51:56").EntireRow.Hidden = False
End If...
This is my first post so thank you everyone!
I am decent with excel but brand new to the VBA side of things; decided that I need specific help because I'm using excel in a unique way (not financial) and can't seem to find precisely what I need. My job is to determine what legislation or other internal processes are triggered by the nature of the work that my company is proposing to undertake. To do this, I have created a series of yes/no questions which are tied together with in-cell =IFS formulas. I have added some VBA code for hiding any rows deemed 'N/A' and a colleague helped with a =VRLookUp formula for adding a drop-down list which pulls from a reference sheet within the same workbook. All of these elements are working how I want them to.
Now I want to add some user features such as a 'Reset' button for restoring the form to its original position but I am running into an error in my row-hiding sub. For the =VRLookUp section, I want to add a 'DONE Adding Mitigations' button which will hide/delete all rows up to the last entry.
Lastly I want to create a userform which will prompt the user to add additional information depending on how they have responded to select questions in the screening form. Something like: "You answered "YES" to [question from screening form]. Provided a detailed explanation below". The userform will be launched via a button at the end of screening form. This is a lot so anyone who is up for the challenge I greatly appreciate the help!!
My row hiding code looks like this:
Private Sub worksheet_change(ByVal Target As Range)
If Range("I28").Value = "NO" Then
Rows("32:45").EntireRow.Hidden = True
ElseIf Range("I28").Value = "YES" Then
Rows("32:45").EntireRow.Hidden = False
End If
If Range("I28").Value = "NO" Then
Rows("51:56").EntireRow.Hidden = True
ElseIf Range("I28").Value = "YES" Then
Rows("51:56").EntireRow.Hidden = False
End If...
This is my first post so thank you everyone!