+ Reply to Thread
Results 1 to 4 of 4

vba code to delete the empty bookmarks in Word document

  1. #1
    Registered User
    Join Date
    02-24-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    76

    Unhappy vba code to delete the empty bookmarks in Word document

    Hi all,

    I have been automating reports that will be generated in word documents for every company. The baseline is that I have a excel sheet which contain the data inputs and a word template document (template with bookmarks). I have written a macro that generate the reports when the user clicks the button but found that there some reports that generates empty bookmarks since there is no data for the corresponding bookmark. I have uploaded the excel sheets that has the full data and the setup sheets. The setup sheet has the Column Number, Bookmark Name, Description. The data sheet has the data values and the code info sheet has the name of the template doc and the name of the destination folder where the reports will be generated and stored. My requirement is to delete the empty bookmark from the report named "Blackberry". I would like some help on this as I don't know on where to write the macro for deleting the empty bookmarks and its sentences (whether its in excel book or word template doc)?
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-24-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: vba code to delete the empty bookmarks in Word document

    Can anyone help me on this?

  3. #3
    Registered User
    Join Date
    02-24-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: vba code to delete the empty bookmarks in Word document

    I have tried with the code
    Please Login or Register  to view this content.
    but i get this error Application defined error. Don't know what is the problem. Really stuck with this.

  4. #4
    Registered User
    Join Date
    02-24-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: vba code to delete the empty bookmarks in Word document

    So there is no one to help me?

+ 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. [SOLVED] still have empty cell after run Delete empty cells code
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2012, 04:28 PM
  2. [SOLVED] Delete all lines in word document
    By jesika in forum Word Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2009, 11:34 PM
  3. Replies: 0
    Last Post: 10-06-2006, 09:05 AM
  4. Code to Delete Empty Rows in a Word Table
    By Araknia777 via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2005, 05:05 PM
  5. exporting data to appear at Bookmarks in a Word Document
    By Dave Kilroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2005, 02:44 PM

Tags for this Thread

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