Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-23-2020, 09:51 AM
ElHonigmann ElHonigmann is offline Macro Help: Keep formatting Windows 10 Macro Help: Keep formatting Office 2019
Novice
Macro Help: Keep formatting
 
Join Date: Jan 2020
Posts: 1
ElHonigmann is on a distinguished road
Default Macro Help: Keep formatting

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!
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 08:28 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