Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Excel 2007 Macro Record

I am recording a macr for the code to resize and change the format for a
Rectangle. All it is recording is the cells that are selected, it shows
nothing about the formatting of the Rectangle. Any thoughts?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Excel 2007 Macro Record

Excel 2007's macro record capability are extremely poor. I recorded the
following that may be of some help to you:

ActiveSheet.Shapes.AddShape(msoShapeRectangle, 61.5, 51.75, 80.25,
64.5). _
Select
Range("C13").Select
ActiveSheet.Shapes("Rectangle 1").Select
Selection.ShapeRange.ScaleWidth 0.65, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 0.64, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.IncrementLeft -0.75
Selection.ShapeRange.IncrementTop 72.75

Bob Flanagan
Macro Systems
144 Dewberry Drive
Hockessin, Delaware, U.S. 19707

Phone: 302-234-9857, cell 302-584-1771
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"jnf40" wrote in message
...
I am recording a macr for the code to resize and change the format for a
Rectangle. All it is recording is the cells that are selected, it shows
nothing about the formatting of the Rectangle. Any thoughts?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Excel 2007 Macro Record

Thanks for the response. What I have here works for
making the interior color Yellow:

ActiveSheet.Shapes("Rectangle 1").Select
With Selection.Interior
..ColorIndex = 27
End With

but I want to make the yellow transparent by 80%
so that the user can see through the shape.

"Bob Flanagan" wrote:

Excel 2007's macro record capability are extremely poor. I recorded the
following that may be of some help to you:

ActiveSheet.Shapes.AddShape(msoShapeRectangle, 61.5, 51.75, 80.25,
64.5). _
Select
Range("C13").Select
ActiveSheet.Shapes("Rectangle 1").Select
Selection.ShapeRange.ScaleWidth 0.65, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 0.64, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.IncrementLeft -0.75
Selection.ShapeRange.IncrementTop 72.75

Bob Flanagan
Macro Systems
144 Dewberry Drive
Hockessin, Delaware, U.S. 19707

Phone: 302-234-9857, cell 302-584-1771
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"jnf40" wrote in message
...
I am recording a macr for the code to resize and change the format for a
Rectangle. All it is recording is the cells that are selected, it shows
nothing about the formatting of the Rectangle. Any thoughts?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Excel 2007 Macro Record

Thanks again for your response Bob, I finally figured it out
with the following code.

ActiveSheet.Shapes("Rectangle 1").Select
With Selection.ShapeRange.Fill
..ForeColor.SchemeColor = 13
..Transparency = 0.8
End With


"jnf40" wrote:

Thanks for the response. What I have here works for
making the interior color Yellow:

ActiveSheet.Shapes("Rectangle 1").Select
With Selection.Interior
.ColorIndex = 27
End With

but I want to make the yellow transparent by 80%
so that the user can see through the shape.

"Bob Flanagan" wrote:

Excel 2007's macro record capability are extremely poor. I recorded the
following that may be of some help to you:

ActiveSheet.Shapes.AddShape(msoShapeRectangle, 61.5, 51.75, 80.25,
64.5). _
Select
Range("C13").Select
ActiveSheet.Shapes("Rectangle 1").Select
Selection.ShapeRange.ScaleWidth 0.65, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 0.64, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.IncrementLeft -0.75
Selection.ShapeRange.IncrementTop 72.75

Bob Flanagan
Macro Systems
144 Dewberry Drive
Hockessin, Delaware, U.S. 19707

Phone: 302-234-9857, cell 302-584-1771
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"jnf40" wrote in message
...
I am recording a macr for the code to resize and change the format for a
Rectangle. All it is recording is the cells that are selected, it shows
nothing about the formatting of the Rectangle. Any thoughts?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2007 Macro Record

Give this a try...

With Worksheets("Sheet1").Shapes("Rectangle 1").Fill
.ForeColor.RGB = RGB(255, 255, 0)
.Transparency = 0.8
End With

The closer the Transparency value is to 1, the more transparent it is.

Rick


"jnf40" wrote in message
...
Thanks for the response. What I have here works for
making the interior color Yellow:

ActiveSheet.Shapes("Rectangle 1").Select
With Selection.Interior
.ColorIndex = 27
End With

but I want to make the yellow transparent by 80%
so that the user can see through the shape.

"Bob Flanagan" wrote:

Excel 2007's macro record capability are extremely poor. I recorded the
following that may be of some help to you:

ActiveSheet.Shapes.AddShape(msoShapeRectangle, 61.5, 51.75, 80.25,
64.5). _
Select
Range("C13").Select
ActiveSheet.Shapes("Rectangle 1").Select
Selection.ShapeRange.ScaleWidth 0.65, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 0.64, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.IncrementLeft -0.75
Selection.ShapeRange.IncrementTop 72.75

Bob Flanagan
Macro Systems
144 Dewberry Drive
Hockessin, Delaware, U.S. 19707

Phone: 302-234-9857, cell 302-584-1771
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"jnf40" wrote in message
...
I am recording a macr for the code to resize and change the format for a
Rectangle. All it is recording is the cells that are selected, it shows
nothing about the formatting of the Rectangle. Any thoughts?







Reply
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
Excel 2007 Error message when trying to record Macro Beth Excel Worksheet Functions 1 May 16th 10 08:32 AM
Excel 2007 Record Macro button in Developer tab is not highlighted Golfnjohn Excel Discussion (Misc queries) 0 April 30th 08 09:31 PM
Why doesn't Excel 2007 record charting and office art macro code? NOLuckMatt Excel Discussion (Misc queries) 0 August 17th 07 02:38 PM
Record Macro Excel 2007 Adrian Excel Discussion (Misc queries) 1 August 9th 07 04:48 PM
Where in Office 2007 can I record a macro? Graeme Excel Worksheet Functions 1 August 15th 06 03:07 PM


All times are GMT +1. The time now is 11:23 AM.

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"