+ Reply to Thread
Results 1 to 3 of 3

naming a file based on cell value?

  1. #1
    nokia3650
    Guest

    naming a file based on cell value?

    i have a monthly report that gives me portfolio for each customer.name of
    the sheets are generic (somethingxx where xx is number).i allready made
    macro that take sheet after sheet and saves it as separate excel file but
    then i must look into each file and rename it.can some value from the sheet
    be used for a name of a file?

    how can this be done?


    thx


    rene


  2. #2
    Bob Phillips
    Guest

    Re: naming a file based on cell value?

    You could use something like

    With ActiveSheet
    .Name = .Range("A1").Value
    End With

    and change Activesheet to however you are addressing the sheet

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "nokia3650" <[email protected]> wrote in message
    news:[email protected]...
    i have a monthly report that gives me portfolio for each customer.name of
    the sheets are generic (somethingxx where xx is number).i allready made
    macro that take sheet after sheet and saves it as separate excel file but
    then i must look into each file and rename it.can some value from the sheet
    be used for a name of a file?

    how can this be done?


    thx


    rene



  3. #3
    nokia3650
    Guest

    Re: naming a file based on cell value?

    thanks

    that was so simple i am ashamend that i dint it figured out.

    once again

    htanks


    rene
    "Bob Phillips" <[email protected]> wrote in message
    news:%[email protected]...
    > You could use something like
    >
    > With ActiveSheet
    > .Name = .Range("A1").Value
    > End With
    >
    > and change Activesheet to however you are addressing the sheet
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (replace somewhere in email address with gmail if mailing direct)
    >
    > "nokia3650" <[email protected]> wrote in message
    > news:[email protected]...
    > i have a monthly report that gives me portfolio for each customer.name of
    > the sheets are generic (somethingxx where xx is number).i allready made
    > macro that take sheet after sheet and saves it as separate excel file but
    > then i must look into each file and rename it.can some value from the

    sheet
    > be used for a name of a file?
    >
    > how can this be done?
    >
    >
    > thx
    >
    >
    > rene
    >
    >




+ 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