Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-12-2011, 04:37 PM
chipnputt chipnputt is offline Stop multiple pastes at bookmark Windows Vista Stop multiple pastes at bookmark Office 2007
Novice
Stop multiple pastes at bookmark
 
Join Date: Jul 2011
Posts: 5
chipnputt is on a distinguished road
Default Stop multiple pastes at bookmark

I have been working with VBA in Access, Excel and currently Word. I have an excel spreadsheet that is used to organize golfing foursomes on a daily basis. From here I export the necessary data to a word document and then transfer that doc through FTP to the Associations web site. I use the following code to[code]
With ActiveDocument
'Identify current Bookmark range and insert text
If .Bookmarks.Exists(BmkNm) Then
.Bookmarks(BmkNm).Range.PasteSpecial Link:=False, DataType:=wdPasteHTML, _
Placement:=wdInLine, DisplayAsIcon:=False
End If


End With
This code works but the second time it is run, the information is added after the last paste. I have searched for a way to delete the previous information if any and then paste the text to no avail. Any suggestions would be appreciated.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop multiple pastes at bookmark VBA to insert Bookmark rockwellsba Word VBA 2 05-31-2011 01:07 AM
Help with PPT AddIn that pastes slides into another presentation matt.wilson PowerPoint 0 01-05-2011 03:28 PM
Controlling Style when a user pastes into a form Cris0205 Word 0 08-05-2010 04:33 PM
Stop multiple pastes at bookmark Can you stop multiple calendars from fading? JohnGalt Outlook 2 08-05-2010 09:06 AM
Word only pastes plain text seskanda Word 6 02-19-2010 10:01 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:20 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft