AirAssault
New Member
- Joined
- Jul 10, 2014
- Messages
- 10
Hello All,
I have a form on excel that has fields for item1, description 1, item2, description2, item 3, desc.3 etc.
Instead of having to select each one and type what I have, I created a userform that will cycle through each cell, and one textbox that would paste the txtbox.value to the selected item#/cell.value. Also the label would change so that you know you're on item1, or item2, or etc.
Also, if the cell is not blank it would display what the item#cell has in the textbox ( in case i misspelled something and decide to hit PREV or NEXT).
In this way I wanted to enter " this new item " in the textbox, hit a paste button ( or better in real time as it changes) and then item#1/cell("D6") would reflect the textbox value. When I hit the next button, the label would say item2 and when I enter " this second new item" in the textbox, then item#2/cell("D10") would reflect txtbox.value.
I'm not sure how to set multiple cells as a range, and I think a for loop is what I need in order to cycle through the range but I'm not really sure what I need. I've been doing a lot of things with VBA in excel in the last few weeks, but I know I've got a long way to go. I know a little scripting in 3ds max, but VBA is a whole other beast. I've been digging through these forums and google but I'm missing something.
Anyways, I just need the basic of what the code is. How would I put predefined cells in a range and cycle through that range only when I hit prev next buttons, and paste the txtbox value in real time or on command?
Any help would be appreciated, even if it's partial. Thanks in advance!
I have a form on excel that has fields for item1, description 1, item2, description2, item 3, desc.3 etc.
Instead of having to select each one and type what I have, I created a userform that will cycle through each cell, and one textbox that would paste the txtbox.value to the selected item#/cell.value. Also the label would change so that you know you're on item1, or item2, or etc.
Also, if the cell is not blank it would display what the item#cell has in the textbox ( in case i misspelled something and decide to hit PREV or NEXT).
In this way I wanted to enter " this new item " in the textbox, hit a paste button ( or better in real time as it changes) and then item#1/cell("D6") would reflect the textbox value. When I hit the next button, the label would say item2 and when I enter " this second new item" in the textbox, then item#2/cell("D10") would reflect txtbox.value.
I'm not sure how to set multiple cells as a range, and I think a for loop is what I need in order to cycle through the range but I'm not really sure what I need. I've been doing a lot of things with VBA in excel in the last few weeks, but I know I've got a long way to go. I know a little scripting in 3ds max, but VBA is a whole other beast. I've been digging through these forums and google but I'm missing something.
Anyways, I just need the basic of what the code is. How would I put predefined cells in a range and cycle through that range only when I hit prev next buttons, and paste the txtbox value in real time or on command?
Any help would be appreciated, even if it's partial. Thanks in advance!