I'm trying to set up a database using Excel and i can't quite get it to work... the following code is the problem:
row = xlsheet.Cells(2, 3)
xlsheet.Cells(1, row) = tbxNewname.Text
What it's supposed to do is use the integer stored in cell(2,3), which changes a lot depending on the user, and then store the text in that textbox into a cell that corresponds with that integer...the problem is that it doesn't like the variable "row" inside the parenthesis like that...i'm not sure what to do to get it to work. If anyone knows a lot about using Excel within VB i could use your help..lol
row = xlsheet.Cells(2, 3)
xlsheet.Cells(1, row) = tbxNewname.Text
What it's supposed to do is use the integer stored in cell(2,3), which changes a lot depending on the user, and then store the text in that textbox into a cell that corresponds with that integer...the problem is that it doesn't like the variable "row" inside the parenthesis like that...i'm not sure what to do to get it to work. If anyone knows a lot about using Excel within VB i could use your help..lol