Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 01-27-2020, 07:19 PM
p45cal's Avatar
p45cal p45cal is offline Macro Help: Keep formatting Windows 10 Macro Help: Keep formatting Office 2019
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

I know nothing of Word VBA but I tried this and it seems to go in the right direction:
Code:
Sub nachwordkopieren()
Dim Probenliste As Object
Dim appWord As Object

Set appWord = CreateObject("Word.Application")
Set Probenliste = appWord.Documents.Add("filepath")
appWord.Visible = True
Probenliste.Activate

Range("Probenname1").Copy
Probenliste.Bookmarks("Probenname1").Range.Paste
Range("Verbindung1").Copy
Probenliste.Bookmarks("Verbindung1").Range.Paste

Set Probenliste = Nothing
Set appWord = Nothing
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Help: Keep formatting Macro to convert formatting? CTHockeyBA Word VBA 1 09-25-2018 06:13 PM
Conditional Formatting in a Macro jennyyoung Excel Programming 15 05-17-2018 09:39 AM
Conditional Formatting Macro grexcelman Excel Programming 1 01-10-2015 04:45 PM
Macro Help: Keep formatting Macro for text formatting georgekung84 Word VBA 15 08-08-2012 06:28 PM
Formatting macro Ulodesk Word Tables 9 04-10-2012 06:37 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:06 AM.


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