ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open data (https://www.excelbanter.com/excel-programming/290189-open-data.html)

Robert Couchman

Open data
 
Hello, i am trying to use data from one form to input into
the next open form, what code would i need to use so that
when i click the button to open the new form, the customer
id and name will automaticlly be inserted.
**please note that the existing window cannot be closed**

Thank you,

Robert Couchman

Bob Phillips[_6_]

Open data
 
Robert,

Here is one technique.

First load the form, without showing it, transfer the data, and then show
the form. Here is an example that transfers the contents of Textbox1 in
form1 to Textbox1 in form2

Load UserForm2
With UserForm2
.TextBox1.Text = TextBox1.Text
.Show
End With

--

HTH

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

"Robert Couchman" wrote in
message ...
Hello, i am trying to use data from one form to input into
the next open form, what code would i need to use so that
when i click the button to open the new form, the customer
id and name will automaticlly be inserted.
**please note that the existing window cannot be closed**

Thank you,

Robert Couchman





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

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