ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Populating txtboxes (https://www.excelbanter.com/excel-programming/295331-populating-txtboxes.html)

Dave R.[_2_]

Populating txtboxes
 
I have a form that contains multiple textboxes.
Lets say the data from txtbox1 will populate cell a2
And txtbox2 will populate cell g10

But when the form comes up, I first want each txtbox to
retrieve what is currently in their corresponding cells
as a prompt, if the user likes it, they simply enter on
past and it stays the same. Or they can change it and it
updates the cells accordingly.

I currently have this running with Inputboxes, but would
really like to try it with a Form.

Your help is greatly appreciated.

Dave


Bob Phillips[_6_]

Populating txtboxes
 
Just link the ControlSourec property of the text box to the cell.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Dave R." wrote in message
...
I have a form that contains multiple textboxes.
Lets say the data from txtbox1 will populate cell a2
And txtbox2 will populate cell g10

But when the form comes up, I first want each txtbox to
retrieve what is currently in their corresponding cells
as a prompt, if the user likes it, they simply enter on
past and it stays the same. Or they can change it and it
updates the cells accordingly.

I currently have this running with Inputboxes, but would
really like to try it with a Form.

Your help is greatly appreciated.

Dave




No Name

Populating txtboxes
 
Bob,

That works. (embarrassed)

Then how do I get it to work the other way. Change it in
the form and have it update the cell.


Dave




-----Original Message-----
Just link the ControlSourec property of the text box to

the cell.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Dave R." wrote in

message
...
I have a form that contains multiple textboxes.
Lets say the data from txtbox1 will populate cell a2
And txtbox2 will populate cell g10

But when the form comes up, I first want each txtbox to
retrieve what is currently in their corresponding cells
as a prompt, if the user likes it, they simply enter on
past and it stays the same. Or they can change it and

it
updates the cells accordingly.

I currently have this running with Inputboxes, but

would
really like to try it with a Form.

Your help is greatly appreciated.

Dave



.


No Name

Populating txtboxes
 
Never mind.

Just update the the txtbox. I do not even need code for
that!

Wow.. way cool. I have just fallen in love with forms.

(really embarassed)

Dave


-----Original Message-----
Just link the ControlSourec property of the text box to

the cell.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Dave R." wrote in

message
...
I have a form that contains multiple textboxes.
Lets say the data from txtbox1 will populate cell a2
And txtbox2 will populate cell g10

But when the form comes up, I first want each txtbox to
retrieve what is currently in their corresponding cells
as a prompt, if the user likes it, they simply enter on
past and it stays the same. Or they can change it and

it
updates the cells accordingly.

I currently have this running with Inputboxes, but

would
really like to try it with a Form.

Your help is greatly appreciated.

Dave



.



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

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