LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Want to find/read excel files in SharePoint

I had help on this before, but I was using 2003 at that time (I assume that's
the only change I'm up against).

using excel 2007, I'm trying to go to a company site, open a PO file (excel
..xls file) gather the data I need such as supplier name, qty ordered etc
into variables, put the values into the excel sheet on a data page, close the
sharepoint file and move to the next PO.
I had been using fs=application.filesearch, but I seem to be getting an
error now.

Option Explicit
Public Current_Row_Ctr As Integer
Public Sheet_Name As Variant
------------------------
Sub ProcessAll()

Dim wb As Workbook, i As Integer


With ThisWorkbook.Sheets("Data")
.Cells.Clear
'Set up Column Headers
'.Cells(1, 1) = "item #"
'.Cells(1, 2) = "Folder"
'.Cells(1, 3) = "Workbook"
'.Cells(1, 4) = "Worksheet"
End With
Current_Row_Ctr = 2

Set fs = Application.FileSearch
With fs
.LookIn = "\\companyweb.rlwinc.inner\Operations\AO\Purch ase Orders\"
.SearchSubFolders = True
.Filename = "*.xls"


If .Execute() Then
For i = 1 To .FoundFiles.Count
Set wb = Workbooks.Open(.FoundFiles(i))
ProcessWorkbook wb
wb.Close SaveChanges:=False
Next i
End If
End With
'Application.ScreenUpdating = True
'Clean_up

End Sub

--
Thanx

Jerry
 
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
Preview Excel 2007 files in Outlook from SharePoint Barb Reinhardt Excel Discussion (Misc queries) 0 May 6th 10 08:48 PM
Wht can't I open Excel files from Sharepoint any more? HH Excel Discussion (Misc queries) 1 January 17th 10 08:49 PM
Excel links & SharePoint 3.0 (worked fine with SharePoint 2.0) ScottFisher2004 Excel Discussion (Misc queries) 0 November 10th 08 03:26 PM
Getting a list of files in a Sharepoint Folder John Excel Programming 0 June 12th 07 09:58 PM
Excel Files with VBA Macros Stored on SharePoint Jane Excel Programming 0 July 19th 06 08:47 PM


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