T
Todd Huttenstine
Set rng1 = .Range("AJ4:AJ500")
The above code sets a range. The above code is static, but needs to be
dynamic because the columns will not always be AJ. The value of cell W4
contains the column letter so how would I rewrite the code to specify this?
For instance if cell W4 contains the value "CB" then the code would need
show CB4:CB500.
Also the below code is static and needs to be dynamic:
TextBox6.Value = .Cells(Cell.Row, 31).Value
The number (column number) will not always be 31, it may be 25 so in this
case the code would need to reference 25 instead of 31. The number is found
in W6.
How would I rewrite this code as well?
Thanx
Todd Huttenstine
The above code sets a range. The above code is static, but needs to be
dynamic because the columns will not always be AJ. The value of cell W4
contains the column letter so how would I rewrite the code to specify this?
For instance if cell W4 contains the value "CB" then the code would need
show CB4:CB500.
Also the below code is static and needs to be dynamic:
TextBox6.Value = .Cells(Cell.Row, 31).Value
The number (column number) will not always be 31, it may be 25 so in this
case the code would need to reference 25 instead of 31. The number is found
in W6.
How would I rewrite this code as well?
Thanx
Todd Huttenstine