Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Using Macros to Write Links

Hello,

I am trying to use a macro to go out and pull data from other workbooks on a
server. The problem is that no matter how I try to do it, I keep getting the
explorer window to pop up and I have to point to the file manually.

Simply put, I am doing this:

Sub CallCell()

ActiveCell.Value = "\\USPSPS01\E-MOMO\...\[L1 21 2009.xls]1ST SHIFT'!$I$20"

End Sub

I am sure I screwed up the syntax above...but is there another way besides
using ActiveCell.Value or .Formula? Using either of these forces me to point
to the file.

I am just trying to get this simple code to work and then go from there, I
will use variables to enable the user to select specific dates and file
locations, but not before I can get this to work...and I have about 216 cells
I need to get data from in 10 different files, all of which are on a server.

Maybe this cannot be done in Excel...?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Using Macros to Write Links

Oops, I didn't see that my earlier post actually posted...disregard this one
guys...thanks!

"TomK76" wrote:

Hello,

I am trying to use a macro to go out and pull data from other workbooks on a
server. The problem is that no matter how I try to do it, I keep getting the
explorer window to pop up and I have to point to the file manually.

Simply put, I am doing this:

Sub CallCell()

ActiveCell.Value = "\\USPSPS01\E-MOMO\...\[L1 21 2009.xls]1ST SHIFT'!$I$20"

End Sub

I am sure I screwed up the syntax above...but is there another way besides
using ActiveCell.Value or .Formula? Using either of these forces me to point
to the file.

I am just trying to get this simple code to work and then go from there, I
will use variables to enable the user to select specific dates and file
locations, but not before I can get this to work...and I have about 216 cells
I need to get data from in 10 different files, all of which are on a server.

Maybe this cannot be done in Excel...?

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
Using Macros to write Links TomK76 Excel Programming 3 August 23rd 09 10:40 PM
Help to write the macros given a set of data sengtng1 Excel Programming 2 February 19th 09 02:09 PM
How to write macros Aries6 Excel Discussion (Misc queries) 2 December 16th 05 03:40 PM
macro to write other macros? Darren Hill[_3_] Excel Programming 1 May 19th 05 07:10 PM
write error - even when no macros run Jabba Excel Programming 0 October 26th 04 12:53 PM


All times are GMT +1. The time now is 04:25 PM.

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

About Us

"It's about Microsoft Excel"