Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Simple VB question

I have this macro which checks to see if a cell has a value in it, i want
it to carry on and execute the rest of the macro if it has and halt and exit
if it hasn't. At present it continues thru and runs the rest of the macro.

what I have at moment

if ("b32") = ("b999")
then
msgbox " Please make selection"
end if
Call normaltarrif
end sub

Thx all




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Simple VB question

if ("b32") < ("b999") then
then
msgbox " Bad Value"
Exit sub
end if
Call normaltarrif
end sub


--
Regards,
Tom Ogilvy

"HammerHead" wrote in message
.. .
I have this macro which checks to see if a cell has a value in it, i want
it to carry on and execute the rest of the macro if it has and halt and

exit
if it hasn't. At present it continues thru and runs the rest of the macro.

what I have at moment

if ("b32") = ("b999")
then
msgbox " Please make selection"
end if
Call normaltarrif
end sub

Thx all






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Simple VB question

Thanks thats sorted it .


"Tom Ogilvy" wrote in message
...
if ("b32") < ("b999") then
then
msgbox " Bad Value"
Exit sub
end if
Call normaltarrif
end sub


--
Regards,
Tom Ogilvy

"HammerHead" wrote in message
.. .
I have this macro which checks to see if a cell has a value in it, i

want
it to carry on and execute the rest of the macro if it has and halt and

exit
if it hasn't. At present it continues thru and runs the rest of the

macro.

what I have at moment

if ("b32") = ("b999")
then
msgbox " Please make selection"
end if
Call normaltarrif
end sub

Thx all








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Very simple question. Fenneth Excel Discussion (Misc queries) 3 April 19th 06 07:53 PM
Simple Question cjjoo Excel Worksheet Functions 2 October 12th 05 04:38 AM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
Simple VBA question Srdan Kovacevic Excel Programming 2 October 17th 03 05:06 PM


All times are GMT +1. The time now is 12:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"