Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 13 su 13

Discussione: Macro con excel

  1. #11
    Moderatore di Windows e software L'avatar di darkkik
    Registrato dal
    Dec 2003
    residenza
    Pavia - Milano - Lodi.
    Messaggi
    11,476
    Bravo mancam è quasi giusto, solo che con questo seleziona un'area, se nn ho capito male lui voleva solo la cella, per la sola cella dovrebbe essere così;
    Sub Macro1()
    '
    ' Macro1 Macro
    ' Macro registrata il 06/02/2004 da Darkkik
    '

    '

    Sheets("Foglio1").Select
    Range("A2").Select
    Selection.Copy
    Sheets("Foglio2").Activate
    Range("A2").Select
    If ActiveCell = "" Then
    ActiveSheet.Paste
    Else
    For i = 65536 To 1 Step -1
    If Cells(i, 1).Value <> Empty Then
    Cells(i, 1).Offset(1, 0).Select
    ActiveSheet.Paste
    Exit For
    End If
    Next
    End If


    '
    End Sub

    In tutti e due i casi funziona...scelga lui.
    ciao.
    I can see much clearer now, I'm blind.
    Io fui già quel che voi siete, Quel ch'io son voi anco sarete.
    Remember that death is not the end, but only a transition
    All that we learn this time is carried beyond this life.

  2. #12
    a me va benissimo per una riga, adesso li provo!
    molte grazie!
    [.::MDT::.]

  3. #13
    Moderatore di Windows e software L'avatar di darkkik
    Registrato dal
    Dec 2003
    residenza
    Pavia - Milano - Lodi.
    Messaggi
    11,476
    Di nulla ,
    ciao.
    I can see much clearer now, I'm blind.
    Io fui già quel che voi siete, Quel ch'io son voi anco sarete.
    Remember that death is not the end, but only a transition
    All that we learn this time is carried beyond this life.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.