Macro para incluir borda em celula determinada.

Fausto Genaro

New Member
Joined
Jul 9, 2008
Messages
8
Eu tenho uma planilha de aproximadas 1000 linhas que eu necessito incluir uma linha para separar um dado de outro. Acontece, que muitas vezes um dado possui 8, 9 linhas e o que vem na sequencia apenas uma linha o que impossibilita a criação de uma macro simples para incluir as linhas. Alguem sabe alguma macro que pode acabar com essa minha dor de cabeça?

Obrigado
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
I have a spreadsheet of approximately 1000 lines ego include a line to separate one from another since. However, it often has a 8, 9 lines and what follows only one line which makes the creation of a macro simple to include the lines. Does anyone know any macro that can end up with that my headache?

Thank you
 
Upvote 0
I think you are saying that you have blank lines in the middle of your data. Sometimes one blank line, maybe more than one.
Select the entire page, sort by column A. Use "ascending" option. That will put all the blank rows below your data.

If you need to keep your data in the original sequence then use a temporary helper column. Number the rows from 1 to 1000 then after the first sort you should sort again using the helper column. Then delete the helper numbers
 
Upvote 0

Forum statistics

Threads
1,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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