#2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Bring in cell format

Or you could do it without the PasteSpecial call by copying directly to the
destination...

Sub findcopyincludingformat()
Columns(1).Find(2).Copy Range("b2")
End Sub

--
Rick (MVP - Excel)


"Don Guillett" wrote in message
...
A simple example

Sub findcopyincludingformat()
Columns(1).Find(2).Copy
Range("b2").PasteSpecial xlPasteAll
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Don Guillett" wrote in message news:...
A formula may only return a value, not a format. macro required.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"prender" wrote in message
...
If I write a formula in a cell such as
"=VLOOKUP(F9,Vacation_initials,2)" to
bring in the contents of a cell on another worksheet, is there a way to
also
bring along the formatting of that cell? In this case, I'm choosing
from a
range of 256 cells each of which has a different format.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bring in cell format prender Excel Discussion (Misc queries) 2 July 18th 09 04:44 PM
How to bring up a blank cell LJ Excel Discussion (Misc queries) 2 September 4th 08 12:46 AM
Bring the cell format along with the cell value from a reference c Lorrie Horgen Excel Worksheet Functions 1 January 20th 06 09:52 PM
bring back ability to format subtotals in pivot tables Pam-ADPT Excel Discussion (Misc queries) 1 April 15th 05 10:19 PM
Bring back the old help format! John Przybylski Excel Worksheet Functions 2 April 5th 05 06:24 PM


All times are GMT +1. The time now is 01:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"