Copying GridLines with AutoFill

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a fill macro assigned to a worksheet that is designed to only copy over items that show a quanity of one or more items. If the macro detects a quanity of one or more for a particular item it copies that item over to another Quote worksheet.

The problem is that when the data is being copied over to the Quote worksheet it is also copying over all the gridlines that surround the data from the main worksheet.

How do I make this macro ONLY copy over the text information and not the gridline formatting that surrounds the data when this macro is ran?

Thx!
 
Elusive,

Instead of doing a Copy/Paste, simply set the value of the target cell equal
to that of the source cell. That is, instead of

Worksheets("Source").Range("A1").Copy Worksheets("Quote").Range("B2")

use

Worksheets("Quote").Range("B2").Value = Range("A1").Value

If that doesn't fit your code, then post your code.

HTH,
Bernie
MS Excel MVP

Elusive said:
I have a fill macro assigned to a worksheet that is designed to only copy
over items that show a quanity of one or more items. If the macro detects a
quanity of one or more for a particular item it copies that item over to
another Quote worksheet.
The problem is that when the data is being copied over to the Quote
worksheet it is also copying over all the gridlines that surround the data
from the main worksheet.
How do I make this macro ONLY copy over the text information and not the
gridline formatting that surrounds the data when this macro is ran?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top