SunQuest
 
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old June 18th, 2004, 01:19 PM
Rakshan Syed Rakshan Syed is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 44 Rakshan Syed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 48 sec
Reputation Power: 5
Execute macro to run automatically

Hi,

I have created a macro that i want to automatically execute everyday. But for some reason when i run the below code to execute that macro it does not work. My macro name is imanimport. What i want is to open a excel spread sheet and run that macro that would create my output file. Please help????


Dim XL As Object
Set XL = CreateObject("excel.Application")
With XL.Application
XL.Visible = True
XL.Run "imanimport"
XL.Quit
End With

Set XL = Nothing
__________________
raks

Reply With Quote
  #2  
Old June 23rd, 2004, 12:38 PM
jan jan is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 jan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Rakshan,

Please read Ms KBA 230575. Make adjustments for your Windows of course. Good luck. J

Reply With Quote
  #3  
Old June 25th, 2004, 10:17 AM
Rakshan Syed Rakshan Syed is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 44 Rakshan Syed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 48 sec
Reputation Power: 5
Thanks, its exactly what i needed. Hey, is there a similar function with excel. I have a excel spreadsheet that i want to open and refresh data in the pivot table, save and close it. I have created a macro to refresh data and save that spreadsheet. Is it possible to schedule that macro to run every day at the same time and exit excel after saving it.


Thanks,
Rakshan

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Execute macro to run automatically


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway