Need help with formula for macro

Julie W

New Member
Joined
Aug 11, 2014
Messages
1
I am working on a macro and need help creating a formula that will check to see if the next row is blank. If the next row is blank, it needs to stop the macro. if tne next row is not blank, I want to run the following formula (using the next cell and so on until it comes to a blank row).
This is the formula that it needs to run if the row is not blank =RIGHT(A32,LEN(A32)-FIND(" ",A32,1)-2)




Anyone have any ideas?

Thanks in advance !!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Julie W,

Here is some code I have used to find the number of the last row of data. This code goes to the bottom of column A. Does an end-up to find the last entry in the column.

Code:
Dim LastRow As Long
    LastRow = Range("A" & Rows.Count).End(xlUp).Row

Now that you have the number of the last row, you can put your formula inside a Do Loop.

DO UNTIL ActiveCell.Row = LastRow + 1

Best of luck,

G/L
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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