Share via

Updating Multiple rows with Userform

Anonymous
2017-11-10T12:31:49+00:00

Hi,

I am working on a project. I use the following codes to enter Customer's Orders into the Sales Table on Excel through a Userform;

lRow = ws.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row

    With ws

        .Cells(lRow, 1).Value = Me.Data1.Value

        .Cells(lRow, 2).Value = Me.Data2.Value

        .Cells(lRow, 3).Value = Me.Data3.Value

        .Cells(lRow, 4).Value = Me.Data4.Value

        .Cells(lRow, 5).Value = Me.Data5.Value

        .Cells(lRow, 6).Value = Me.Data6.Value

        .Cells(lRow, 7).Value = Me.Data7.Value

        .Cells(lRow, 8).Value = Me.Data8.Value

        .Cells(lRow, 9).Value = Me.Data9.Value

        .Cells(lRow, 10).Value = Me.Data10.Value

    End With

The Code above can only update one record in a row at a time. I can only enter one Product per Customer which is entered in a row. I want to be able to enter various products for one customer and post to different rows.

What do I do?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2017-11-13T14:17:23+00:00

    Ok. Thanks for your assistance.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2017-11-13T14:00:34+00:00

    This is not really the venue for that kind of assistance. You are looking for a consultant who can guide you through the project. Such an assignment require a lot of discussion before you even begin. That means time and money.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2017-11-13T07:45:36+00:00

    I have not done a project of such before. All I have done is to be able to update a Table on Excel with VBA and Userform and it is one item at a time. I can do the same project on the Excel Sheet and I can update multiple rows at the same time but I want to try it out on a userform through VBA. I can't say how fluent I am on VBA and Excel Database facilities. I am here to learn and that was why I joined the community. This is my first project of this nature. Your help will be highly appreciated.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2017-11-10T17:07:07+00:00

    I have built many such SYSTEMS using Excel Userforms and VBA. My impression is that you have no idea how big an exercise you are about to embark on. Are you fluent in VBA, Userforms and Excel database facilities?

    Was this answer helpful?

    0 comments No comments