apologies if this links to last post

Status
Not open for further replies.

Rameses

Board Regular
Joined
Mar 3, 2010
Messages
137
How can I copy over cell formatting within excel from one worksheet to another

...i can undertsand it not copying to word but excel to excel ....???? please help!

I have tried more than 1 way of skinning this cat but it is getting the better of me!


:confused::confused::(
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi

A regular copy/paste would copy the value along with formatting.

You could also try Edit | Paste Special | Formats ... though this will not copy the values.
<input id="gwProxy" type="hidden"><!--Session data--><input *******="jsCall();" id="jsProxy" type="hidden">
 
Upvote 0
hi sandeep

thanks for your reply

however i need to have this as part of th code as am doing this 70 times onto different spreadsheets x70 using different bits of my spreadsheet!

any further advice appreciated
 
Upvote 0
It'll be helpful if you could provide the code where you want to include this. What range to you want to copy? Where do you want to paste it?

This sample code below will copy A1 from sheet 1 and paste it (including formats) to A1 in sheet 2.

<font face=Courier New><SPAN style="color:#00007F">Sub</SPAN> Test()<br>    Sheets("Sheet1").Range("A1").Copy<br>    Sheets("Sheet2").Range("A1").PasteSpecial Paste:=xlPasteAll<br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
<input id="gwProxy" type="hidden"><!--Session data--><input *******="jsCall();" id="jsProxy" type="hidden">
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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