Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I want to place some code at the start of my macro.
If D34 = no then a message box "Your printer code doesnt match" end macro else yes run the macro. Please help. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Like this Set sht = Sheets("Sheet1") If UCase(sht.Range("D34")) = "NO" Then MsgBox ("Your printer code doesn't match") Exit Sub End If 'Yuor code -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "Neil Holden" wrote: I want to place some code at the start of my macro. If D34 = no then a message box "Your printer code doesnt match" end macro else yes run the macro. Please help. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If Range("D34").Value = "No" then
MsgBox "Your printer code doesn't match" Exit Sub End If -- Best Regards, Luke M "Neil Holden" wrote in message ... I want to place some code at the start of my macro. If D34 = no then a message box "Your printer code doesnt match" end macro else yes run the macro. Please help. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If UCase(Range("D34")) = "NO" Then
MsgBox "Your printer code doesnt match": Exit Sub End If 'Rest of your macro -- Jacob "Neil Holden" wrote: I want to place some code at the start of my macro. If D34 = no then a message box "Your printer code doesnt match" end macro else yes run the macro. Please help. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sub Somename()
If UCASE(Range("D4")) = "NO" Then msgbox "Printer mismatch" Exit Sub End If existing code End Sub best wishes -- Bernard Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme "Neil Holden" wrote in message ... I want to place some code at the start of my macro. If D34 = no then a message box "Your printer code doesnt match" end macro else yes run the macro. Please help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to run acces 2003 macro in excell 2003 macro | Excel Discussion (Misc queries) | |||
Excel 2003 VBA Macro | Excel Discussion (Misc queries) | |||
Macro - Excel 2003 | Excel Discussion (Misc queries) | |||
Help with a Macro - Excel 2003 | Excel Worksheet Functions | |||
macro in excel 2003 | Excel Worksheet Functions |