excel - edit cells using userform search function -


I want to edit data on a worksheet's cells using a userform and text box and a pair of combo boxes .

This is the code that I use to go through the data of cells:

  Private sub-combo box 1_Click () Dim rfound as the range on error Next start with Sheets ("IO-DB"), set = rfound = .Column (1). Find (what: = ComboBox1.Value, After: =. Room (1, 1), LookIn: = xlValues, LookAt: = _ xlWhole, SearchOrder: = xlByRows, SearchDirection: = xlNext, MACCYZ: = incorrect_, searchformat: = Incorrect) Go to Error 0 If the frame is not anything then exit the sub application. Goto round, true text box 1 Text = roundabout Offset (0, 0) textbox 9 Text = rfound.Offset (0, 1) combobox 7.Text = rfound.Offset (0, 3) combobox 8. Text = RF Offset (0, 2) combo box 5. Text = roundabout Offset (0, 4) textbox4. Text = RF Offset (0, 5) TextBox5.Text = rfound.Offset (0, 6) ComboBox3. Text = roundabout Offset (0, 7) combo box 4 Text = RF Offset (0, 8) Combo box 6 Text = RF Offset (0, 10) text box 7 .text = Rfound.Offset (0, 9) ending with termination sub   

This code searches through one line and assigns them each lesson Box / combo box. And I used Combobox 1 as a search function for my data.

How can I edit data on cells using user fermentation and my search method?

If I have understood well ... you have the code right to take data .. But you have to use your code: 1) You can not insert a name directly, but you first need to populate the combo with all the data (I have linked to the first column)
2 ) Using this update:

  ActiveCell offset (0, 0) = textbox 1 test active seal. Offset (0, 1) = textbox 9th Text ActiveKeyl.offetts (0, 3) = Combo Box 7. Text activate.offetts (0, 2) = combobox.Text ...   

You may have problems because VBAs you can update the value of the lessons before you write in the cells - To solve the point 1) You can use the subsequent incident. Work with Click and Direct Dot - to solve the point 2) You can use this code:

  String TMP as a slow TMP = Text box 2. Text activate. Offset (0, 1) = TMP   

for each cell ... You can enter the update code in a button:

  Personal Sub Command Button 1_Click ()   

In the Button Code you need rfound instead of using "ActiveCell" because it is not the same, but select your code cell. .

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -