LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 447
Default Draw Numbered Rectanges over the Comment Indicators...MS Excel 200

I downloaded the CommentsNumbersPrint file in Excel Contextures to draw
number rectangles over the comment indicators on MS Excel 2000 & it worked
fine. However, I now have 2007 version of Excel & when I try to run the
macro it doesn't include the numbers. It does create the rectangle, however,
but provides no numbers as it did in 2000 (within the rectangles).

The following code is the code to draw a numbered rectangle AutoShape over
each comment indicator on the active sheet:

Sub CoverCommentIndicator()
Dim ws As Worksheet
Dim cmt As Comment
Dim lCmt As Long
Dim rngCmt As Range
Dim shpCmt As Shape
Dim shpW As Double 'shape width
Dim shpH As Double 'shape height

Set ws = ActiveSheet
shpW = 8
shpH = 6
lCmt = 1

For Each cmt In ws.Comments
Set rngCmt = cmt.Parent
With rngCmt
Set shpCmt = ws.Shapes.AddShape(msoShapeRectangle, _
rngCmt.Offset(0, 1).Left - shpW, .Top, shpW, shpH)
End With
With shpCmt
With .Fill
.ForeColor.SchemeColor = 9 'white
.Visible = msoTrue
.Solid
End With
With .Line
.Visible = msoTrue
.ForeColor.SchemeColor = 64 'automatic
.Weight = 0.25
End With
With .TextFrame
.Characters.Text = lCmt
.Characters.Font.Size = 4
.MarginLeft = 0#
.MarginRight = 0#
.MarginTop = 0#
.MarginBottom = 0#
.HorizontalAlignment = xlCenter
End With
.Top = .Top + 0.001
End With
lCmt = lCmt + 1
Next cmt

Why would the macro create the rectangle but not put the numbers on the
comments as it did in 2007 version? All advise is prematurely appreciated.

--
Thanks, Karen
 
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
Can one comment have two indicators? sewall_c Excel Discussion (Misc queries) 1 August 24th 07 06:14 PM
Comment Indicators Mandy Excel Worksheet Functions 2 July 18th 06 12:23 AM
Print Excel Comment Indicators SidBord Excel Discussion (Misc queries) 3 March 24th 05 02:41 AM
Comment Indicators Deb Excel Discussion (Misc queries) 2 March 3rd 05 10:12 PM
Comment Indicators ????? Excel Discussion (Misc queries) 1 December 4th 04 12:45 AM


All times are GMT +1. The time now is 11:09 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"