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: 172
Default Prevent Formulas from updating

Hi, I have an excel spreadsheet with a number of cells that contain a formula
which uses a user defined macro that I have created to retrieve data from an
access database and populate the cells. The problem I have is that the
database is sitting in a confidential directory at work which I have access
to so when the formulas are updated the data is retrieved correctly. When I
send the excel file to staff who don't have access to the confidential
directory, the cell values become blank I think because they user defined
macro cannot retrieve the data from the database which is in the restricted
directory.

Is there any code that I can place in my macro to say that if you can't find
the database value then don't alter the contents of the cell and leave the
cell as it is? I'm using ADODB to connect to the excel db in my user defined
macro

Thanks.
Simon
 
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
Prevent previous entered data from updating ksell87 Excel Discussion (Misc queries) 1 May 14th 10 12:13 AM
Prevent Chart from automatically updating references SteveC Charts and Charting in Excel 1 March 23rd 07 06:19 PM
how to prevent Excel from reformatting a chart wen updating data? Cmd_Marco Charts and Charting in Excel 3 February 10th 06 02:47 PM
Prevent input of formulas TEAM[_9_] Excel Programming 1 November 11th 05 10:45 AM
Prevent Formulas from Advancing dallased25 Excel Discussion (Misc queries) 5 November 3rd 05 11:42 PM


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