![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 14
|
I am trying to set up my macro so that if say cell b5 is blank my macro will stop, and if it is possible without giving the person running the marco a notification (I already have the screen.update=false set up)
Thanks, Bill |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Try the following:
Code:
Sub YourMacro() For Each Cell In ActiveSheet.UsedRange If Cell.Address = "$B" And Cell.Value = "" Then GoTo 1 Next 1 End Sub
__________________
Kind regards, Al Chara |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|