![]() |
#1
|
|||
|
|||
![]()
Hello,
with the help of some Youtube videos i was able to write a small excel macro to help me copying content from my excel table into a word document (by using bookmarks for example). The macro works fine: it is able to copy the content from the excel sheet to the word document. The problem is: subscript- and superscript-numbers and -letters are turned into normal letters. IF possible i would like to change that. This is the code is used: 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 Probenliste.Bookmarks("Probenname1").Range.Text = Range("Probenname1") Probenliste.Bookmarks("Verbindung1").Range.Text = Range("Verbindung1") Set Probenliste = Nothing Set appWord = Nothing End Sub Keep in mind i am no expert^^ Any ideas are appreciated ![]() Greetings! |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
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 |
![]() |
georgekung84 | Word VBA | 15 | 08-08-2012 06:28 PM |
Formatting macro | Ulodesk | Word Tables | 9 | 04-10-2012 06:37 PM |