Code to cut data and paste as values, then delete specific range of row when the cells in column D is blank

Joined
Apr 19, 2018
Messages
3
Hi I am a new VBA learner.

Need help for code, to cut data and paste as values, then delete specific range of row when the cells in column D is blank

Eg. I have a quotation table in my sheet (=Quote!$A$10:$AL$265).
I would like to first cut of (=Quote!$A$10:$K$260) and paste as value, afterwards, to delete the rows where in column D starting from D11-D132 there is a value in it, but between D133-D260 is blank. And I need to delete these blank row.


Can help?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
How about
Code:
Sub Convert2ValDel()
   With Range("A10:K260")
      .Value = .Value
   End With
   Range("D11:D132").SpecialCells(xlBlanks).EntireRow.Delete
End Sub
 
Upvote 0
Do you have any blank cells in D11:D132?
If so what formula have you got in that range?
 
Upvote 0
Do you have any blank cells in D11:D132?
If so what formula have you got in that range?

So my quotation every column has formulas except for column D.

In this case, I want to use cell in column D where there is no formula as my specific cell to delete the blank row after i have cut and paste Column A11:A260 to column K11:K260.

I am not sure too if i provide enough information for you all to help me.

Do let me know what other information needed to build the code.

Thanks a million!!!
 
Upvote 0
If you got the error reported in post#3 then there are no blank cells in D11:D132
 
Upvote 0

Forum statistics

Threads
1,224,936
Messages
6,181,851
Members
453,068
Latest member
DCD1872

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