473,473 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with cell and hyperlink - ASP

Hi,
I'm using pure ASP/VBscrtipt.
I spent days to looking for solution to take hyperlink cell from excel
file.

i'm using this kind of think to take the data out...

sFileConnectionString = "Driver={Microsoft Excel
Driver .xls)};DriverId=790;Dbq="&sFilePath&";DefaultDir=" &sDataDir&";"
sFileSQL = "SELECT * FROM [" & sSheetName & "$]"
dim oFileCN, oFileRS, aSourceData
set oFileCN = server.createobject("ADODB.Connection")
oFileCN.Open sFileConnectionString
set oFileRS = oFileCN.Execute(sFileSQL)
if not oFileRS.EOF then
aSourceData = oFileRS.getRows()
end if
oFileRS.Close
set oFileRS = nothing
oFileCN.Close
set oFileCN = nothing

Could you help me?

Mapo
Dec 6 '07 #1
1 1540

<ma*****@gmail.comwrote in message
news:c2**********************************@e4g2000h sg.googlegroups.com...
Hi,
I'm using pure ASP/VBscrtipt.
I spent days to looking for solution to take hyperlink cell from excel
file.

i'm using this kind of think to take the data out...

sFileConnectionString = "Driver={Microsoft Excel
Driver .xls)};DriverId=790;Dbq="&sFilePath&";DefaultDir=" &sDataDir&";"
sFileSQL = "SELECT * FROM [" & sSheetName & "$]"
dim oFileCN, oFileRS, aSourceData
set oFileCN = server.createobject("ADODB.Connection")
oFileCN.Open sFileConnectionString
set oFileRS = oFileCN.Execute(sFileSQL)
if not oFileRS.EOF then
aSourceData = oFileRS.getRows()
end if
oFileRS.Close
set oFileRS = nothing
oFileCN.Close
set oFileCN = nothing

Could you help me?
Help with what? You don't actually say what the problem is. If it's
getting the result to display as a hyperlink on a web page, then you will
need to use the value to build an html hyperlink. Hyperlink cells in Excel
contain just text.

--
Mike Brind
Dec 7 '07 #2

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

Similar topics

9
by: Paul | last post by:
Hi I have a data grid with a hyperlink column. the colum has numbers like 00001,000002, ect. Just wondering how to get the text value of the cell as tempstring =...
3
by: Rob Meade | last post by:
Hi all, I would like to add more than one object to a table cell using the above, in this case some text and a hyperlink. I am writing the table row/cell programitcally and what to have...
1
by: Fabiano | last post by:
please, i have a datagrid that contains a template collumn. Each template cell should have a hyperlink control to a detail page. But sometimes i need to hide this hyperlink based on a specific...
8
by: Franck Diastein | last post by:
Hi, I create from my CS code an HyperLinkColumn, and add it to a DataGrid before binding data... Then, I need to use text from that Column in ItemDataBound... I do this: ...
2
by: Fabrice | last post by:
Hello, First, thanks to felix for his answer. But :-( , I'm feeling newbie :! I' don't understand all the situation. The trouble : Always in the road whith my Datagrid and my ItemTemplate...
0
by: Gary Rynearson | last post by:
I have an aspx form that conatains a WebControls.Table object. I also have a class inheriting from the WebControl class. That class is instantiated using the Table as a parameter, and adds...
1
by: jeguillo | last post by:
I am trying to retrieve the text within each cell in a datagrid in order to change the color of each cell, depending on the value within that cell. This works fine on the cells that are bound...
1
by: ashima515 | last post by:
Hi I have made a datagrid with first column as hyperlink col and last as button col and all cols inbetween are bound cols. the hyperlink col contains the empid n when an enpid is clicked a form...
3
Frinavale
by: Frinavale | last post by:
Hi there, I'm using JavaScript to highlight a row or column in a table. I have created a CSS class that changes the background colour to a light blue and I apply this class to the cells in the...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.