Export excel cells to Word with and defining heading1,2 and fontbolt and normal

reiniervandijk1993

New Member
Joined
Apr 28, 2020
Messages
5
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hi there,

My excel VBA experience is not much however I want to try something but can't work it out on my own.

I have a product list that will be different every time.
The list will take with it different cells to fill in different columns as well.

So this is the thing, I want a macro that opens Word and does the following;
Column A; check if the text is font bold or Normal.

Font bold cell will be paste as Heading 1
Newline
Normal cell - will be paste as Heading 2
etc. etc. till the end of the list in column A

Then there is subject in x columns (subject from normal text to bold in the word file)
And then there is text in the cell crossing Name and Subject. (Cell text normal to normal in the Word file.

If the specific cell is empty then the Subject should not be transferred to Word.

See the pictures in this post for more information.
Excel[IMG alt="Click image for larger version.
Name: Excelfile example.jpg Views: 1 Size: 17.4 KB ID: 26496"]http://www.vbaexpress.com/forum/attachment.php?attachmentid=26496&d=1588161167&thumb=1[/IMG]
Word [IMG alt="Click image for larger version.
Name: worddoc example.jpg Views: 1 Size: 4.7 KB ID: 26495"]http://www.vbaexpress.com/forum/attachment.php?attachmentid=26495&d=1588161181&thumb=1[/IMG]


Second is actually when there is this >[cell] = ([1,1]) = ([r,c]) in a text cell.
Then print this in the Word document as the actual referredtext.
Example
excel file; text text text [1,1] text text
word file; text text text example text text

Helping me with this will help me very much. Thank you
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Excel
Excelfile example.PNG
Word
worddoc example.PNG
 
Upvote 0

Forum statistics

Threads
1,214,594
Messages
6,120,436
Members
448,964
Latest member
Danni317

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top