call a module not working

supersp3nce

New Member
Joined
Feb 6, 2014
Messages
12
Thanks in advance....

I have a module called meridium and want it to use two other modules and then have a message box. application.run is not working nor am I having success with making another sub like: '(this is an application.run calling the sub from the original module meant to use the other modules)

sub calling()
call other1
call other2
end sub
'this fails

Hope this makes sense, it's kind of simple but I am still a llama with vba.

thanks,
spence
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
their public, I still get the same error...heres some more from my code right now that is failing:
'this is in module 1

Application.Run "actives"

MsgBox " Active & Watching Areas Updated"


End Sub


Sub actives()
Call activeproject1
Call activeproject2
End Sub

'this is the top line on activeproject1

Public Sub activeproject1()

'the error says expected variable or procedure, not module
 
Upvote 0
Make sure your routines and modules don't have the same name.
 
Upvote 0
thanks, I should have know better by now, I changed:

activeproject1
activeproject2

to

hello1
hello2

and it worked, thanks.

s
 
Upvote 0

Forum statistics

Threads
1,215,601
Messages
6,125,763
Members
449,259
Latest member
rehanahmadawan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top