looking for VBA solution that changes data

Dark0Prince

Active Member
Joined
Feb 17, 2016
Messages
433
I have old dates in the E column on my sheet called ClientListings. Then on the next sheet Called GJ_Import I have new dates in the C column.
How could I use VBA to update the old dates on SOME of the clients when there client number matches from the A column on both sheets. I also want it to effect a range of cells in between the words startGJ and endGJ

Example data is linked here: https://1drv.ms/x/s!Ap0t6Fmj7XZehBIhhLAgL58G_cFG
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I attempted to apply this to other sections and it didn't work I can't even debug it because I just get a runtime error. Does anything appear wrong to you?

Looks ok to me … It could also be due to merge cells. Try changing the below line & if you could loose the merged cells all together as they don't go well with VBA

Rich (BB code):
'Old line lRow = Sheets("ClientListings").Range("A:A").Find("endABQ").Row
'Updated line
lRow = Sheets("ClientListings").Range("A:B").Find("endABQ").Row
<strike>
</strike>
 
Upvote 0
No, I still can't search both A& B columns on the import tab. And I didn't know how to get your code to work with out changing my sheet format
 
Upvote 0

Forum statistics

Threads
1,225,477
Messages
6,185,212
Members
453,283
Latest member
Shortm88

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