Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Cell = cell value AND format

Carrie,

Why not use copy/paste

ActiveCell.Offset(0, -5).Range("A1").Copy _
Destination:= ActiveCell

you could eliminate the activate with
c.Offset(0, -5).Copy _
Destination:= c
--
sb
"Carrie" wrote in message
...
I would like to set a cell's value AND format based on
another cell's value & format.

The following code works fine to insert the appropriate
supplier name for each row. The problem is the supplier
list is color coded to designate territory - I want this
macro to insert the supplier name as it is formatted in
the Supplier list.

For Each c In Range("Number")
For Each b In Range("Supplier")
If c.Value = b.Value Then
c.Activate
ActiveCell.Offset(0, -5).Range("A1").Select
ActiveCell.Value = b.Offset(0, -1).Value
End If
Next b
Next c

THANK YOU!
Carrie



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
cell format - remove cell format pattern without effecting colors Bas Excel Discussion (Misc queries) 1 March 23rd 09 02:54 PM
auto-hide rows, cell format (# and @), update cell refs, shade cel Mo2 Excel Discussion (Misc queries) 0 April 17th 07 03:44 AM
Can cell format come from and change with reference cell format jclouse Excel Discussion (Misc queries) 1 November 29th 06 03:20 AM
format cell to show leading zeros and make cell a three digit fiel Kristin Excel Worksheet Functions 2 July 28th 06 09:42 PM
How do I copy data in single cell format to a merged cell format Paul Excel Discussion (Misc queries) 1 June 27th 05 11:00 AM


All times are GMT +1. The time now is 04:08 PM.

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"