#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to: Open closed workbook/Search data tables/Return data to open workbook Hugh Adams Excel Discussion (Misc queries) 0 August 18th 10 02:04 PM
How to open XML data file? JoeU2004 Excel Discussion (Misc queries) 2 May 13th 09 02:12 AM
how do i open a data workbook when i open a timesheet workbook [email protected] uk Excel Discussion (Misc queries) 2 January 4th 09 04:50 PM
How to open without losing data? Dave H Excel Discussion (Misc queries) 2 September 23rd 08 06:09 PM
Open Pivot Data assaf1978 Excel Discussion (Misc queries) 1 August 4th 08 12:11 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"