View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK Pete_UK is offline
external usenet poster
 
Posts: 8,856
Default Skip a statment or line in vba

You would use:

If condition Then
action_if_true
Else
action_if_false
Endif

rest_of_macro

Hope this helps.

Pete

On Jun 27, 11:35*pm, Cue wrote:
Is it possible to skip a statement(s)/line(s) in vba?

Im using answer msg box and I want to skip or pass a section if the answer
is no.
--
Cue