Getting Data from a Cell Then Changing the Data Finally Putting it in the Same Cell

N00bieGal

New Member
Joined
Dec 5, 2024
Messages
1
Office Version
  1. 2021
  2. 2016
  3. 2013
  4. 2011
Platform
  1. Windows
Hello Everyone. I wrote a program to save inventory for a business. Originally, Column A would have a reference number that would keep track of what row the product is in. He would be able to use a form to search the data sheet and find the item based on the reference number, get the data into textboxes, change the information, and save it right over the old information by using the reference number to find the correct row. That was working just fine and there were no problems.

Unfortunately, this person wants to be able to edit Column A at any time and then save the changes over the old data. With Column A being changed, I am trying to find a way to save the location itself rather than try to match the reference number. Is there a way that when he selects the item from the worksheet the location (A#) can be stored so I can save over that same exact row?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Aaah, the age old conundrum! Trying to keep two separate tables identical while allowing edits on both.

I think you had it managed originally.

You could store the reference number in a variable when they select a cell in column A using Worksheet SelectionChange

You could add a duplicate field as the last column that stores the old reference number.
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,181
Members
452,893
Latest member
denay

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