Easiest way to copy all but one field into a new record?

Montez659

Well-known Member
Joined
May 4, 2005
Messages
918
The title pretty much says it all. I have some records that will be archived, but most of the information on there would be valid and would save time if I could copy that record into a new record, with the exception of one or two fields.

Or I could even copy the whole record and just update the two fields, but I am trying to do this via a macro as opposed to VBA (not that I have anything against VBA, I can use it if need be).

What is the easiest way to do this? I created a command button and actually let the wizard set up a copy record function. But like I said, I need to reset a few fields.

Thanks!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Take a look at the VBA code that the wizard created on your command button. Insert the code to change the stuff you want changed and you're good to go.
 
Upvote 0
Phil, thanks for responding. The wizard created it in a Macro and not in VBA. I decided to do it in VBA, because really, there is not much difference in how it operates.

Thanks for the help!
 
Upvote 0
You really should try using VBA over macros, it'll give you much more flexibility.

Mind you nothing wrong with using wizards or macros to generate the initial code - you can always change it later to suit your needs.

Oh, and of course you can convert macros to VBA.:)
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,911
Members
452,949
Latest member
beartooth91

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