+ Reply to Thread
Results 1 to 7 of 7

vba loop to open new workbook and save them with a different name using master page

Hybrid View

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    40

    vba loop to open new workbook and save them with a different name using master page

    I wanted loop in my code that open new workbook every time and done formating and then save as new file.


    I am new to vba please give me better suggestion.
    Attached Files Attached Files
    Last edited by ankitparate; 07-12-2013 at 06:25 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: vba loop to open new workbook and save them with a different name using master page

    So the macro should open the file given in B3, do the formatting and save as the file in cell B5?

    What formatting to be done?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: vba loop to open new workbook and save them with a different name using master page

    Hi arlu201,

    I completed my code by own.

    By the way thank you for responding.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: vba loop to open new workbook and save them with a different name using master page

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.

  5. #5
    Registered User
    Join Date
    07-10-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: vba loop to open new workbook and save them with a different name using master page

    I changed my code like this

    see the attachment


    code snippet.JPG

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: vba loop to open new workbook and save them with a different name using master page

    OK thanks. Any reason why you removed the attachment from the 1st post?

  7. #7
    Registered User
    Join Date
    07-10-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: vba loop to open new workbook and save them with a different name using master page

    See I again added the attachment with correct code.
    Last edited by ankitparate; 07-12-2013 at 06:29 AM.

+ 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