conditional format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can you tell a cell to use the format of another cell
In otherwords, if a cell has a certain name entered in it, the cell would be instructed to go to a lookup table and find the name and then use its formats
 
and now a 3rd time!

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

jlp said:
Can you tell a cell to use the format of another cell?
In otherwords, if a cell has a certain name entered in it, the cell would
be instructed to go to a lookup table and find the name and then use its
formats?
 
try this macro assigned to a button or shape to copy the formats of the cell
you specify to the active cell.

Sub copyformats()
Range(InputBox("Cell to copy")).Copy
ActiveCell.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone
Application.CutCopyMode = False
End Sub
--
Don Guillett
SalesAid Software
(e-mail address removed)
jlp said:
Can you tell a cell to use the format of another cell?
In otherwords, if a cell has a certain name entered in it, the cell would
be instructed to go to a lookup table and find the name and then use its
formats?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top