Assuming you're writing a macro within a workbook and you want to write data into cell A1, you could use the following:
Worksheets("YourSheetName").Activate
ActiveSheet.Range("A1").Value = formName.txtBoxName
You can also reference the worksheet by number eg
Worksheets(1).Activate
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.