No copying blank cells

Status
Not open for further replies.

Romano_odK

Active Member
Joined
Jun 4, 2020
Messages
379
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,

Just acquired this macro and it works great, but I what I would also want is that it won't copy blank cell over the cells in column C. Is that possible? So what the macro does right is it copies values from D to C, but when de value is empty in column D, it also makes the cell in column c empty and that is what I do not need. Is it possible to exclude that?

Thank you for your help.

With Sheets("OPXML").ListObjects("Table_Query_from_A100")
.ListColumns(4).DataBodyRange.Copy
.ListColumns(3).DataBodyRange.PasteSpecial xlPasteValues, , True
Application.CutCopyMode = False
End With

1641391774856.png
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
This is exactly the same question you asked in your previous thread, so this thread is now closed.
You can continue in your previous thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,013
Messages
6,122,694
Members
449,092
Latest member
snoom82

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