PC Review


Reply
Thread Tools Rate Thread

format autoshape

 
 
=?Utf-8?B?Z2VlYmVl?=
Guest
Posts: n/a
 
      18th Sep 2006
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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      18th Sep 2006
they will click on the shapes, not the cells.

--
Regards,
Tom Ogilvy


"geebee" wrote:

> 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
>

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      18th Sep 2006
If the box is only one cell in size, maybe you could assign a macro that
selects the cell below it.

--
Regards,
Tom Ogilvy


"geebee" wrote:

> 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
>

 
Reply With Quote
 
Bob Umlas
Guest
Posts: n/a
 
      18th Sep 2006
You COULD try something like this which will make the shape disappear for 1
second, so a 2nd click (first runs the macro) can select the cell
underneath: (You have to assign the shape (any/all of them to the same
procedure) to Disappear
Dim AppCall
Sub Disappear()
AppCall = Application.Caller
ActiveSheet.Rectangles(AppCall ).Visible = False
Application.OnTime Now + 1 / 86400, "vis" '1 second later...
End Sub

Sub Vis()
ActiveSheet.Rectangles(AppCall ).Visible = True
End Sub

Bob Umlas
Excel MVP

"geebee" <(E-Mail Removed)> wrote in message
news41BA010-8274-4B4B-924D-(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
Bob Umlas
Guest
Posts: n/a
 
      18th Sep 2006
Better:
Assign the shape(s) to "Disappear":
Public appcall
Sub Disappear()
appcall = Application.Caller
ActiveSheet.Rectangles(appcall).Visible = False
End Sub

Then, have a worksheet_SelecitonChange event to do this (so that the 1
second only delay no longer plays a part:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resume Next
ActiveSheet.Rectangles(appcall).Visible = True
End Sub

Bob Umlas
Excel MVP

"geebee" <(E-Mail Removed)> wrote in message
news41BA010-8274-4B4B-924D-(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      18th Sep 2006
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" <(E-Mail Removed)> wrote in message
news41BA010-8274-4B4B-924D-(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      18th Sep 2006
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" <(E-Mail Removed)> wrote in message
> news41BA010-8274-4B4B-924D-(E-Mail Removed)...
> > 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
> >

>
>
>

 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      18th Sep 2006
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" <(E-Mail Removed)> wrote in message
news:0C49D971-7FB5-47C3-A82F-(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> > news41BA010-8274-4B4B-924D-(E-Mail Removed)...
> > > 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
> > >

> >
> >
> >



 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      19th Sep 2006
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
news:#(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:0C49D971-7FB5-47C3-A82F-(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> > > news41BA010-8274-4B4B-924D-(E-Mail Removed)...
> > > > 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
> > > >
> > >
> > >
> > >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format Autoshape box pops up on screen when autoshape is selected MaddyP Microsoft Powerpoint 0 28th Oct 2009 06:12 PM
Automatically Color Autoshape and Autoshape Naming Max Microsoft Excel Programming 2 9th Sep 2009 05:11 PM
Automatically change autoshape color to that of another autoshape T-bone Microsoft Excel Programming 2 24th Oct 2008 01:43 AM
Re: adding autoshape to an autoshape Rick B Microsoft Access 0 2nd Jan 2007 04:45 PM
trigger not working on autoshape which is under another autoshape with text Bob Microsoft Powerpoint 2 20th Apr 2004 12:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:54 PM.