Solved

Check for tab in another workbook

Posted on 2014-07-30
13
99 Views
Last Modified: 2014-08-18
Hi, if i have a WB in path in

R:\XYZ\BORRIS INFO\CURRENT.XLS

Can i have formula in a cell which contains a an IF, asking, IF current.xls contains tab "Combined Data", "You have not saved file", ""

Thanks
0
Comment
Question by:Seamus2626
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
13 Comments
 

Author Comment

by:Seamus2626
ID: 40228579
PS i am checking this from another wb called xyz.xls
0
 
LVL 33

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 40228775
In WB xyz.xls Create a simple link to a sheet that does exist in the Current.xls file, the syntax should be:

R:\FilePath\'[FileName.xls]Sheetname'!CellReference

When creating this it will work because Sheetname exists.

Change the part that refers to SheetName to "Combine Data" (without the quotes) and a pop up will appear asking for the file location, click Cancel and the formula will be created but will give an error.

With that existing formula enclose it within an IFERROR function with the required message as the false parameter:

=IFERROR(Formula,"Error Message")

Thanks
Rob H
0
 

Author Comment

by:Seamus2626
ID: 40229137
problem here Rob, is that when i process my file and Combined Data dissapears, my error message turns to

=IFERROR(('X:\YOK\Boris Info\ME_Voris_Project\ME Downloads\[CurrentMonth.xlsx]#REF'!$A$1),"New Data saved")

Maybe i could use code and a button?

Thanks
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 33

Expert Comment

by:Rob Henson
ID: 40229167
Well that is a change to the original question.

Yes you could use VBA to check if the other workbook includes a sheet called Combined Data.

The code would attempt to select the sheet in the other Workbook and if it produces an error rather than throwing you out of the code it returns an error message.

Thanks
Rob H
0
 

Author Comment

by:Seamus2626
ID: 40229418
I've requested that this question be closed as follows:

Accepted answer: 0 points for Seamus2626's comment #a40229137

for the following reason:

Il repost the VBA Q
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 40229419
The question was answered as originally worded.
0
 

Author Comment

by:Seamus2626
ID: 40229453
I've requested that this question be closed as follows:

Accepted answer: 0 points for Seamus2626's comment #a40229418

for the following reason:

Sorry! That was meant to be award points!
0
 

Author Comment

by:Seamus2626
ID: 40229452
Trying to award points
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 40229509
When raising the VBA question, include a link to this question.

About to travel for the rest of the day so may not see the VBA question come in, but if I do I will see if I can make a suggestion.

Thanks
Rob H
0
 

Author Comment

by:Seamus2626
ID: 40229521
Okay, i see, the VBA q was answered quickly by Randy

Thanks Rob
0
 

Author Comment

by:Seamus2626
ID: 40267196
Please award Rob 500 points
Rob Henson2014-07-30 at 09:18:20ID: 40229509

http:#40229509

Thanks
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Calculating Sales Tax 13 68
Excel (XLSM) on iPad 3 39
Pull first name out of cell 2 28
Assigning multiple macro in one command button 9 27
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question