ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Userform: Showing Cell Data (https://www.excelbanter.com/excel-programming/379401-re-userform-showing-cell-data.html)

abhimanyu

Userform: Showing Cell Data
 
Hi

What do u mean by "textbox of the active row". Do you mean cell text
(value in a cell) ?
I suppose what you need to do is read cell values of a row and show
them in a dialog.

plz clarify

regards


PW11111

Userform: Showing Cell Data
 

Hi,

Say (for example) I have a userform which I have put 2 textboxes on (from
the control toolbox).

I want to be able to say.

For textbox1 - show (the text in) cell A of the row that is currently
selected.
For textbox2 - show (the text in) cell D of the row that is currently
selected.

Hope this make sense.

Thanks again.
Phil

"abhimanyu" wrote:

Hi

What do u mean by "textbox of the active row". Do you mean cell text
(value in a cell) ?
I suppose what you need to do is read cell values of a row and show
them in a dialog.

plz clarify

regards



abhimanyu

Userform: Showing Cell Data
 
Well,
In that case you can Tag your TextBoxes '1', '2' and so on according to
the column number.
When you click on fill button you can loop through the textbox
collection and for each textbox call

textbox.Text = Application.Selection.Cells[Application.ActiveCell.Row,
TextBoxTagNumber].Value

hope this helps !!!



All times are GMT +1. The time now is 07:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com