Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Error 13 on many trim with cells started with +

pcouas
16 déc 18:46 afficher les options

Groupes de discussion : microsoft.public.fr.excel
De : "pcouas" - Rechercher les messages de cet
auteur
Date : 16 Dec 2005 09:46:48 -0800
Local : Ven 16 déc 2005 18:46
Objet : Excel Error 13 on Trim Function on many + text cells
Répondre | Répondre à l'auteur | Transférer | Imprimer | Message
individuel | Afficher l'original | Retirer | Signaler un cas
d'utilisation abusive

Hi,


I have many cells where text begin whith +
First cell is well redirect on error label, but not second + error why
?


Regards
Philippe


For Each c In Selection.Cells
q = c.row
On Error GoTo suite1
If c.row c.SpecialCells(xlLastCell).row Then
Exit For
Else
c.value = RTrim(c.value)
End If
GoTo suite2
suite1:
' pour gerer les erreurs sur les colonnes converties en type cellules
sans valeurs,commence par un +
If c.HasFormula Then c.value = "'" + c.FormulaR1C1
'Err.Clear


suite2:
Next c

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Error 13 on many trim with cells started with +

Try changing

suite1:

to

suite1:
Resume Point1
Point1:

HTH,
Bernie
MS Excel MVP


"pcouas" wrote in message
ps.com...
pcouas
16 déc 18:46 afficher les options

Groupes de discussion : microsoft.public.fr.excel
De : "pcouas" - Rechercher les messages de cet
auteur
Date : 16 Dec 2005 09:46:48 -0800
Local : Ven 16 déc 2005 18:46
Objet : Excel Error 13 on Trim Function on many + text cells
Répondre | Répondre à l'auteur | Transférer | Imprimer | Message
individuel | Afficher l'original | Retirer | Signaler un cas
d'utilisation abusive

Hi,


I have many cells where text begin whith +
First cell is well redirect on error label, but not second + error why
?


Regards
Philippe


For Each c In Selection.Cells
q = c.row
On Error GoTo suite1
If c.row c.SpecialCells(xlLastCell).row Then
Exit For
Else
c.value = RTrim(c.value)
End If
GoTo suite2
suite1:
' pour gerer les erreurs sur les colonnes converties en type cellules
sans valeurs,commence par un +
If c.HasFormula Then c.value = "'" + c.FormulaR1C1
'Err.Clear


suite2:
Next c


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Error 13 on many trim with cells started with +

I have resolved problem
Thanks

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
Error suddenly started occuring Richard Excel Discussion (Misc queries) 5 March 11th 08 01:15 PM
I've started designing a combo box and have the look up cells referenced. Marc New Users to Excel 0 March 14th 06 09:45 PM
Getting Started - Referencing Cells Tatakau Excel Programming 5 October 27th 05 02:09 PM
=IF(TRIM(RIGHT(D4,1))="X",MID(D4,1,LEN(D4)-1),D4) ? remove error Muhammad Nasir Excel Worksheet Functions 9 June 24th 05 10:22 AM
Trim Function - Error Library Not Found Doug[_11_] Excel Programming 5 June 30th 04 04:43 AM


All times are GMT +1. The time now is 06:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"