Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Importing csv data into worksheet from the web


Hello,

I am having trouble importing comma delimited data into a worksheet
using a form. Below is how my code works. I have a textbox, which
dependent upon what is entered, will later be tacked on to the end of a
url address that will pull up comma delimited data. I've made it this
far, but have no idea how to import that information into a sheet named
"Data". Is it possible to do this ? if so, is it possible to have this
done in the background invisible to the user?

Here's what I have so far:

Private Sub CommandButton6_Click()

With Application
..Calculation = xlManual
End With
ActiveWorkbook.PrecisionAsDisplayed = False
With Application
Dim r As Long
Dim ws1 As Worksheet
Set ws1 = Worksheets("SNEM")
r = ws1.Cells(Rows.Count, 1).End(xlUp).Offset(0, 1).Row
ws1.Range("B" & r).Value = Segm.Value
ws1.Range("C" & r).Formula = "=RC[-2]&RC[-1]"
ws1.Range("D" & r).Formula = "=HYPERLINK(RC[-1])"

If ws1.Range("B" & r).Value 0 Then
ws1.Range("A" & r).Value =
"http://www.geo.sbc.com/scripts/fnp/export/csv_content.asp?SEGMENT="
Else
ws3.Range("A" & r).Value = ""
End If
..Calculation = xlCalculationManual
Application.ScreenUpdating = False
Application.Visible = False
..ScreenUpdating = False
End With
Call getsnem
End Sub

(call getsnem follows the hyperlink, which opens internet explorer and
pulls the data.....also, the url above is incorrect for security
reasons)


Thanks,

Oreg


--
Oreg
------------------------------------------------------------------------
Oreg's Profile: http://www.excelforum.com/member.php...fo&userid=9195
View this thread: http://www.excelforum.com/showthread...hreadid=475680

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Importing csv data into worksheet from the web

since all the specifics are a secret, maybe you just need to do a search on
this newgroup in google and see if you can find some code to help you out.
http://groups.google.com/advanced_search?hl=en

--
Regards,
Tom Ogilvy


"Oreg" wrote in message
...

Hello,

I am having trouble importing comma delimited data into a worksheet
using a form. Below is how my code works. I have a textbox, which
dependent upon what is entered, will later be tacked on to the end of a
url address that will pull up comma delimited data. I've made it this
far, but have no idea how to import that information into a sheet named
"Data". Is it possible to do this ? if so, is it possible to have this
done in the background invisible to the user?

Here's what I have so far:

Private Sub CommandButton6_Click()

With Application
Calculation = xlManual
End With
ActiveWorkbook.PrecisionAsDisplayed = False
With Application
Dim r As Long
Dim ws1 As Worksheet
Set ws1 = Worksheets("SNEM")
r = ws1.Cells(Rows.Count, 1).End(xlUp).Offset(0, 1).Row
ws1.Range("B" & r).Value = Segm.Value
ws1.Range("C" & r).Formula = "=RC[-2]&RC[-1]"
ws1.Range("D" & r).Formula = "=HYPERLINK(RC[-1])"

If ws1.Range("B" & r).Value 0 Then
ws1.Range("A" & r).Value =
"http://www.geo.sbc.com/scripts/fnp/export/csv_content.asp?SEGMENT="
Else
ws3.Range("A" & r).Value = ""
End If
Calculation = xlCalculationManual
Application.ScreenUpdating = False
Application.Visible = False
ScreenUpdating = False
End With
Call getsnem
End Sub

(call getsnem follows the hyperlink, which opens internet explorer and
pulls the data.....also, the url above is incorrect for security
reasons)


Thanks,

Oreg


--
Oreg
------------------------------------------------------------------------
Oreg's Profile:

http://www.excelforum.com/member.php...fo&userid=9195
View this thread: http://www.excelforum.com/showthread...hreadid=475680



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Importing csv data into worksheet from the web


Still can't figure this out. Any ideas ??? :

--
Ore
-----------------------------------------------------------------------
Oreg's Profile: http://www.excelforum.com/member.php...nfo&userid=919
View this thread: http://www.excelforum.com/showthread.php?threadid=47568

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Importing csv data into worksheet from the web


Hi Tom,

Thanks for the response. I will try the newsgroup you provided for
solutions. I sent you a private message with the full address if that
will help.

Thanks again.

Oreg


--
Oreg
------------------------------------------------------------------------
Oreg's Profile: http://www.excelforum.com/member.php...fo&userid=9195
View this thread: http://www.excelforum.com/showthread...hreadid=475680

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
Importing data from an application to an Excel worksheet Wally3178 Excel Discussion (Misc queries) 1 January 11th 08 01:18 PM
Importing data from one worksheet into another cyndiwise notsowise Excel Discussion (Misc queries) 0 November 14th 07 06:29 AM
Importing data into existing worksheet Engels New Users to Excel 1 January 5th 07 01:54 PM
Importing data from one worksheet to another? drumcode Excel Discussion (Misc queries) 4 June 7th 06 10:37 AM
importing data from Excel worksheet to another worksheet jbrick Excel Worksheet Functions 0 August 11th 05 05:51 PM


All times are GMT +1. The time now is 07:22 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"