- Created a userform
- Added a textBox and a comboBox
- Added a submit button
- When submit is clicked it adds the data to a spreadsheet
From what I have been told and what I have read this is wrong
ActiveCell.Value = TextBox3.Text
ActiveCell.Offset(0, 1).Select
ActiveCell.Value = ComboBox1.Text
ActiveCell.Offset(1, -1).Select
This works but I've been told I shouldn't use the .select keyword when possible. I've read that to make my code reusable I should create variables. How would a professional developer write this code, can it be written in less lines and how can I refer to the activecell offset without using select?