Saving a textbox text edit to the original cell

Wije

New Member
Joined
Mar 13, 2023
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hello Experts,

First time poster. I am an Excel beginner and currently working on a project for work.

The project involves a workbook with multiple sheets and each sheet is linked to a userform that is displayed at all times. The userforms have a previous and next function to scroll through the existing records in their respective sheets. In this userform is a unlocked textbox which basically acts as a A4 sized report sheet that can be edited. The form also has an "Edit Report" command button which enables with the textbox change event.

Using the command button click event, is it possible to enter the edited text in the textbox, to the original cell that was being displayed in the textbox?
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi,

You can adapt following generic instruction
VBA Code:
Sheet1.Range("A1").Value = TextBox1.Value
 
Upvote 0
Hi,

You can adapt following generic instruction
VBA Code:
Sheet1.Range("A1").Value = TextBox1.Value
Hi,

Thanks for the reply. I'm afraid my problem needs a solution that is less generic.

Let me explain a bit further.

Capture.JPG Capture2.JPG Capture3.JPG
The user form textbox circled in red in the 1st picture displays data entered in column G of the relevant worksheet. The previous and next command buttons cycle through the existing data.

My problem is I don't know how to, or if it's even possible, to save any changes made to any displayed text in the textbox to the same cell, when I hit the 'save update' command button. For example, the text shown in the box at this moment is from "G5" of sheet "A6-MMM". I would then type in the box and add to the text. How would I then save what is in the textbox into "G5"?

I hope that makes sense.
 
Upvote 0
Less generic ....

Sheets("A6-MMM").Range("G5").Value = TextBox1.Value

Check the Name of your TextBox ....
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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