Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8344321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:19:56+00:00 2026-06-09T06:19:56+00:00

I have a long row of data split into cells. Each cell populates a

  • 0

I have a long row of data split into cells. Each cell populates a textbox, and I have 20 textboxes (and by assumption I have 20 cells).

The code below is how I populate each textbox…

Private Sub UserForm_Initialize()

Set rng = Worksheets("Risk&Issues").Range("A4")
i = 0: j = 1

txtbox_revri_idnum.Text = rng.Offset(i).Value
txtbox_revri_projname.Text = rng.Offset(i, j).Value: j = j + 1
txtbox_revri_isrefnum.Text = rng.Offset(i, j).Value: j = j + 1
...
txtbox_revri_projname.SetFocus

On the form I have an ‘update’ button which when pressed updates the cells (within the worksheet) with new content from each textbox. The code for the ‘update’ button is below…

Private Sub button_revri_update_Click()

ActiveCell.Value = txtbox_revri_projname.Value
ActiveCell.Offset(0, 1) = txtbox_revri_isrefnum.Value
ActiveCell.Offset(0, 2) = txtbox_revri_riskrefnum.Value
...
End Sub

When I view the worksheet, what I expect to see is an update to each cell which is populating a textbox. However, what I actual get is a new row inserted from wherever I happen to press the mouse on a cell.

Can someone please help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T06:19:59+00:00Added an answer on June 9, 2026 at 6:19 am

    When you press “next” as shown in the previous question, the value of i is already set. Based on that question, you can use this

    Private Sub button_revri_update_Click()
        j = 1
    
        rng.Offset(i).Value = txtbox_revri_projname.Text
        rng.Offset(i, j).Value = txtbox_revri_isrefnum.Text: j = j + 1:
        rng.Offset(i, j).Value = txtbox_revri_riskrefnum.Text: j = j + 1
        rng.Offset(i, j).Value = TextBox4.Text: j = j + 1
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a code that loads data from Excel into SQLServer table. It works
I have a stored procedure that returns hierarchical data in a single long row,
I have a long running insert transaction that inserts data into several related tables.
In my implementation I have this: /// <inheritdoc cref=IInterface{T} this[,]/> public T this[long row,
Currently I have Long Pres Gesture Recognizers on four different TableViews (two in each
I am creating a new chart for each row of data in an Excel
I have data stored within single cells: <- A (Category) -> <- B (Items)
In my example I have a table where each row is a user for
I have a long table with 75 columns, I am entering test data and
I have a long-form data that represents a bunch of different configurations of different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.