Friday, January 28, 2011

Broken Blood Vessels Lips

VBA - Excel" Navigating between spreadsheets "

 Ecco quali comandi usare per navigare fra i fogli di calcolo in excel usando VBA 

A) Muoversi in uno sheet specifico:

Sheets("nome del foglio di calcolo").Select

'selects the spreadsheet under the name you assigned

B) Moving in a sheet using specific variables (or Index Value Index Value)

The rule is this: for the first excel spreadsheet (the one all on the left) takes the value 1, the second 2 third 3 and so on. No matter how you call them, if you moved, changed or deleted: the spreadsheet will always have more left to excel value of 1, 2,3,4 etc. others to follow.

said:

Sheets (1). Select 'Select the spreadsheet more left
Sheets (2). Select' Select the second
Sheets (3). Select ' Select the third and so on
  C) Move to the next or previous sheet  

ActiveSheet.Next.Select ' Select the spreadsheet next
ActiveSheet.Previous.Select 'Select the spreadsheet precedentre

Hello to the prox.
Meats: v





0 comments:

Post a Comment