Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Need help with the Excel Object in VB
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ralph  
View profile  
 More options Sep 7 2004, 9:05 am
Newsgroups: microsoft.public.vb.general.discussion
From: "Ralph" <nt_consultin...@address.com>
Date: Tue, 7 Sep 2004 08:05:48 -0500
Local: Tues, Sep 7 2004 9:05 am
Subject: Re: Need help with the Excel Object in VB

"Scott" <Sc...@discussions.microsoft.com> wrote in message

news:5F86F790-EDBF-45C7-A947-D8FACCDA60E1@microsoft.com...

Several items...

First, if this is your first time, and the company will spring for it, I
suggest you get a copy of the Office Developer Toolkit.
http://msdn.microsoft.com/office/. Most of the items in the developer kit
you can either download separately or find-work-arounds. But it is nice to
have the whole packages as you get a the help files, sample code already on
the CD, etc. In any case mark the office development sites as a favorite, as
they will become your best friend. <g>

Second, you can get better help using the Excel newsgroups
"microsoft.public.excel.~". But you need to get to the point of being able
to ask specific questions. Broad "can you write this for me" type questions
are usually ignored, or answered like this one - with a broad answer. <g>

Third, run through a couple of the samples so you get a feel for the object
model, how to open an excel spreadsheet, open template, etc.

Fourth, you have several different options for doing what you want to do.
1) Write to each specific 'cell'.
2) Use tags for cells on Excel and in the vb code assign values to those
tags. (a better approach to preserve sanity)
3) Use a hidden block of cells, and update that, using Excel features to
reference these cells.
4) Use a separate data file, base the Excel template report on this
datafile, create the data file using VB, then update.
5) Create a recordset in VB and load the Excel template with the recordset,
....
....

Each method has its trade-offs. Some are simpler going in, but can lead to
problems when distributed and scaled upwards. Others are great when scaled,
but annoying to set up initially. That is why I strongly recommend playing
with the various pieces of sample code, BEFORE committing to any one method.

A google search should also produce some good examples.

hth
-ralph


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott  
View profile  
 More options Sep 7 2004, 9:13 am
Newsgroups: microsoft.public.vb.general.discussion
From: "Scott" <Sc...@discussions.microsoft.com>
Date: Tue, 7 Sep 2004 06:13:08 -0700
Local: Tues, Sep 7 2004 9:13 am
Subject: RE: Need help with the Excel Object in VB
One note, this VB App is not used by users.  It is used to start reporting
only.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ralph  
View profile  
 More options Sep 7 2004, 9:37 am
Newsgroups: microsoft.public.vb.general.discussion
From: "Ralph" <nt_consultin...@address.com>
Date: Tue, 7 Sep 2004 08:37:00 -0500
Subject: Re: Need help with the Excel Object in VB

"Scott" <Sc...@discussions.microsoft.com> wrote in message

news:A652B843-A497-4F27-AD62-C61275B21AFB@microsoft.com...

You might want to consider just using Excel macros to create these reports,
ie, do it all inside Excel. You can use VB to create ActiveX components to
retrieve the data and simply utilize these components within your VBA code.

You can then simply schedule these reports by launching Excel with the
templates.

hth
-ralph


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott  
View profile  
 More options Sep 7 2004, 9:55 am
Newsgroups: microsoft.public.vb.general.discussion
From: "Scott" <Sc...@discussions.microsoft.com>
Date: Tue, 7 Sep 2004 06:55:08 -0700
Local: Tues, Sep 7 2004 9:55 am
Subject: Re: Need help with the Excel Object in VB
Thanks for the help Ralph.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Baur  
View profile  
 More options Sep 7 2004, 3:06 pm
Newsgroups: microsoft.public.vb.general.discussion
From: Tim Baur <trbo20@disregard_yahoo.com>
Date: Tue, 07 Sep 2004 12:06:37 -0700
Local: Tues, Sep 7 2004 3:06 pm
Subject: Re: Need help with the Excel Object in VB
One other...

If you can get your hands on Data Dynamics Active Reports, you can write
everything in VB and ADO using the DDAR environment.

It supports Excel exports as well as many others.

"=?Utf-8?B?U2NvdHQ=?=" <Sc...@discussions.microsoft.com> wrote in
news:5F86F790-EDBF-45C7-A947-D8FACCDA60E1@microsoft.com:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ralph  
View profile  
 More options Sep 7 2004, 5:05 pm
Newsgroups: microsoft.public.vb.general.discussion
From: "Ralph" <msnews.20.nt_consultin...@spamgourmet.com>
Date: Tue, 7 Sep 2004 16:05:34 -0500
Local: Tues, Sep 7 2004 5:05 pm
Subject: Re: Need help with the Excel Object in VB

"Tim Baur" <trbo20@disregard_yahoo.com> wrote in message

news:Xns955D99B5D9302trbo20hotmailcom@207.46.248.16...

> One other...

> If you can get your hands on Data Dynamics Active Reports, you can write
> everything in VB and ADO using the DDAR environment.

> It supports Excel exports as well as many others.

Forgot about Active Reports.

I have used the product and can also add my recommendation. Worth checking
out.

-ralph


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »