473,379 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

open a excel window and display the values

hello friends,

i am using ms access 2003,
i have a form,
when i click on a button, i should get the new excel window opened, displaying a particular table present in my access database.

so i went through this code

Dim oExcel As Excel.Application
Dim oWB As Excel.Workbook
Dim oWs As Excel.Worksheet
Set oExcel = New Excel.Application
'Set oWs = Excel.Worksheets.Application.ActiveSheet
Set oWs = Excel.ActiveSheet
oExcel.Visible = True
Set oWs = oExcel.ActiveSheet

i am not sure of this. i am struck here.
what should i do next

is this the correct way to proceed?
or else is there any easy way?
May 21 '07 #1
1 1346
Dököll
2,364 Expert 2GB
hello friends,

i am using ms access 2003,
i have a form,
when i click on a button, i should get the new excel window opened, displaying a particular table present in my access database.

so i went through this code
Expand|Select|Wrap|Line Numbers
  1. Dim oExcel As Excel.Application
  2. Dim oWB As Excel.Workbook
  3. Dim oWs As Excel.Worksheet
  4. Set oExcel = New Excel.Application
  5. 'Set oWs = Excel.Worksheets.Application.ActiveSheet
  6. Set oWs = Excel.ActiveSheet
  7. oExcel.Visible = True
  8. Set oWs = oExcel.ActiveSheet
  9.  
i am not sure of this. i am struck here.
what should i do next

is this the correct way to proceed?
or else is there any easy way?
Greetings and salutations, ravindarjobs!

It looks like you are not loading your MS access data to VB. Should you have added data from Access to Excel first?

Or are you saying data are alreayy added and you just need to view?
Jun 3 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
3
by: Andre | last post by:
First of all, I'm a rookie web developer, so please go easy. :) I have an .Net project that has an ASP page, that has links. When a user clicks on one of the hyperlinks, it opens an Excel page,...
19
by: Sonnich | last post by:
Hi! I have used JS, but I am still new to it. I have something like this: oNewWindow = new Object(); oNewWindow = open("sonnich.xls","Qopen","resizable=yes,scroll=yes, status=yes,...
2
by: Peter S. | last post by:
I have an ASP.NET page that invokes a web control written in C#. What I want to do is (based on the session ID) display a certain spreadsheet that exists on a network drive. I want the webcontrol...
3
by: toffee | last post by:
Hi all, I got a pre-formatted spreadsheet. would it be possible using js to copy the data from a table on the current webpage, open the spreadsheet and paste the content ? if so, anyone got any...
4
by: JaxDawg | last post by:
I have a spreadsheet saved as an XML spreadsheet so I can manipulate it easier (and don't need COM). When I'm done, I want to display to the user. Currently, I'm using simple JavaScript in my PHP...
7
by: Peter | last post by:
I have the following code which is executed from a modal web page - it works fine on most, but on some computers the Word loads into memory but never displays. This occurs with IE6 and IE7, but...
0
by: Swys | last post by:
Hi there, I am currently trying to write myself a wrapper class for the Excel interop services. I had a problem on closing the process, but just decided to kill it in the end. My current problem,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.