Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2014, 12:39 AM
Singh_Edm Singh_Edm is offline Copy Paste each cell to a new page Windows 8 Copy Paste each cell to a new page Office 2013
Advanced Beginner
Copy Paste each cell to a new page
 
Join Date: Jan 2014
Posts: 41
Singh_Edm is on a distinguished road
Default Copy Paste each cell to a new page

Hi
I have a 1Col x 1430Row table in excel. I want to copy and paste every cell as a new page in a Word document (Landscape orientation) while retaining the color formatting.
If importing from excel is an issue, I can copy paste the table in word and then use your suggested code from there.
Kindly assist.
Reply With Quote
  #2  
Old 01-16-2014, 12:54 AM
eNGiNe eNGiNe is offline Copy Paste each cell to a new page Windows 7 32bit Copy Paste each cell to a new page Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

One possible approach would be to copy/paste the spreadsheet content into Word as plain text (paste special) and then apply a style with 'start on new page' (format > paragraph > line and page breaks > page break before; include the required colour formatting in the style, too.

For more flexibility, though, I'd start by adding two things to the spreadsheet:
a column before the data, and an empty row between each row with content. Why? then you can add tags (for example, the colour name before a cell with coloured content and an arbitrary [empty] tag before each empty cell.

Paste special these two columns into Word, set up any coloured content styles you need (with the "break before" property) plus a plain-text style with no break before, then use search/replace on the tags to apply the styles as required.

There may, of course, be other approaches!
Reply With Quote
  #3  
Old 01-16-2014, 12:57 AM
Singh_Edm Singh_Edm is offline Copy Paste each cell to a new page Windows 8 Copy Paste each cell to a new page Office 2013
Advanced Beginner
Copy Paste each cell to a new page
 
Join Date: Jan 2014
Posts: 41
Singh_Edm is on a distinguished road
Default

I will try these now and let you know.
Reply With Quote
  #4  
Old 01-16-2014, 03:33 AM
Singh_Edm Singh_Edm is offline Copy Paste each cell to a new page Windows 8 Copy Paste each cell to a new page Office 2013
Advanced Beginner
Copy Paste each cell to a new page
 
Join Date: Jan 2014
Posts: 41
Singh_Edm is on a distinguished road
Default

A sample content of a cell of my table in excel is below.

Be kind; because everyone you meet, is facing some kind of a battle

I used a macro to remove the punctuation and color words so now this cell looks like this.

Be kind because everyone you meet is facing some kind of a battle

I believe I wasn't clear enough in my post in explaining my color scheme. So I have my table in excel in both formats: 1. with punctuation 2. with color scheme and no punctuation.

If importing from the 'table with color scheme' is hard, if there is an approach that would would import each cell of from the 'table with punctuation' I can try and find a macro in word to get my color scheme.

Would the approaches you suggest work now? Please suggest.

And, if you can't think of a way,
Can you please reword my original post + this post combined so my question is clearer in a single post?

Last edited by Singh_Edm; 01-16-2014 at 03:36 AM. Reason: Put a reword request
Reply With Quote
  #5  
Old 01-17-2014, 12:18 AM
eNGiNe eNGiNe is offline Copy Paste each cell to a new page Windows 7 32bit Copy Paste each cell to a new page Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

Revised now I understand the colouring is at character level, not cell level …
  • content: single-column Excel, some words in each cell coloured – Be kind, because everyone you meet is facing some kind of a battle
  • goal: multi-page Word, each cell on separate page, colour preserved
What I did …
  1. selected the single column in Excel
  2. pasted it into Word – this gives a table
  3. converted the table into text (Table tools, Layout, Convert to text)
  4. selected all the text, applied a heading style with Page break before and text colour Automatic
What you could do to finish the conversion is …
set up character styles and use those to apply your special colouring: this will make it easier to find/retrieve coloured words, and to add new records by hand if you need to

In general, style-driven changes are preferable to local overrides <g>
HTH!
Reply With Quote
  #6  
Old 01-17-2014, 12:25 AM
Singh_Edm Singh_Edm is offline Copy Paste each cell to a new page Windows 8 Copy Paste each cell to a new page Office 2013
Advanced Beginner
Copy Paste each cell to a new page
 
Join Date: Jan 2014
Posts: 41
Singh_Edm is on a distinguished road
Default

Regarding bullet point 4, I don't understand "applie a heading style 'WITH PAGE BREAK BEFORE'? So as you are rewording my question you are also suggesting I try this, right?

I'm not sure how to apply a 'page break before'
Many thanks for taking out the time for that.
Reply With Quote
  #7  
Old 01-17-2014, 12:46 AM
eNGiNe eNGiNe is offline Copy Paste each cell to a new page Windows 7 32bit Copy Paste each cell to a new page Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

  • Check recent postings for pointers to information about styles – you really need at least a basic understanding of this mechanism if you want to be productive with Word.
  • A style defines a lot of properties for a paragraph or a block of text within a paragraph. By defining a style once, you can make sure all the paragraphs (or text) you apply the style to have the same properties; consequently, you can then modify the style and change the properties of all the content that style applies to. 'Page break before' is one of the properties you can specify with a paragraph style, and the easiest way to get the result – one piece of text per page – you want.
Attached Images
File Type: jpg toDelete.jpg (41.6 KB, 12 views)
Reply With Quote
  #8  
Old 01-17-2014, 12:56 AM
Singh_Edm Singh_Edm is offline Copy Paste each cell to a new page Windows 8 Copy Paste each cell to a new page Office 2013
Advanced Beginner
Copy Paste each cell to a new page
 
Join Date: Jan 2014
Posts: 41
Singh_Edm is on a distinguished road
Thumbs up

Ok so I was able to put page breaks. I thought the wildcard idea would work but it didn't. So now I have a word file, without colors but with punctuation marks ; , .

I want to differently color each word that ends with the above symbols. Can't get this portion done.

Last edited by Singh_Edm; 01-17-2014 at 02:27 AM. Reason: Partially solved issue. Accidentally acknowledged that it was fully solved.
Reply With Quote
  #9  
Old 01-17-2014, 03:39 AM
eNGiNe eNGiNe is offline Copy Paste each cell to a new page Windows 7 32bit Copy Paste each cell to a new page Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

You'll have to hope that someone else can help you with Word's implementation of wildcards :-} It doesn't seem to include the concept "word", or at any rate I can't persuade it to find/select {word};

btw, when you're at the stage with colours (imported from the original Excel file) but no special characters – have you tried searching for colour and applying a style?

I'll watch and learn on this part of the question.
Attached Images
File Type: png toDelete.png (33.6 KB, 10 views)
Reply With Quote
  #10  
Old 01-17-2014, 09:41 AM
Singh_Edm Singh_Edm is offline Copy Paste each cell to a new page Windows 8 Copy Paste each cell to a new page Office 2013
Advanced Beginner
Copy Paste each cell to a new page
 
Join Date: Jan 2014
Posts: 41
Singh_Edm is on a distinguished road
Default

If I import the colored excel file (no special characters) and paste that as plain text, as per your question, can I still search for colors to apply a style? Because once I paste as text to apply 'page break before' everything is pasted just as black text.
Reply With Quote
  #11  
Old 01-17-2014, 10:05 AM
Charles Kenyon Charles Kenyon is offline Copy Paste each cell to a new page Windows 7 64bit Copy Paste each cell to a new page Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,138
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

When you paste as plain text, the color formatting will be lost.
Reply With Quote
  #12  
Old 01-17-2014, 11:58 PM
Singh_Edm Singh_Edm is offline Copy Paste each cell to a new page Windows 8 Copy Paste each cell to a new page Office 2013
Advanced Beginner
Copy Paste each cell to a new page
 
Join Date: Jan 2014
Posts: 41
Singh_Edm is on a distinguished road
Default Issue Resolved

http://www.vbaexpress.com/forum/show...ecial-characer

The second problem is Solved there by someone.
Reply With Quote
  #13  
Old 01-20-2014, 12:55 AM
eNGiNe eNGiNe is offline Copy Paste each cell to a new page Windows 7 32bit Copy Paste each cell to a new page Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

Quote:
Originally Posted by eNGiNe View Post
What I did …
  1. selected the single column in Excel
  2. pasted it into Word – this gives a table
  3. converted the table into text (Table tools, Layout, Convert to text)
  4. selected all the text, applied a heading style with Page break before and text colour Automatic
This option does not use paste special, so the Excel colours are still there and you can use them to drive search/replace.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Paste each cell to a new page Paste Special: Copy and Paste Formatting Only? tinfanide Word 6 03-06-2013 12:21 AM
Copy and paste words on right side of page Videolife Word 3 01-26-2013 12:54 PM
Can't copy paste irenasobolewska Office 2 10-26-2012 05:09 PM
Copy Paste each cell to a new page Find, copy and paste into a new page jperez84 Word VBA 24 09-20-2012 11:34 AM
Copy - Paste between 2 tables rod147 Excel 1 10-22-2009 08:21 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:11 AM.


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