Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lsn lsn is offline
external usenet poster
 
Posts: 1
Default VLookup worksheet name

I have a vLookup formula that is looking at a worksheet in a multiworksheet
workbook. I wanted to delete the worksheet and have it create the worksheet
via macro (this works just fine) but there seems to be a disconnect between
my vLookup. I cannot reference a worksheet that doesn't exist. Any
suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,939
Default VLookup worksheet name

You can use the indirect function as it makes the connection when the formula
is evaluated instead of when the formula is typed...
--
HTH...

Jim Thomlinson


"lsn" wrote:

I have a vLookup formula that is looking at a worksheet in a multiworksheet
workbook. I wanted to delete the worksheet and have it create the worksheet
via macro (this works just fine) but there seems to be a disconnect between
my vLookup. I cannot reference a worksheet that doesn't exist. Any
suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default VLookup worksheet name

In addition to Jim's answer, since you are creating the lookup range
worksheet via macro, you can also create the VLOOKUP formula after the
worksheet has been created.

"lsn" wrote:

I have a vLookup formula that is looking at a worksheet in a multiworksheet
workbook. I wanted to delete the worksheet and have it create the worksheet
via macro (this works just fine) but there seems to be a disconnect between
my vLookup. I cannot reference a worksheet that doesn't exist. Any
suggestions?

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
Multiple worksheet vlookup Anto111 Excel Discussion (Misc queries) 2 June 26th 08 02:25 AM
Vlookup In Another Worksheet Daviv Excel Discussion (Misc queries) 1 February 5th 07 05:51 PM
How to Use Vlookup to merge 2 different worksheet HRclerical Excel Discussion (Misc queries) 1 October 1st 06 01:24 PM
Vlookup in a second worksheet SHIPP Excel Worksheet Functions 1 December 28th 05 03:03 PM
vlookup worksheet(s) jiwolf Excel Discussion (Misc queries) 1 April 12th 05 05:59 PM


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