+ Reply to Thread
Results 1 to 4 of 4

rinominare un foglio xls

  1. #1
    Registered User
    Join Date
    11-26-2010
    Location
    Italia
    MS-Off Ver
    Excel 2003
    Posts
    20

    rinominare un foglio xls

    Ciao,
    ho un file xlsx che effettua dei controlli sulla puntualità dei mezzi in partenza.
    A questo foglio c'è associata una base dati (un altro file xlsx esportato dalprogramma web di registrazione dei veicoli).
    Nella normalità il file esportato si chiama StoricoVeicoli.xlsx ed il fogli con i dati si chiama StoricoVeicoli 1 (che fantasia vero), succede che se l'esportazione viene fatta con xls aperto o in simultanea con altri, il nome del file è sempre quello, ma il nome del foglio cambia in StoricoVeicoli 1, StoricoVeicoli 2, StoricoVeicoli 3 ecc...
    ovviamente cambiando il riferiemnto la base dati non funziona.
    C'è un modo per rinominare il foglio del file xls??
    Conoscendone la label procederei così:
    Please Login or Register  to view this content.
    ma se questà non è nota?? tipo: Sheets("StoricoVeicoli xxx ").Select

    idee?
    Grazie

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: rinominare un foglio xls

    roughly translated that is
    Hello,
    I have a xlsx file that performs checks on departing aircraft punctuality.
    In this paper there is an associated database (another xlsx files exported dalprogramma web registration of vehicles).
    In the exported file is called normal StoricoVeicoli.xlsx and data sheets is called StoricoVeicoli 1 (real not fantasy), which happens if the export is done with open xls or simultaneously with others, the file name is always , but the sheet name changes StoricoVeicoli 1, StoricoVeicoli 2, 3 etc ... StoricoVeicoli
    obviously changing the reference the data base does not work.
    Is there a way to rename the spreadsheet file xls?
    Knowing the label procederei like this:
    Please Login or Register  to view this content.
    But if this is not known? Type: Sheets ("StoricoVeicoli xxx"). Select

    ideas?
    thanks
    Last edited by martindwilson; 05-29-2012 at 07:00 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    11-26-2010
    Location
    Italia
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: rinominare un foglio xls

    Hi Martin, soryyyyyy,
    I thought to write into an Italian site...
    That I ask is too easy that translate my old post..
    I can rename the first sheet into an xls file without knowing the sheet name??
    Tnk
    Fabrizio

  4. #4
    Registered User
    Join Date
    11-26-2010
    Location
    Italia
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: rinominare un foglio xls

    simple:
    Sheets(1).Select
    Sheets(1).Name = "my sheet name "
    Tnk and have a nice day
    Fabrizio

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1