PDA

View Full Version : VBA to open excel file one sharepoint, copy the info and move to another work book



johaneil
02-16-2009, 09:51 AM
Looking for some VBA code that will open an excel file on a sharepoint, copy a range of cells and then past to another workbook. Currently have the following, but can't get it to copy the range of cells....

Dim xlApp As Excel.Application
Dim wb As Workbook
Dim xlFile As String
xlFile = http.... Review.xls"
File: '2009 Forecast Review.xls "

Set xlApp = New Excel.Application
xlApp.Visible = True

Set wb = xlApp.Workbooks.Open(xlFile, , False)

End Sub


Thoughts?

MaximS
02-16-2009, 10:11 AM
can you give a link to any sample file on the share point?