copy valye from cell without using .copy but still get dame font, text align and font bolt.

newapa

Board Regular
Joined
Sep 13, 2012
Messages
69
i wonder is there possible to not using .copy but still get the value from range and put it to another range and still got same text alignt, text size, font bolt?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Say we want to get A1 into B9, but not using .Copy


Code:
Sub NoCopy()
Dim A1 As Range
Dim B9 As Range
Set A1 = Range("A1")
Set B9 = Range("B9")
B9.Value = A1.Value
B9.Font.Name = A1.Font.Name
B9.Font.Size = A1.Font.Size
B9.HorizontalAlignment = A1.HorizontalAlignment
End Sub
 
Upvote 0
thx gary!

but lets say if u have alot of row and column and have alot of diferent font size and so on. it will be alot of code then.
:( is there any other way without using copy or that much of code.

best regard
 
Upvote 0
but lets say if u have alot of row and column and have alot of diferent font size and so on. it will be alot of code then.
:( is there any other way without using copy or that much of code.
It would help if you told us where your data is now and where you want it to be copied to.
 
Upvote 0
Why not use Copy and Paste Special values and formats?
 
Upvote 0
Sure.....we could do the macro in a loop. Little extra code with an unlimited capacity to handle data.
 
Upvote 0

Forum statistics

Threads
1,216,076
Messages
6,128,670
Members
449,463
Latest member
Jojomen56

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