i guess this should work, assuming the cell name is a defined named range
osht.Range("myname").Value = 123
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case. Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Sorry guys: what I meant was something like this (see attachment).
Rather than specifying (in code) that I'd like to input a string into Cell[2,2], I'd like to specify Cell["INPUT1"].
"INPUT1" could be any cell in the file.
"Why do all my attempts at science end with me getting punched by batman?" xkcd.
did you try the code i posted, it should do what you want, change "myname" to "input1"
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case. Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete