Macro in Excel

  • Thread starter Thread starter George
  • Start date Start date
G

George

Hi there, what I am asking today is a bit complicated but
here we go, I want to know if I can create a macro in
Excel 2000 that when a specific excel file name "Reports"
opens, a message box will appear asking the user what
report from a specific data base he wants to analyze it in
that excel file. Feel free to ask if you dont understand
what I want to do or what my idea is about. Any help will
be greatly appreciated.
 
In that specific file, add this macro, or your variation of

Sub Auto_Open()
ans=Inputbox("Which report?")
End Sub

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Bob:
But how do I call my database reports from excel, what
code should I use.
 
I would need more detail on what these database reporters are to answer
that.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
I have 24 reports in my database, all are tabular and they
have data like names, numbers, yes/no. Thanks to you I
have the msgbox to ask the user whats the name of the
report he wants to analyze but now I need the code to call
this reports from the database.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top