![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: =ActiveCell.Address
Posts: 478
|
Quick query: Why bother with the Call Statement?
If you want to run one macro from within another one I've seen code like: Sub test() 'Do something, then Call test2 End Sub or just Sub test() 'Do something, then test2 End Sub Why the Call statement. Does it add anything, or am I missing something? Rgds AJ |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
It's just syntax left over for backward
compatibility with older versions of BASIC. You don't need it at all. |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
You do need it if you're passing arguments to a procedure though, don't you, Ivan?
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
Actually, ignore that, it's only if you use brackets around your arguements, sorry.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|