+ Reply to Thread
Results 1 to 5 of 5

SaveAs Loop is not working

  1. #1
    Registered User
    Join Date
    09-03-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    7

    SaveAs Loop is not working

    Hello All
    I have a Sheet that AutoFilters and copy/pastes the results to a Sheet called "Central" Column A. The code is then supposed to loop through the names in Column A to insert the name in a bookmark in a Word Document called "Cover Letter_CENTRAL.docx" while using the Column A name in the new SaveAs filename.
    I don't get any error messages, I only get 1 Word document which the filename only contains the 1st name from "Central" Column A and not 25 separate documents that match all the names in Column A. Any assistance would be greatly appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    05-10-2012
    Location
    Paris, France
    MS-Off Ver
    2016/365
    Posts
    123

    Re: SaveAs Loop is not working

    Hy shurnicemora

    Try this
    Please Login or Register  to view this content.
    See you later
    Last edited by BrianM45; 10-27-2013 at 12:34 AM. Reason: code correction

  3. #3
    Registered User
    Join Date
    09-03-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: SaveAs Loop is not working

    Thank you so much BrianM45,
    Your prompt response has revealed the other instance of fixed value in my code. This is the instance where the names in Column A are inserted into the Word doc Bookmark, but as you have revealed, the code won't update the bookmark with the loop through Column A, since it seems to be fixed on the 1st name in the Column A. Can you also lend some assistance on how to adjust this instance, so it will properly loop?

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-10-2012
    Location
    Paris, France
    MS-Off Ver
    2016/365
    Posts
    123

    Re: SaveAs Loop is not working

    Indeed, i missed

    The code of the previous post is corrected

  5. #5
    Registered User
    Join Date
    09-03-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: SaveAs Loop is not working

    Thank you Brian45 for your reply - I am forever grateful
    Thank you everyone, who replied to this post to lend a helping hand

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SaveAs Method not working
    By excelforum123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2013, 02:49 AM
  2. Loop/Concatenate/SaveAs text ?
    By d_cww in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-19-2011, 02:54 AM
  3. ThisWorkbook.SaveAs not working?
    By sweep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2010, 08:09 AM
  4. Excel SaveAs not working
    By ztm0187 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2009, 01:03 PM
  5. SaveAs not working
    By jamesryan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2008, 03:29 PM

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