Saving userform data into specific row

Weasley0307

New Member
Joined
Dec 25, 2023
Messages
6
Office Version
  1. 2021
Platform
  1. Windows
Hi everyone. The userform below is the second entry data form that I will be using to keyin the Date, PO NO and Project name for column B, A, and J respectively. All the other columns are were first filled in in the first entry form. In order for me to set which row that i want my second entry form's data to be stored in, I have decided to use the column C as a reference (as shown in the OC/SC No. combobox). If i chose 12345,, i would like for the 3 new data to be stored in the same row as that OCSC. No. The first row of the data is an example (*since it has been filled, it wont show up in the combobox anymore)

Secondly, I would like to display all the existing data (booking date, LME and etc in this userform as well for my own reference, based on the OC/SC No. that i picked in the combobox as well. If I chose 333, the booking date txtbox in the userform would display 25/01/2024 and so on.

Would appreciate if someone could guide me to write the code on how to save my data in specific row and display data in that row as well based on what my OC/SC No. value is.
1706166111252.png
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi
the way most deal with this is to add a hidden column to your combobox which holds the filtered record row number which you use to return a record to your form & post back to the range.

If not sure how to do this this then suggest post the code (using code tags) behind the form & provide copy of your worksheet using MrExcel Addin
Plenty here to offer guidance

Dave
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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