ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   1st macro run then 2 macro is run (https://www.excelbanter.com/excel-programming/445388-1st-macro-run-then-2-macro-run.html)

kalpesh

1st macro run then 2 macro is run
 
Hello,

my worksheet1 contain 2 macro name (1)addrecord (2)print

now , i want if first addrecord macro is run then print macro is run
otherwise message is shown first addrecord is run
e.g. print record do not run without run addrecord

how possible that

Don Guillett[_2_]

1st macro run then 2 macro is run
 
sub addrecord()
do stuff
call print
end sub
or
put your print macro block in the 1st macro


On Feb 15, 11:10*am, kalpesh
wrote:
Hello,

*my worksheet1 contain 2 macro name (1)addrecord *(2)print

*now , i want if first addrecord macro is run then print macro is run
*otherwise message is shown first addrecord is run
*e.g. print record do not run without run addrecord

*how possible that




All times are GMT +1. The time now is 10:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com