Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Repost of VBA Code/Lookup question

Hmmmmm...LOL

Thanks for the information...

Learn something (or about 20 somethings) everyday around here =)
--
THANKS!

Steve


"Harlan Grove" wrote:

"Steve_n_KC" wrote...
....
After cancelling out of it a couple hundred times, I finally paid attention
to a "Windows Navigation Box" that kept popping up every time that I would
change my formula. I can't get it to do it again but it looked just like
the
box that opens for a FileOpen, but it had a different message across the
top. Honestly I don't remember what it said but it was 2 words separated
by
a ":"

....

This happens when you copy formulas in workBOOK 1 with references to other
workSHEETS in workBOOK 1 into another workBOOK (workBOOK 2) that doesn't
have a workSHEET with the same name as the one in workBOOK 1. For example,
if you have a range containing several formulas like

=VLOOKUP(A!X99,A!$Y$99:$Z$1000,2)

in workBOOK 1 which contains a workSHEET named A, then you copy that range
into workBOOK 2 which lacks a worksheet named A, Excel will 'helpfully'
prompt you to change the invalid worksheet references to A to valid file
references, which is why it displays a file selection dialog for EACH
reference to A. That is, Excel interprets the A!X99 and similar tokens in
workBOOK 2 as EXTERNAL REFERENCES to a WORKBOOK named A. If you don't have
such a workBOOK (and it's very likely you don't), Excel believes it needs to
help you change the external references by making it easier for you to
select different FILES.

There may be no easy way to deal with this other than to create dummy
worksheet A in workbook 2 when you paste formulas into workbook 2, then use
Edit Replace to change the worksheet names to the appropriate ones for
workbook 2 and delete the dummy worksheet A. You may believe you do already
have a worksheet A in workbook 2, but Excel is far less helpful at detecting
stray spaces, so worksheet 'A' in workbook 1 is not the same as either
worksheet 'A ' or ' A' in workbook 2.



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
VB Code Question Stan Excel Discussion (Misc queries) 6 April 30th 07 11:27 PM
VBA code question JEV Excel Discussion (Misc queries) 2 March 1st 07 06:02 PM
Post code lookup Paul Williams Excel Worksheet Functions 5 November 23rd 06 08:25 PM
Zip Code Lookup Add-in GoFigure Excel Discussion (Misc queries) 12 February 20th 06 08:36 PM
Code to 'lookup' value in Access database maacmaac Excel Discussion (Misc queries) 0 September 16th 05 02:52 AM


All times are GMT +1. The time now is 10:15 AM.

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"