Display data on user input dialogue box.

mysterious-dr-x

Board Regular
Joined
Jul 29, 2011
Messages
51
Once again the internet has been entirely unhelpful with regards to my current issue.

I am creating a user input form so that information can be added to a secondary workbook from the first without having to do it all manually.

Now, the secondary workbook looks something like this, with the user input form inserting data into the next available row.

dcrc-reg.jpg


In the example above, 317 is the next available row (I should probably mention that this is currently in excel row 33, but this is not fixed).

Most of it works fine, there is only one thing I don't know how to do & that is to display the DCRC reference number (eg 317) in the indicated box in the form below.

submit-DCRC.jpg


Currently this is a user input box, but that can be changed if required. In addition I'd like to paste this number into a cell (lets say A1) in the primary workbook, although I suspect that this part will be much simpler.

This should be done upon opening the dialogue, or by clicking the "Find" button, either is fine by me.

Please let me know if you feel that you require any of the code that I already have.



Edit: As it turns out there are two things that I don't know how to do.

The 2nd is to make the submit button not just submit the information (which it does fine), but also to close the dialogue box..... how do I do this?


 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
mysterious-dr-x,

Yeah, just change the workbooks("Secondary Workbook Name.xls") to be the actual workbook name and file extension

~tigeravatar
 
Upvote 0
mysterious-dr-x,

Yeah, just change the workbooks("Secondary Workbook Name.xls") to be the actual workbook name and file extension

~tigeravatar

I only asked as when I tried yesterday it didn't work, today however, it does. No idea what is different but as it turns out I didn't actually need to ask. Thanks for answering though.
 
Upvote 0
Code:
Me.FileName.Text = ("J6" & " - " & "C8")

I know that this is wrong, it was only supposed to be representative..... How do I correct the part in brackets so that the display will read as the contents of those cells?
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top