#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Comments

Hi Tom!
b. I Check that if it is a range, it is on the same sheet as A1:H400 - if
not, attempting an intersect will lead to an error. (Peter T also tested for
this)

I posted the speed test in PeterT post. 0.18 seconds refer to your program
speed. I had an error with Gary's (#1004) and Charles program. As you said,
it is probably related to point b.
For point a. and c. I don't had problem related with these points. By
modifying your program as PeterT, it takes 0.14 seconds. I posted the code
below.
Thanks!
Alex

Sub RemoveWrapText()
Dim time1, time2
time1 = Timer

Dim nm As Name, rng As Range
Dim rng1 As Range, rng2 As Range
For Each nm In ThisWorkbook.Names
Set rng = Nothing
On Error Resume Next
Set rng = Evaluate(nm.Name)
On Error GoTo 0
If Not rng Is Nothing Then
If rng.Parent.Name = ActiveSheet.Name Then
Set rng1 = Intersect(rng, Range("A1:H400"))
If Not rng1 Is Nothing Then
If rng1.WrapText = True Then
rng1.WrapText = False
End If
Set rng1 = Nothing
End If
End If
End If
Next

time2 = Timer
MsgBox (time2 - time1)
End Sub

--
Alex St-Pierre
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 2000 how to format the comments font all comments Delquestion Excel Discussion (Misc queries) 1 October 8th 09 02:19 PM
Comments Chris waller Excel Discussion (Misc queries) 4 December 3rd 08 09:04 PM
in excel useing comments how do you add clip art to comments? dhouse New Users to Excel 2 July 18th 07 08:14 AM
? about COMMENTS Wayne Knazek Excel Worksheet Functions 0 August 18th 06 02:13 PM
Comments Bill[_30_] Excel Programming 8 June 28th 05 05:43 PM


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