Pookiemeister
Well-known Member
- Joined
- Jan 6, 2012
- Messages
- 626
- Office Version
- 365
- 2010
- Platform
- Windows
What I would like the code below to do is find the value of the variable "str" then place the value of the textbox called "TxtBxBlkBlnd" inside Range(found.row, "Column Letter Here") but I keep getting that same Runtime error '1004'. Would someone mind explaining what this error means in simple (non-technical terms) please, and also an easy way (if any) to resolve it. To me, I think it means it can't find that location. The error occurs on all the lines that have this code regardless of the Column letter.
Thank You
Code:
Range(found.Row, "H") = Me.TxtBxBlkBlnd.Value
Code:
Select Case True
Case Is = optSlat
Workbooks("F-103-04 Exh E-Bulk MT-Pkg Prod Theoretical Yield Report-Rev004_ver_19_5.xlsm").Activate
Set found = Worksheets("Product_Info").Range("A3", Range("A" & Rows.Count).End(xlUp)).Find(str)
Range(found.Row, "D") = Me.TxtBxBlkBlnd.Value
Case optUhlmann2
Workbooks("F-103-04 Exh E-Bulk MT-Pkg Prod Theoretical Yield Report-Rev004_ver_19_5.xlsm").Activate
Set found = Worksheets("Product_Info").Range("E3", Range("E" & Rows.Count).End(xlUp)).Find(str)
Range(found.Row, "H") = Me.TxtBxBlkBlnd.Value
Case Is = optKorber
Workbooks("F-103-04 Exh E-Bulk MT-Pkg Prod Theoretical Yield Report-Rev004_ver_19_5.xlsm").Activate
Set found = Worksheets("Product_Info").Range("I3", Range("I" & Rows.Count).End(xlUp)).Find(str)
Range(found.Row, "L") = Me.TxtBxBlkBlnd.Value
Case Is = optIMA
Workbooks("F-103-04 Exh E-Bulk MT-Pkg Prod Theoretical Yield Report-Rev004_ver_19_5.xlsm").Activate
Set found = ActiveSheet.Range("M3", Range("M" & Rows.Count).End(xlUp)).Find(str)
ActiveSheet.Range(found.Row, "P") = TxtBxBlkBlnd.Value
Case optUhlmann5
Workbooks("F-103-04 Exh E-Bulk MT-Pkg Prod Theoretical Yield Report-Rev004_ver_19_5.xlsm").Activate
Set found = Worksheets("Product_Info").Range("Q3", Range("Q" & Rows.Count).End(xlUp)).Find(str)
Range(found.Row, "T") = Me.TxtBxBlkBlnd.Value
Case optPouch
Workbooks("F-103-04 Exh E-Bulk MT-Pkg Prod Theoretical Yield Report-Rev004_ver_19_5.xlsm").Activate
Set found = Worksheets("Product_Info").Range("U3", Range("U" & Rows.Count).End(xlUp)).Find(str)
Range(found.Row, "X") = Me.TxtBxBlkBlnd.Value
End Select
Thank You