Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Post Excel Data to a Web Server

Hi

I'm trying to find out if it is possible to post the data from a
excel document back to a web server in the same way as a HTML for
operates.

I can process the request.form variables using ASP and populate
server side database, ideally I would like to be able to create a for
based excel file that can then be submitted via a button in the file t
the web server.

I hope this is the correct group for this question.

My thanks in advance.

Nic

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Post Excel Data to a Web Server

Hi Nick,

Yes, you can do this using the XMLHTTP object:

Dim xml As XMLHTTP40
Dim abytPostData() As Byte

abytPostData = StrConv("fname=jake&lname=marx", vbFromUnicode)

Set xml = New XMLHTTP40
With xml
.Open "POST", "http://www.longhead.com"
.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
.send abytPostData
End With

Set xml = Nothing

To use this, you need to set a reference to "Microsoft XML, v4.0" via Tools
| References.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


Hi

I'm trying to find out if it is possible to post the data from an
excel document back to a web server in the same way as a HTML form
operates.

I can process the request.form variables using ASP and populate a
server side database, ideally I would like to be able to create a form
based excel file that can then be submitted via a button in the file
to the web server.

I hope this is the correct group for this question.

My thanks in advance.

Nick


---
Message posted from http://www.ExcelForum.com/


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
import data into SQL Server from Excel Rachel[_2_] Excel Discussion (Misc queries) 1 October 27th 08 02:35 AM
Data Upload from Excel to SQL Server Duke Carey Excel Worksheet Functions 3 December 19th 06 05:49 PM
Data Upload from Excel to SQL Server Duke Carey Links and Linking in Excel 3 December 19th 06 05:49 PM
SQL Server -- Bulk Insert from Excel to SQL Server Madhan Excel Discussion (Misc queries) 0 December 12th 06 03:08 PM
Excel 2003 Error Cannot Locate the Internet Server or Proxy Server Seabee Excel Discussion (Misc queries) 0 November 20th 05 12:03 AM


All times are GMT +1. The time now is 04:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"