PC Review


Reply
Thread Tools Rate Thread

Could someone look at my code

 
 
=?Utf-8?B?QmxvbmRpZQ==?=
Guest
Posts: n/a
 
      12th Jan 2007
does anyone know what is wrong with this? I am trying to run 2 access macros
from excel? thanks in advance for any help on this!
 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      15th Jan 2007
Use the run command.

--
Regards,
Tom Ogilvy

"Blondie" <(E-Mail Removed)> wrote in message
news:04429BF6-5465-4834-884C-(E-Mail Removed)...
> does anyone know what is wrong with this? I am trying to run 2 access
> macros
> from excel? thanks in advance for any help on this!



 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      17th Jan 2007
http://support.microsoft.com/?id=177760

I doubt it supports a macro name like: "Macro1: Get Data"


--
Regards,
Tom Ogilvy


"Heather" <(E-Mail Removed)> wrote in message
news:0BA99458-FDBC-4D54-9D83-(E-Mail Removed)...
> Here's what I have but it's not working
> Dim appAcc As Access.Application
>
> 'Opens Access or gets reference to app already running
>
> Set appAcc = New Access.Application
>
> 'Optional to show or hide Access
> appAcc.Visible = True
>
> appAcc.OpenAccessProject
> "P:\Analytic\Heather\Individual\IndividualTurnoverReport.mdb"
>
> appAcc.DoCmd.RunMacro "Macro1: Get Data"
> appAcc.DoCmd.RunMacro "Macro2: Create Report"
>
> 'Close Access
> appAcc.Quit
>
> 'This will close Access, even w/o the 'Quit' command
> Set appAcc = Nothing
>
> End Sub
>
>
> "Tom Ogilvy" wrote:
>
>> Use the run command.
>>
>> --
>> Regards,
>> Tom Ogilvy
>>
>> "Blondie" <(E-Mail Removed)> wrote in message
>> news:04429BF6-5465-4834-884C-(E-Mail Removed)...
>> > does anyone know what is wrong with this? I am trying to run 2 access
>> > macros
>> > from excel? thanks in advance for any help on this!

>>
>>
>>



 
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
Linq to XML--Are there code examples that make Linq as easy as SQL? Or how can I convert ths simple pseudo code into real code? Reece Microsoft C# .NET 4 10th Dec 2008 03:13 AM
ATI Radeon Drivers - Code 43, Code 37 & Code 10 =?Utf-8?B?SmFrZQ==?= Windows Vista Hardware 14 29th Aug 2006 05:50 AM
ATI Display Drivers - Code 43, Code 37, Code 10 Jake Windows Vista Hardware 2 8th Jul 2006 04:00 PM
what is the difference between code inside a <script> tag and code in the code-behind file? keithb Microsoft ASP .NET 1 29th Mar 2006 02:00 AM
[New] Zipoid - ZIP Code, City Name and Area Code Lookup - Zip Code to Zip Code Distance Calculation Mel Freeware 0 22nd Jul 2005 04:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:05 AM.