PC Review


Reply
Thread Tools Rate Thread

call VBA function from macro

 
 
=?Utf-8?B?U291cmlz?=
Guest
Posts: n/a
 
      9th Jun 2005
I would like to call Myfunction in form_main from my macro1

I use macro edit to put

RunCode

call from_main!Myfunction()

but I got

" MS access can not find call expression...."

Are there any way to call myfunction in VBA code from macro?

Any information is great appreciated,


 
Reply With Quote
 
 
 
 
Steve Schapel
Guest
Posts: n/a
 
      9th Jun 2005
Souris,

Just put...
MyFunction()

It will have to be a public function.

--
Steve Schapel, Microsoft Access MVP


Souris wrote:
> I would like to call Myfunction in form_main from my macro1
>
> I use macro edit to put
>
> RunCode
>
> call from_main!Myfunction()
>
> but I got
>
> " MS access can not find call expression...."
>
> Are there any way to call myfunction in VBA code from macro?
>
> Any information is great appreciated,
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Function to call macro ranswert Microsoft Excel Programming 1 15th Jan 2008 10:02 PM
just need to create a function and call it with a macro =?Utf-8?B?QW1hbmRhIEJ5cm5l?= Microsoft Access Macros 1 15th Aug 2006 04:00 PM
Can a VBA Function be used to execute (call) a Macro? =?Utf-8?B?UktHcmlmZmlu?= Microsoft Excel Misc 2 23rd Nov 2004 04:01 PM
function or call macro marko Microsoft Excel Programming 4 8th Dec 2003 03:31 PM
Call Excel Macro/Function from PPT daMike Microsoft Powerpoint 1 13th Aug 2003 12:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:10 PM.