LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default How to retrieve data from share folder using vba?

On Nov 21, 1:29*am, "Tim Williams" wrote:
dim wb as excel.workbook

set wb=workbooks.open("\\43.74.94.102\folder name\filename.xls")

with wb.sheets("sheettocopyfrom")
* * *.range("A1:G500").copy thisworkbook.sheets("tohere").range("A1")
end with

wb.close false

Totally untested, but you get the idea.

Tim

"geniusideas" wrote in message

...

Hi,
I wanted to create macro that able to retrieve data from share folder
through path \43.74.94.102\folder name\filename.xls (Example) then
copy to my current workbook. Pls help..


Thanks


TQ..
Got the idea and will test asap..
 
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
how do i retrieve my excel file from temporary files folder sully Excel Discussion (Misc queries) 1 February 24th 09 01:19 AM
can't open a excel file in share folder Dickson Excel Discussion (Misc queries) 0 September 25th 08 02:21 AM
copying data from folder to folder RPW New Users to Excel 1 March 2nd 07 02:20 PM
How can I share and un-share a workbook using a macro? Botter Excel Programming 2 October 4th 06 06:39 PM
Folder picker: default to network share? pk Excel Programming 0 October 11th 03 04:48 PM


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