Naming Dynamic Range Until Consecutive Blank Cells

coda281

New Member
Joined
May 15, 2020
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
I am importing data into a sheet starting at B3 (8 column width). This data has blank rows separating each line of data. Ideally, I'd like to be able to find a way to paste it with the blank rows automatically removed. How can I assign a name to this range until I have consecutive blank rows? I cannot use a delete (full) row code as I have charts that feed from the source adjacent in the worksheet.

Thanks!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Im not good at VBA but you could rapidly delete the Empty rows by transforming your pasted data into a table, then with the filters, showing only the empty rows, then delete them ,then untable the data. Takes about 30 seconds. If you have to do this everyday, a VBA code would be nice though.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,195
Members
449,072
Latest member
DW Draft

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