Solved

I am opening an excel 2000 workbook in VB6 and I need it to run an macro on open?

Posted on 2004-08-30
3
167 Views
Last Modified: 2010-05-02
How do I do this?  I have it set for Auto_Open and that doesn't work.  Workbook_open didn't work either.  The macro I need to open refreshes data from data sources.
0
Comment
Question by:sjmmajor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 11931214
Kickstart the macro yourself.
0
 
LVL 19

Accepted Solution

by:
RanjeetRain earned 250 total points
ID: 11931230
Dim XL As Object
Set XL = CreateObject("excel.Application")
With XL.Application
    XL.Visible = True
    XL.Run "Your_Macro_Name_Here"
    XL.Quit
End With

Set XL = Nothing
0
 

Author Comment

by:sjmmajor
ID: 11931621
It worked!!  Thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question