473,508 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Excel Automation Problem

I currently have an Excel spreadsheet with numerous text boxes and check
boxes that I want to populate with data from an Access 97 database. I have
used Excel automation in Access before but only to update cells not controls
like text boxes.

Can someone steer me onto the correct path? I am not using a VBA form in
Excel it is just merely various text boxes and checkboxes placed on a
worksheet.
Any help would be much appreciated.
Regards,
Mark
Nov 13 '05 #1
4 1733
You can use alt-F11 to display the VBE pane for your spreadsheet. There are
two dropboxes at the top of the right-hand pane - the left-most one has a
list of all the objects (including text boxes and check boxes) on your
spreadsheet. You should be able to get the names of your objects from
there.

HTH
- Turtle

"Mark C" <he******@yahoo.com> wrote in message
news:Y6********************@comcast.com...
I currently have an Excel spreadsheet with numerous text boxes and check
boxes that I want to populate with data from an Access 97 database. I have
used Excel automation in Access before but only to update cells not controls like text boxes.

Can someone steer me onto the correct path? I am not using a VBA form in
Excel it is just merely various text boxes and checkboxes placed on a
worksheet.
Any help would be much appreciated.
Regards,
Mark

Nov 13 '05 #2
I understand that, but how do I reference the Excel control from Access.
Normally I would write some kind of statement like
worksheet1.Range(A1).value = rst!fieldname.

If I try that with a control name I get an error. I am trying to find out
how to reference the Excel control in this line of code.

Mark


"MacDermott" <ma********@nospam.com> wrote in message
news:AY****************@newsread3.news.atl.earthli nk.net...
You can use alt-F11 to display the VBE pane for your spreadsheet. There
are
two dropboxes at the top of the right-hand pane - the left-most one has a
list of all the objects (including text boxes and check boxes) on your
spreadsheet. You should be able to get the names of your objects from
there.

HTH
- Turtle

"Mark C" <he******@yahoo.com> wrote in message
news:Y6********************@comcast.com...
I currently have an Excel spreadsheet with numerous text boxes and check
boxes that I want to populate with data from an Access 97 database. I
have
used Excel automation in Access before but only to update cells not

controls
like text boxes.

Can someone steer me onto the correct path? I am not using a VBA form in
Excel it is just merely various text boxes and checkboxes placed on a
worksheet.
Any help would be much appreciated.
Regards,
Mark


Nov 13 '05 #3
Sorry!
It's coming back to me slowly...
Those controls on Excel are quite difficult to reference externally.
(In fact, I think they're difficult to reference internally, too.)
The best I've done (AFICR) is to link your textbox (or checkbox) to an Excel
cell, then programmatically put the value in the cell.
If the control is big enough, you can "hide" the linked value in a cell
directly under it; otherwise you can use a separate sheet if you like.

HTH

"Mark C" <he******@yahoo.com> wrote in message
news:0u********************@comcast.com...
I understand that, but how do I reference the Excel control from Access.
Normally I would write some kind of statement like
worksheet1.Range(A1).value = rst!fieldname.

If I try that with a control name I get an error. I am trying to find out
how to reference the Excel control in this line of code.

Mark


"MacDermott" <ma********@nospam.com> wrote in message
news:AY****************@newsread3.news.atl.earthli nk.net...
You can use alt-F11 to display the VBE pane for your spreadsheet. There
are
two dropboxes at the top of the right-hand pane - the left-most one has a list of all the objects (including text boxes and check boxes) on your
spreadsheet. You should be able to get the names of your objects from
there.

HTH
- Turtle

"Mark C" <he******@yahoo.com> wrote in message
news:Y6********************@comcast.com...
I currently have an Excel spreadsheet with numerous text boxes and check boxes that I want to populate with data from an Access 97 database. I
have
used Excel automation in Access before but only to update cells not

controls
like text boxes.

Can someone steer me onto the correct path? I am not using a VBA form in Excel it is just merely various text boxes and checkboxes placed on a
worksheet.
Any help would be much appreciated.
Regards,
Mark



Nov 13 '05 #4
Please see response in
comp.databases.ms-access

"Mark C" <he******@yahoo.com> wrote in message
news:0u********************@comcast.com...
I understand that, but how do I reference the Excel control from Access.
Normally I would write some kind of statement like
worksheet1.Range(A1).value = rst!fieldname.

If I try that with a control name I get an error. I am trying to find out
how to reference the Excel control in this line of code.

Mark


"MacDermott" <ma********@nospam.com> wrote in message
news:AY****************@newsread3.news.atl.earthli nk.net...
You can use alt-F11 to display the VBE pane for your spreadsheet. There
are
two dropboxes at the top of the right-hand pane - the left-most one has a list of all the objects (including text boxes and check boxes) on your
spreadsheet. You should be able to get the names of your objects from
there.

HTH
- Turtle

"Mark C" <he******@yahoo.com> wrote in message
news:Y6********************@comcast.com...
I currently have an Excel spreadsheet with numerous text boxes and check boxes that I want to populate with data from an Access 97 database. I
have
used Excel automation in Access before but only to update cells not

controls
like text boxes.

Can someone steer me onto the correct path? I am not using a VBA form in Excel it is just merely various text boxes and checkboxes placed on a
worksheet.
Any help would be much appreciated.
Regards,
Mark



Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
27219
by: Ange T | last post by:
Hi there, I'm having pain with the VB behind an Access form. The form is used to create reports in Excel based on the details entered in the form. This has always worked without error on my...
6
14536
by: Frank X | last post by:
Excel 2002 introduced a capability to add custom worksheet functions to Excel direct from a COM/ActiveX object. I can use C# to develop a COM object which I can use fine from Excel/VBA, however...
17
6303
by: Mansi | last post by:
I need to do some research on how to use excel automation from c#. Does anyone know of any good books related to this subject? Thanks. Mansi
6
9334
by: Steve Richter | last post by:
I am getting error in a vbscript: ActiveX component cant create object: Excel.Application. The vbscript code is: Dim objExcel Set objExcel = CreateObject("Excel.Application") I am pretty...
8
2169
by: jack | last post by:
Access is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it...
12
2399
by: D. Shane Fowlkes | last post by:
This most likely belongs in another forum but I thought I'd start here. I have a COM Object written in VB6. The DLL will access MS Excel and use it's Object Library to write a customized report...
1
7616
by: Robin Tucker | last post by:
Heres and interesting problem: I have a VB.NET program that creates reports via. Word Automation. This all works fine. What I want to do as part of this report generation process is to embed a...
6
598
by: a.theil | last post by:
Please help! I need a simple excel automation, just 2 write some files into excel. I do: Dim oXL As Excel.Application Dim oWB As Excel.Workbook Dim oSheet As Excel.Worksheet Dim oRng As...
6
2058
by: Gunawan | last post by:
Dear All, I have create an excel (COM Object) using this code Excel.Application xls = new Excel.Application(); but I can not remove it from memory although I have using close and quit ...
15
5326
by: =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= | last post by:
Hi All, We are in the process of Upgrade Excel 2003 (Office 2003) to Excel 2007 (Office 2007) for one of web application. This web application is using Excel (Pivot Table) reports. With Excel...
0
7229
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.