I do not know why this does this. But I was able to work around the problem. Please try this...
Maybe try declaring the FSO as Object. "Dim FSO" without a declaration declares the FSO as a variant. Just a...
Each block is a named range. There are 6 Key colors which are based on the information in column “Y”(Rental...
I cleaned up the code. This will place next month and year in cell A1. So today is Sep30 2018...
This was tested in a blank worksheet (no data). The macro will place next Month and Year in cell A1....
Updated the code to include the possibility of blank cells in the raw data. If a blank cell is found...
Lets try this again. You will need 3 sheets. Sheet1, Sheet 2 and Sheet3 Sheet1 your raw data Sheet2 is...
Hey Thank you so much. Apologies for not been very clear on the question. Using your example, in the output...
I have a Userform that Pulls Data from an excel sheet( Ie Data base) for editing purposes,
On the user from if the text boxes have different values it is supposed to look up the Torque value that is on Sheet29 ( A different sheet other than the Data Base)
in this case the way this reads is If the flange class is 150 and the Flange material is stainless, and the Gasket type is Flex and the bolt size is 1/2″ then go to the Sheet29 Cell K5 and put that value is TextBox 10.
Private Sub TextBoxB10_Change()
'TB11 As Range 'Flange Class
'TB12 As Text ' Flange Material
'TB28 As Text 'Gasket Type
'TB14 As Text 'Bolt Size
'TB10 is Torque Value
If Me.TextBoxB11.Value = 150 _
And Me.TextBoxB12.Value = Stainless _
And Me.TextBoxB28.Value = Flex Or RTJ _
And Me.TextBoxB14.Value = "1/2""" _
Then Me.TextBoxB10.Value = Sheet29.Range("K5") _
Else 'Me.Textbox10.Value = ""
Can anyone tell me why this don’t work? Cause it don’t but i would think that it would. i would expect that if i brought up a “line” that had all those values in it when i clicked into that TB10 it should update it with the values. I don’t get any errors it just flat will not put in the value in K5. Sheet29 is in the same workbook as the userfrom and the Data base from which it pulls information from
i am think that I may have to I have a feeling that i will need to set an Object Variable or something like that.
Please share using the share button above.
If you found the answer is best answer for your question, Please mark as 'best answer' by clicking on the right tick mark icon at the left side of the answer.
Found the answer useful and wants to credit the user, then vote the answer (vote up).