Paste Special Values Question

dazfoz

Board Regular
Joined
Dec 21, 2007
Messages
205
Hi,

Thanks to everybody who helped yesterday, but now I have another question.

I'm using a feeder page with the following formula to populate;

=IF('Data Sheet'!$A2="","",'Data Sheet!I2)

So if the cell A2 on the data sheet is blank (If A2 is blank, then the rest of A will be blank) then the cells in question will have no entry (using double speech marks to do this).

Then I have a Macro that copies the whole feeder sheet and drops it into a sheet with paste special values.

My logic was that pasting the values would infact leave the cells with ("") blank, with no entry whatsoever. But if I go to this paste special sheet, and hold ctrl & Down on the arrow key, instead of going to the last cell with data in it, it goes to the last cell where the formula was. Yet clicking on the cell there is no nothing in it, no formula, no spaces, no nothing!

Its driving me wild, as I need the ctrl & down, to go to the last line of data so that I can paste some more info by Macro.

Any help would be appreciated.

Regards

Daz.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
As you have discovered, when you copy a cell containing "" and paste its value to another cell, Excel does not consider the destination cell to be empty (blank) even though it appears that way when you select it.

You could try this on the pasted selection (destination range) immediately after the pastespecial:
Code:
For each c in Selection
   if c.value = vbnullstring then
      c.clearcontents 
   end if
next c
'rest of your code
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,476
Members
452,915
Latest member
hannnahheileen

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