ClimoC
Well-known Member
- Joined
- Aug 21, 2009
- Messages
- 584
I am trying to do a very simple "PasteAll" PasteSpecial between workbooks.
The problem is that when I do, it pastes the data as an image file! WTF?!
Unfortunately, no other kind of 'PasteSpecial' will do, because different parts of the text in each cell has varying colours to them. A normal GUI paste takes care of this, and doesn't do it as a picture.
The best I've gotten it to is to stop pasting as an image by simply typing:
But this won't bring across the various text colours that part-make up each cell.
Current code is this...
I also tried "PasteSpecial Format:="Microsoft Excel 8.0" blah blah or whatever it is, doesn't work.
I'm going out of my mind here...
The only thing I thought that might have been 'force converting' the data into an image is because there's a jpeg Shape-object within the range. But even when I delete all the shapes in the sheet first, and then copy and paste, it still comes out as an image object!!1
Please help, I'm going out of my freakin' mind with this...
The problem is that when I do, it pastes the data as an image file! WTF?!
Unfortunately, no other kind of 'PasteSpecial' will do, because different parts of the text in each cell has varying colours to them. A normal GUI paste takes care of this, and doesn't do it as a picture.
The best I've gotten it to is to stop pasting as an image by simply typing:
Code:
destinationcell.PasteSpecial "Unicode Text"
But this won't bring across the various text colours that part-make up each cell.
Current code is this...
Code:
SRange = SBook.Sheets("By Type").Range("A1:A" & SBook.Sheets("By Type").Range("A65000").End(xlUp).Row).Find(what:=ConsolC, _
LookIn:=xlValues, lookat:=xlWhole).Address
Debug.Print SBook.Name
SBook.Sheets("By Type").Range(SBook.Sheets("By Type").Range(SRange).Offset(8, 10)).Copy
Debug.Print OutPut.Sheets("By Type").Range("B65000").End(xlUp).Row + 1
If OutPut.Sheets("By Type").Range("A65000").End(xlUp).Row > 1 Then
OutPut.Sheets("By Type").Range("A" & OutPut.Sheets("By Type").Range("A65000").End(xlUp).Row + 9).PasteSpecial _
"Unicode Text"
Else
OutPut.Sheets("By Type").Range("A" & OutPut.Sheets("By Type").Range("A65000").End(xlUp).Row + 1).PasteSpecial _
"Unicode Text"
End If
I also tried "PasteSpecial Format:="Microsoft Excel 8.0" blah blah or whatever it is, doesn't work.
I'm going out of my mind here...
The only thing I thought that might have been 'force converting' the data into an image is because there's a jpeg Shape-object within the range. But even when I delete all the shapes in the sheet first, and then copy and paste, it still comes out as an image object!!1
Please help, I'm going out of my freakin' mind with this...