Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 150
Default Blackened cells on pasting

Hi,

(I had posted this problem a few days back. As it resolved on its own
after one or two tries, I posted a message to that effect. The problem
is recurring again now. Can anybody please help? It's possibly
something very trivial..)

I have to consolidated sheets from various workbooks in a worksheet.
As the source worksheets contain blank blank rows between data, I am
copying the Worksheet.usedrange and pasting it in the destination
worksheet. On pasting in the destination worksheet, the blank rows
are being filled in black color. Can anybody shed light on why this
is
happening?


When I try to remove the black color using "No fill", it does not
work. However, using Edit--Clear-Formats, I can remove the black
color.


I am using this line for the copy paste operation:
ws.UsedRange.Copy
Destination:=rspworkbook.Worksheets(rspDestination sheet).Range("a65536").En*
d(xlUp).Offset(2,
0)


(where rspworkbook = Destination workbook)


How can I get rid of the black color?
Is there a better way to copy usedranges and paste it in the
worksheet
in the other workbook?


Thanks in advance for the help.


Regards,
Raj


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Blackened cells on pasting

On Apr 15, 9:43*pm, Raj wrote:
Hi,

(I had posted this problem a few days back. As it resolved on its own
after one or two tries, I posted a message to that effect. The problem
is recurring again now. Can anybody please help? It's possibly
something very trivial..)

I have to consolidated sheets from various workbooks in a worksheet.
As the source worksheets contain blank blank rows between data, I am
copying the Worksheet.usedrange and pasting it in the destination
worksheet. On pasting in the destination worksheet, *the blank rows
are being filled in black color. Can anybody shed light on why this
is
happening?

When I try to remove the black color using "No fill", it does not
work. However, using Edit--Clear-Formats, I can remove the black
color.

I am using this line for the copy paste operation:
ws.UsedRange.Copy
Destination:=rspworkbook.Worksheets(rspDestination sheet).Range("a65536")..En**
d(xlUp).Offset(2,
0)

(where rspworkbook = Destination workbook)

How can I get rid of the black color?
Is there a better way to copy usedranges and paste it in the
worksheet
in the other workbook?

Thanks in advance for the help.

Regards,
Raj


Hi Raj,

Could be a number of things... hard to tell without seeing the actual
files. I would try checking for conditional formats though, or also a
customised colour palette maybe? Both of these things could give the
problem you are experiencing but it may also be something else
alltogether.

Cheers,
Ivan.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image pasting to incorrect cells or bad location within cells [email protected] Excel Programming 5 October 10th 07 04:38 PM
Pasting on Filtered Data Sheets without pasting onto hidden cells CCSMCA Excel Discussion (Misc queries) 1 August 28th 05 01:22 PM
Pasting single cells from Word to multiple cells in Excel ASBiss Excel Worksheet Functions 1 February 15th 05 11:47 AM
how to get rid of selection of cells, after pasting Orion[_2_] Excel Programming 8 February 10th 05 07:57 AM
Pasting onto filtered cells Mediaexcel Excel Worksheet Functions 1 October 27th 04 05:44 PM


All times are GMT +1. The time now is 02:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"