ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   calling a function (https://www.excelbanter.com/excel-programming/296319-calling-function.html)

praptisahni

calling a function
 
a simple question,
i have a macro 'Complete' which i need to call several times from othe
Macros, how exactly is this done

--
Message posted from http://www.ExcelForum.com


Chip Pearson

calling a function
 
You can call a macro by simply placing its name in the
appropriate place. E.g.,

Sub AAA()
' some code
Complete
' more code
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"praptisahni " wrote
in message ...
a simple question,
i have a macro 'Complete' which i need to call several times

from other
Macros, how exactly is this done?


---
Message posted from http://www.ExcelForum.com/




Frank Kabel

calling a function
 
Hi
not quite sure what your issue is but the following should
work:
sub foo()
'do something
complete
end sub

-----Original Message-----
a simple question,
i have a macro 'Complete' which i need to call several

times from other
Macros, how exactly is this done?


---
Message posted from http://www.ExcelForum.com/

.



All times are GMT +1. The time now is 08:46 AM.

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