LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default format autoshape

Typo -

If the OP wants to make all rectangles transparent yet allow select cells
through the transparent area simply -

Activesheet.ActiveSheet.Rectangles.ShapeRange.Fill = msoFalse


forgot the .Visible -

Activesheet.ActiveSheet.Rectangles.ShapeRange.Fill .Visible = msoFalse

Peter T


"Peter T" <peter_t@discussions wrote in message
...
Perhaps the OP's rectangles have Transparency 100% rather than no-fill.
Visually the same though only the latter allows selection under the
rectangle.

If the OP wants to make all rectangles transparent yet allow select cells
through the transparent area simply -

Activesheet.ActiveSheet.Rectangles.ShapeRange.Fill = msoFalse
(no need to change transparency)

Following toggles threes states -

Sub SeeThroughShapes(nState As Long)
Dim s As String
Select Case nState
Case 0: s = "select through"
Case 1: s = " transparent but not select through"
Case 2: s = "solid"
End Select

On Error Resume Next
Set shr = ActiveSheet.Rectangles.ShapeRange
If shr Is Nothing Then Exit Sub
With shr.Fill
.Visible = CBool(nState)
.Transparency = Abs(CBool(nState < 2))
End With
MsgBox s, , "nState " & nState
End Sub

Sub test2()
Static n&
SeeThroughShapes n
n = n + 1
If n 2 Then n = 0

End Sub

Regards,
Peter T


"Tom Ogilvy" wrote in message
...
I'm just going on what the OP stated:

Although it looks cool, users cannot click on the cells behind it, so I

have
been requested to get rid of the transparent autoshapes.


--
Regards,
Tom Ogilvy

"Peter T" wrote:

I don't understand the problem though it seems others do. If a

rectangle's
fill is transparent it should be possible to select cells behind or

through
the transparent area

at drawing object level -
activesheet.rectangles(1).interior.colorindex = xlnone

or as a shape -
activesheet.shapes(1).fill.visible = msofalse

However if it has a textframe then it's not possible to select

'through'
the
transparent area.

Regards,
Peter T

"geebee" wrote in message
...
hi,

I have some rectangle autoshapes in my spreadsheet that are

transparent.
Although it looks cool, users cannot click on the cells behind it,

so
I
have
been requested to get rid of the transparent autoshapes. Can anyone

ell
me
how to still have these transparent boxes in front of the cells

while
still
allowing the user to click on the cells?

Thanks in advance,
geebee








 
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
How to get an autoshape to have same format as its linked cell? Farmers Wife Excel Discussion (Misc queries) 1 March 15th 09 05:32 PM
Autoshape jackietreehorn Excel Discussion (Misc queries) 2 November 6th 05 07:56 AM
Format Autoshape Contents Joseph Excel Discussion (Misc queries) 2 October 21st 05 10:40 PM
NAME OF AUTOSHAPE Ronbo Excel Discussion (Misc queries) 3 August 18th 05 10:09 PM
AUTOSHAPE Glenn Excel Programming 4 May 12th 05 02:43 AM


All times are GMT +1. The time now is 11:13 PM.

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

About Us

"It's about Microsoft Excel"