VBA Error Run TIme Error 424

ManUBlueJay

Active Member
Joined
Aug 30, 2012
Messages
320
Office Version
  1. 365
Platform
  1. Windows
I am working on a very large Geneology project. I want my code to update given fields in my data sheet.
My code is looking to see if the given person has a previous marriage. If it doesnt that it should continue with the code.
I am using "On Error Resume Next" but it still breaks in my line and does not resume.
Here is the 3 lines of code:
[WifeFirstMarriage_NameRange] = [NewWifeName] 'updating Wife original family with name that includes her husband if 2nd marriage
On Error Resume Next
[NewWife_OriginalFamily_NameRange] = [NewWifeName]

Any help would be appreciated.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
On Error Resume Next' will not let you find the error, but with that then '
WifeFirstMarriage=NewWifeName...is the problem.

if these are ranges, then they are objects, and objects are assigned with SET:
SET WifeFirstMarriage=NewWifeName


****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[WifeFirstMarriage_NameRange] = [NewWifeName] [WifeFirstMarriage_NameRange] = [NewWifeName] [WifeFirstMarriage_NameRange] = [NewWifeName]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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