#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Question on formula

I have an Access DB with VBA coding that transfers the data to Excel. With
it is a formula:

xlObj.Application.ActiveCell.FormulaR1C1 = "='" & pubXLFolder &
"[file.xls]sheet1'!R4C3"
pubXLFolder = "\\sales\reports\

The above code is referencing the value from another spreadsheet on the
network.

But I noticed when copying the file to my local drive, instead of seeing the
cell reference as:
\\sales\reports\[file.xls]sheet1'$C$4 it shows as
c:\db\[file.xls]sheet1'$C$4
This will cause a problem, since the excel file will eventually be posted on
the company intranet website. So, when users open the file and asks for
update, the network reference should kick in.

Do i need to incorporate a refresh link on my code? Pls help!


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
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
Formula question goodolehuskers Excel Worksheet Functions 1 July 19th 06 11:10 PM
Repeating Formula Question THSaldivar Excel Discussion (Misc queries) 1 July 3rd 06 03:36 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM


All times are GMT +1. The time now is 01:22 AM.

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"