vba copy cell format

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

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA Copy cell format to destination cell

VBA Copy cell format to destination cell

resolvedResolved · High Priority · Version 2007

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

VBA Copy cell format to destination cell

How can you copy cell format to destination cell?

RE: VBA Copy cell format to destination cell

Hi Shamin

Thanks for your question

The quickest method would be to invoke the paste special method. While this does involve using the select method, which is not ideal, it is still probably the optimum technique in this instance.
The following is an example

Range("B3").Select
Selection.Copy
Range("F3").Select
Selection.PasteSpecial Paste:=xlPasteFormats


Regards

Stephen

RE: VBA Copy cell format to destination cell

Hi,

Thanks.

But I had the date formatting issue during copy of date column in training with Anthony.

I have posted another question for Anthony as he knows the issue during traing.

Regards
Shamim

 

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:

Generating simple column charts

1.Select cell range containing data/figures
2. Press F11

View all Excel hints and tips


Server loaded in 0.08 secs.