Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

copying cell validation

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Copying Cell Validation

Copying Cell Validation

ResolvedVersion 2010

Raffaele has attended:
Excel VBA Intro Intermediate course
Excel VBA Advanced course

Copying Cell Validation

Hi

I am able to copy and paste cell validation with the PasteSpecial method

e.g.

Range1.Copy
Range2.Cells(x,y).PasteSpecial Paste:=xlPasteValidation

Is there any alternative to using the clipboard?

Thanks

RE: Copying Cell Validation

Hello Raffaele,

The method you are using is probably the most direct route to copy validation. However, if you write the validation in VBA and not use the Data Validation from Excel, you could refer to the validation routine or make it a function procedure.

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Mark
Microsoft Office Specialist Trainer

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

3D formulas find and replace

After you know all the components of a 3D reference, you can change them to suit by using a localised Find and replace crt+f, if need be.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.