Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Run macro Once
Can anyone let me know how to get this code to work when there is a null
entry in X1... Worksheets("qry_aga_corps").Activate Range("X1").Select If ActiveCell isnull Then "Run Code" Else MsgBox ("The Macro has already been activiated once, cannot run twice") End If Regards - Paul |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Run macro Once
with Worksheets("qry_aga_corps")
if len(trim(Range("X1")))<1 then "Run Code" 'I assume that code puts somehing in cell x1 Else MsgBox ("The Macro has been run once, cannot run twice") End If -- Don Guillett Microsoft MVP Excel SalesAid Software "PR" wrote in message ... Can anyone let me know how to get this code to work when there is a null entry in X1... Worksheets("qry_aga_corps").Activate Range("X1").Select If ActiveCell isnull Then "Run Code" Else MsgBox ("The Macro has already been activiated once, cannot run twice") End If Regards - Paul |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Run macro Once
Don,
Many thanks for your help and your time it works... regards Paul |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Run macro Once
Glad to help.
-- Don Guillett Microsoft MVP Excel SalesAid Software "PR" wrote in message ... Don, Many thanks for your help and your time it works... regards Paul |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
need help to update macro to office 2007 macro enabled workbook | Excel Discussion (Misc queries) | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
using a cell value to control a counter inside a macro and displaying macro value | Excel Worksheet Functions | |||
Macro needed to Paste Values and prevent Macro operation | Excel Discussion (Misc queries) |