Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
first column in row
Hi I have a userform and I have a text box called txtname
I would like to add txtname to a sheet called sheet7 in row 1's first available column. can you tell me how I can do this? I know how to add it to the next available row in a column but not the next available column in a row. Thanks, Rob |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
first column in row
Rob,
sounds like you are looking for something like this Dim rw as long, col as long col = Sheets(1).Cells(rw, Columns.Count).End(xlToLeft).Column -- steveB Remove "AYN" from email to respond "Rob Hargreaves" wrote in message ... Hi I have a userform and I have a text box called txtname I would like to add txtname to a sheet called sheet7 in row 1's first available column. can you tell me how I can do this? I know how to add it to the next available row in a column but not the next available column in a row. Thanks, Rob |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
first column in row
or to take it to the cell
Sheets(1).Cells(1, Columns.Count).End(xlToLeft).Value = txtName.Text -- HTH Bob Phillips "STEVE BELL" wrote in message news:y2wDe.23041$IJ1.14564@trnddc02... Rob, sounds like you are looking for something like this Dim rw as long, col as long col = Sheets(1).Cells(rw, Columns.Count).End(xlToLeft).Column -- steveB Remove "AYN" from email to respond "Rob Hargreaves" wrote in message ... Hi I have a userform and I have a text box called txtname I would like to add txtname to a sheet called sheet7 in row 1's first available column. can you tell me how I can do this? I know how to add it to the next available row in a column but not the next available column in a row. Thanks, Rob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
divide column(x) by column(y) to give column(x/y) in excel? | New Users to Excel | |||
Calculating column A * column B = Results in another column | Excel Worksheet Functions | |||
Referencing date column A & time column B to get info from column | Excel Discussion (Misc queries) | |||
Return text in Column A if Column B and Column K match | Excel Worksheet Functions | |||
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look | Excel Discussion (Misc queries) |