Jump to content

Ciclos em excel


ruismb
 Share

Recommended Posts

Boa tarde, tenho um problema em excel que gostaria de saber se é possível resolver.

Será possivel criar um ciclo que me seleccione um conjunto de folhas como o exemplo que se segue.

Range("B3").Select

  ActiveCell.FormulaR1C1 = "='Documento1'!R7C15"

  Range("B4").Select

  ActiveCell.FormulaR1C1 = "='Documento2'!R7C15"

    Range("B5").Select

    ActiveCell.FormulaR1C1 = "='Documento3'!R7C15"

    Range("B6").Select

    ActiveCell.FormulaR1C1 = "='Documento4'!R7C15"

    Range("B7").Select

    ActiveCell.FormulaR1C1 = "='Documento5'!R7C15"

    Range("B8").Select

    ActiveCell.FormulaR1C1 = "='Documento7'!R7C15"

    Range("B9").Select

    ActiveCell.FormulaR1C1 = "='Documento8'!R7C15"

    Range("B10").Select

    ActiveCell.FormulaR1C1 = "='Documento9'!R7C15"

Range("B11").Select

Em que Documento1, Documento2 .... são as folhas.

Antecipadamente grato,

Rui Barbosa

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.