ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to: OLEObjects WITHOUT a border/frame ? (https://www.excelbanter.com/excel-programming/369483-how-oleobjects-without-border-frame.html)

Richard[_34_]

How to: OLEObjects WITHOUT a border/frame ?
 
Help: I create an object using:
myPictArea = ActiveSheet.OLEObjects.Add(ClassType:="Forms.Image .1"
etc...

HOW can I have NO discernable border on that created Area?? Each time I
load up an image in that object, I get a Border around it.

I tried giving it the xlLineStyleNone (see below) to no avail - there
is still a BLACK border appearing around the object. Is there a way to
have no border/frame, so it is not visible at all ? (

With myPictArea
.Placement = xlMoveAndSize
.Object.BackColor = RGB(255, 255, 255) ' White background
.Border.LineStyle = xlLineStyleNone
End With

Thanks for your help!

R


Michel Pierron

How to: OLEObjects WITHOUT a border/frame ?
 
Hi Richard,

With myPictArea
.Placement = xlMoveAndSize
.Object.BackColor = RGB(255, 255, 255) ' White background
.Object.BorderStyle = 0
End With

Regards,
MP


"Richard" a écrit dans le message de news:
...
Help: I create an object using:
myPictArea = ActiveSheet.OLEObjects.Add(ClassType:="Forms.Image .1"
etc...

HOW can I have NO discernable border on that created Area?? Each time I
load up an image in that object, I get a Border around it.

I tried giving it the xlLineStyleNone (see below) to no avail - there
is still a BLACK border appearing around the object. Is there a way to
have no border/frame, so it is not visible at all ? (

With myPictArea
.Placement = xlMoveAndSize
.Object.BackColor = RGB(255, 255, 255) ' White background
.Border.LineStyle = xlLineStyleNone
End With

Thanks for your help!

R




Richard[_34_]

How to: OLEObjects WITHOUT a border/frame ?
 
That did it !! THANKS !!

Richard

Michel Pierron wrote:
Hi Richard,

With myPictArea
.Placement = xlMoveAndSize
.Object.BackColor = RGB(255, 255, 255) ' White background
.Object.BorderStyle = 0
End With

Regards,
MP


"Richard" a écrit dans le message de news:
...
Help: I create an object using:
myPictArea = ActiveSheet.OLEObjects.Add(ClassType:="Forms.Image .1"
etc...

HOW can I have NO discernable border on that created Area?? Each time I
load up an image in that object, I get a Border around it.

I tried giving it the xlLineStyleNone (see below) to no avail - there
is still a BLACK border appearing around the object. Is there a way to
have no border/frame, so it is not visible at all ? (

With myPictArea
.Placement = xlMoveAndSize
.Object.BackColor = RGB(255, 255, 255) ' White background
.Border.LineStyle = xlLineStyleNone
End With

Thanks for your help!

R




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com