rogue.phoenix
New Member
- Joined
- Sep 4, 2011
- Messages
- 3
Here's the setup. I have a sheet called Cards with several boxes for name, address, etc. that all need to be the same. I have created a form to gather the information, have the command button code written, know the upper and lower limits (1 to 10) etc, but I cannot get the data from the txtName field to populate across the variable cell names (ie Name1,Name2, ..., Name 10).
Below is the most recent code tried... I know there is nothing assigning the tempName.Value to Name(i)... That's the big problem... Please don't laugh too hard if it is completely wrong...
Dim tempNum As String
Below is the most recent code tried... I know there is nothing assigning the tempName.Value to Name(i)... That's the big problem... Please don't laugh too hard if it is completely wrong...
Dim tempNum As String
i = 1
Any advice is appreciated, and if there is already a question related to this, I am sorry, but my search of the forums turned up nothing...For i = 1 To 10
tempNum = i
tempName = "Cards.Name" + tempNum
tempName = txtName.Value
tempAdd = "Cards.Address" + tempNum
tempAdd = txtAddress.Value
tempTit = "Cards.Title" + tempNum
tempAdd = txtTitle.Value
tempPhn = "Cards.Phone" + tempNum
tempPhn = txtPhone.Value
tempEma = "Cards.Email" + tempNum
tempEma = txtEmail.Value
NexttempNum = i
tempName = "Cards.Name" + tempNum
tempName = txtName.Value
tempAdd = "Cards.Address" + tempNum
tempAdd = txtAddress.Value
tempTit = "Cards.Title" + tempNum
tempAdd = txtTitle.Value
tempPhn = "Cards.Phone" + tempNum
tempPhn = txtPhone.Value
tempEma = "Cards.Email" + tempNum
tempEma = txtEmail.Value