Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Claudio P.
 
Posts: n/a
Default [macro excel] cancellare caratteri speciali

Vorrei fare una cosa apparentemente semplice ma che mi sta cmq
sfuggendo di mano :
il codice seguente dovrebbe cancellare tutte le celle dove è scritto
#N/D in tre fogli excel.
Queste celle contengono errori di Cerca Verticale.
Prima di eseguire il codice di seguito ho selezionato tutto il foglio ,
l'ho copiato ed ho incollato i valori; di conseguenza le celle "#N/D"
che voglio sostituire con "" non rappresentano + degli errori ma sono
solo testo.
Si può sapere perchè se faccio a mano l'operazione di sostituzione mi
riesce tutto bene e se lo faccio fare alla macro seguente non succede
nulla ?

BOH !!

----------------------------------------------CUT
HERE---------------------------------------------------------
' elimina #N/D

Sheets("Report Interventi").Select
ActiveWindow.LargeScroll Down:=2
Range("E:E,C:C").Select
Range("C1").Activate
Selection.Replace What:="#N/D", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Sheets("Scost. Negativi").Select
Columns("C:D").Select
Selection.Replace What:="#N/D", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Sheets("Scost. Positivi").Select
Columns("C:D").Select
Range("C124").Activate
Selection.Replace What:="#N/D", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
----------------------------------------------CUT
HERE---------------------------------------------------------

  #2   Report Post  
Posted to microsoft.public.excel.misc
Otto Moehrbach
 
Posts: n/a
Default [macro excel] cancellare caratteri speciali

This newsgroup is an English language newsgroup. Post your message in a
newsgroup that supports your language. HTH Otto
"Claudio P." wrote in message
ups.com...
Vorrei fare una cosa apparentemente semplice ma che mi sta cmq
sfuggendo di mano :
il codice seguente dovrebbe cancellare tutte le celle dove è scritto
#N/D in tre fogli excel.
Queste celle contengono errori di Cerca Verticale.
Prima di eseguire il codice di seguito ho selezionato tutto il foglio ,
l'ho copiato ed ho incollato i valori; di conseguenza le celle "#N/D"
che voglio sostituire con "" non rappresentano + degli errori ma sono
solo testo.
Si può sapere perchè se faccio a mano l'operazione di sostituzione mi
riesce tutto bene e se lo faccio fare alla macro seguente non succede
nulla ?

BOH !!

----------------------------------------------CUT
HERE---------------------------------------------------------
' elimina #N/D

Sheets("Report Interventi").Select
ActiveWindow.LargeScroll Down:=2
Range("E:E,C:C").Select
Range("C1").Activate
Selection.Replace What:="#N/D", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Sheets("Scost. Negativi").Select
Columns("C:D").Select
Selection.Replace What:="#N/D", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Sheets("Scost. Positivi").Select
Columns("C:D").Select
Range("C124").Activate
Selection.Replace What:="#N/D", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
----------------------------------------------CUT
HERE---------------------------------------------------------


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



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