Discussione:
Macro per eliminare celle unite
(troppo vecchio per rispondere)
Pietro Scanzi
2016-11-21 09:08:37 UTC
Permalink
Buongiorno
dovrei eliminare tutte le celle unite da un file, in una macro.
Se tento di registrarla la memoria si esaurisce.
Mi date un suggerimento su come procedere?
Norman Jones
2016-11-21 10:13:01 UTC
Permalink
Ciao Pietro,
Post by Pietro Scanzi
Buongiorno
dovrei eliminare tutte le celle unite da un file, in una macro.
Se tento di registrarla la memoria si esaurisce.
Mi date un suggerimento su come procedere?
Prova qualcosa del genere:
'=========>>
Option Explicit

'--------->>
Public Sub Tester()
Dim WB As Workbook
Dim SH As Worksheet
Dim Rng As Range

Set WB = ThisWorkbook
For Each SH In WB.Worksheets
Set Rng = SH.UsedRange
Rng.UnMerge
Next SH
End Sub
'<<=========




===
Regards,
Norman
Pietro Scanzi
2016-11-21 12:00:40 UTC
Permalink
Post by Norman Jones
'=========>>
Option Explicit
'--------->>
Public Sub Tester()
Dim WB As Workbook
Dim SH As Worksheet
Dim Rng As Range
Set WB = ThisWorkbook
For Each SH In WB.Worksheets
Set Rng = SH.UsedRange
Rng.UnMerge
Next SH
End Sub
'<<=========
Perfetto mille grazie

Continua a leggere su narkive:
Loading...