View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Eric Shamlin Eric Shamlin is offline
external usenet poster
 
Posts: 2
Default selection.interior

What I'm trying to do is create two buttons: Show Text/Hide Text.

The Show Text button turns the text in the ranges black and then turns the
interiors of that selection yellow - to highlight where the user should input
data.

The Hide Text button then turns both the text and interiors white so they
dont print.

There are two separate ranges I need to effect. Though I'd like the option
to include other ranges at a later date.

As it works now I have to manually select the ranges and do the hide/show...
it'd save some headaches to be able to assign this to a button, since the
ranges are fixed.


"Leith Ross" wrote:


Hello Eric ,

The problem is with your range assignment...
Range("g12:g61,a12:e61,l8").Select

This type of Range statement can only accept 2 arguments separated by a
comma.
Range("G12:G61", "A12:E61").Select

This will select A12 as the Top Left cell in the Range and G61 as the
Lower Right in the Range rectangle .

Before I go on, it would help to know how you want the cells selected.
As 3 separate Ranges or what? Let me know.

Thanks,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=480929