+ Reply to Thread
Results 1 to 3 of 3

changing name of workbook

  1. #1
    inquirer
    Guest

    changing name of workbook

    In vb code I create a new workbook which is given a name say "book22.xls".

    How can I change the name of the workbook to say "reports_today.xls" so that
    later I can call up this workbook by this name?

    Thanks
    Chris



  2. #2
    Norman Jones
    Guest

    Re: changing name of workbook

    Hi Inquirer,

    Set the name directly when the workbook is opened:

    Sub Tester()
    Dim WB As Workbook

    Set WB = Workbooks.Add

    WB.SaveAs "reports_today.xls"

    End Sub


    ---
    Regards,
    Norman



    "inquirer" <noreply@noreply.com> wrote in message
    news:utY2v0S%23EHA.3988@TK2MSFTNGP11.phx.gbl...
    > In vb code I create a new workbook which is given a name say "book22.xls".
    >
    > How can I change the name of the workbook to say "reports_today.xls" so
    > that
    > later I can call up this workbook by this name?
    >
    > Thanks
    > Chris
    >
    >




  3. #3
    inquirer
    Guest

    Re: changing name of workbook

    Many thanks

    Chris
    "Norman Jones" <normanjones@whereforartthou.com> wrote in message
    news:%23vDIx$S%23EHA.2192@TK2MSFTNGP14.phx.gbl...
    > Hi Inquirer,
    >
    > Set the name directly when the workbook is opened:
    >
    > Sub Tester()
    > Dim WB As Workbook
    >
    > Set WB = Workbooks.Add
    >
    > WB.SaveAs "reports_today.xls"
    >
    > End Sub
    >
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "inquirer" <noreply@noreply.com> wrote in message
    > news:utY2v0S%23EHA.3988@TK2MSFTNGP11.phx.gbl...
    > > In vb code I create a new workbook which is given a name say

    "book22.xls".
    > >
    > > How can I change the name of the workbook to say "reports_today.xls" so
    > > that
    > > later I can call up this workbook by this name?
    > >
    > > Thanks
    > > Chris
    > >
    > >

    >
    >




+ 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