Sub Trova_articolo()
'
' Macro3 Macro
'
NomeFile = ActiveWorkbook.Name
NumeroFinestre = ActiveWorkbook.Windows.Count
If NumeroFinestre < 3 Then GoTo CreaFinestre Else GoTo NomeFinestre
CreaFinestre:
QuanteFinetsre = 3 - NumeroFinestre
For NW = 1 To QuanteFinetsre
ActiveWindow.NewWindow
Next NW
NomeFinestre:
NOMEFINESTRA1 = NomeFile & ":1"
NOMEFINESTRA2 = NomeFile & ":2"
NOMEFINESTRA3 = NomeFile & ":3"
'
Set rng = Application.InputBox("Seleziona l'articolo da ricercare", , , , , , , 8)
'Range("A13").Select
ActiveWorkbook.Windows(NOMEFINESTRA2).Activate
Sheets("EP").Select
Range("B:B").Select
Cells.Find(What:=rng, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate |