Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Making Excel Ignore invalid references

Hi,

I want to have a document with cells that have formulas that referenc
workbooks that don't exist...yet. Except, the problem is, excel won'
let me enter in invalid workbook references. Any idea of how I can ge
around this. Basically make excel ignore the fact the workboo
reference is invalid (in due time they will become valid, because th
workbooks that they refer to will be create). Any Idea how i can d
this...if it can even be done.

Thanks in Advanc

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Making Excel Ignore invalid references

You can use the On Error Resume Next statement. IE:

On Error Resume Next
Workbooks.Open Filename:="G:\Users\cc\Monthof" & newdate
If Err = 1004 Then ''' Err Code for non existing wookbook..
"" Your code here ""
end if

You can Get this from VBA help.

HTH

Charle

--
Message posted from http://www.ExcelForum.com

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
How do I tell Excel to "ignore" invalid numeric data? BruceA Excel Discussion (Misc queries) 3 May 3rd 23 07:43 PM
EXCEL ERROR: This workbook contains INVALID references. ? Boswell[_2_] Excel Discussion (Misc queries) 0 February 27th 10 02:28 AM
Invalid References Elliot Excel Worksheet Functions 1 August 10th 09 08:13 PM
invalid references Shooter Excel Worksheet Functions 2 January 14th 08 11:20 PM
I want to ignore invalid values in scatter chart Phil Rowe Charts and Charting in Excel 2 May 6th 05 01:12 PM


All times are GMT +1. The time now is 11:42 PM.

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"