Results 11 to 15 of 15

Thread: VBA Macro To Create An Excel File With Same Sheet Name As Workbook Name

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Senior Member
    Join Date
    Jun 2012
    Posts
    337
    Rep Power
    14
    @Doc

    Avoid Let , it's redundant.
    That's also the case of any variable in this code.
    The declaration makes no difference either.
    I prefer methods that serve a certain purpose (getbasename), instead of work'around and around and aroud's.

    The first works if the workbook hasn't been saved yet.
    The secound one is necessary when a workbook has an extension that contradicts the filetype.
    Last edited by snb; 09-06-2016 at 08:06 PM.

Similar Threads

  1. Replies: 4
    Last Post: 07-02-2013, 11:32 AM
  2. Replies: 4
    Last Post: 06-18-2013, 01:38 PM
  3. VBA To Create A New Workbook
    By cdurfey in forum Excel Help
    Replies: 9
    Last Post: 05-23-2013, 06:41 PM
  4. Excel VBA Macro To Open A File Through Browse Dialog Box
    By Safal Shrestha in forum Excel Help
    Replies: 2
    Last Post: 04-05-2013, 12:59 PM
  5. Replies: 1
    Last Post: 06-02-2011, 10:38 AM

Posting Permissions

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