VB MACRO ?

  • Thread starter Thread starter David ulrich
  • Start date Start date
D

David ulrich

i want to make a button to highlight / color a range but
when i create the macro on one cell will color in...

here is the code ....

Sub Button1_Click()
'
' Button1_Click Macro
' Macro recorded 6/23/2004 by New User
'

'
Range("E3").Select
With Selection.Interior
.ColorIndex = 12
.Pattern = xlSolid
End With
End SubSub Button1_Click()
'

I am assuming where it states Range("e3").select

is the cell to highlight/ color but how can i change this
to be random or be aable to highlight more than one cell


Thanks in advance
David
'
 
David

just delete the line "Range("E3").Select"

Regards

Trevor
 

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