I´m using VBA userforms to fill values from the textboxes into cells of a specific sheet. Lets says the Sheet is named "Sheet1", the textbox is called "TextBox1" and the cell is "C2". I´m currently using
ThisWorkbook.Sheet1.Range("c2").value = Userform1.TextBox1.Value
to fill the cell with the value that I have typed into the textbox. Now I have experienced that when I have multiple copies of the same document opened, it doesnt always put the value in the intended document, but into the copy (which also has a sheet called "Sheet1"). Is there a way around that problem?