Add data to same cell that already has data

grabrail

Board Regular
Joined
Sep 6, 2010
Messages
128
Office Version
  1. 365
Platform
  1. Windows
Hi

I have a report spreadsheet, that contains 20 report tabs, each report tab is made up of various drop down choices the inspector needs to complete. On one of these drop downs, if they select "No" as the answer I have a form pops up asking them with a text box that they need to fill in, this can be made up of multiple lines of text.

When they click the submit button, the text they populated is copied to a tab called Summary to one cell "A82" which is a merged cell from "A82" to "H90"

This all works.

However, when I go to the next report tab and do the same, the text is replaced on the summary tab.

How can I append the text from the next report tab to the text already in the cell on the Summary tab.

The code I have for the copying of data is:

VBA Code:
  If BlankChk = 0 Then
            Sheets("Summary").Activate
            ActiveSheet.Range("a82").Select
            ActiveCell.Value = Me.priorfaults.Value
        End If

Blankchk is a bit of previous code that checks if the text entry box is empty, if it is it ignores the copy function.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
@grabrail Try like -
Excel Formula:
 ActiveCell.Value = ActiveCell.Value & "Your choice of separator" & Me.priorfaults.Value
Also, do you really need to select rather than assign directly?

Hope that helps.
 
Upvote 0
Solution
@grabrail Try like -
Excel Formula:
 ActiveCell.Value = ActiveCell.Value & "Your choice of separator" & Me.priorfaults.Value
Also, do you really need to select rather than assign directly?

Hope that helps.
perfect thanks, i had literally just figured this out, well very similarly. The selection part is juts for testing something, while im developing the code, it will be removed eventually
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,290
Members
452,902
Latest member
Knuddeluff

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