Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Referencing funciton to workbook

Im trying to write up a funtion on vba that will give an
answer based on a workbook saved on a specific path on my
pc. How do I call a fixed workbook up on a function.

The function will look for a value always in this
spreadsheet, and will work like a double vlookup, the
matrix where it will look up has colums Date | Bench | Part
the output of the function will be the part when I give
Date & Bench i.e. =Part(date,bench) on excel will give the
part that was produced on that day and bench per the
hidden workbook database.

Any help is greatly apreciate.

Regards
JS
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Referencing funciton to workbook

Just have the macro open the workbook and extract the data.

You won't be able to use this as a worksheet function, however.

If you need to use this capability in a worksheet, you need to concatenate
the date and part together in the leftmost column so you can use a vlookup
function directly and skip the macro.

--
Regards,
Tom Ogilvy

"Juan Sanchez" wrote in message
...
Im trying to write up a funtion on vba that will give an
answer based on a workbook saved on a specific path on my
pc. How do I call a fixed workbook up on a function.

The function will look for a value always in this
spreadsheet, and will work like a double vlookup, the
matrix where it will look up has colums Date | Bench | Part
the output of the function will be the part when I give
Date & Bench i.e. =Part(date,bench) on excel will give the
part that was produced on that day and bench per the
hidden workbook database.

Any help is greatly apreciate.

Regards
JS



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Referencing funciton to workbook

Thanks Tom. That's what I thought, just wanted to check.

Regards
JS


-----Original Message-----
Just have the macro open the workbook and extract the

data.

You won't be able to use this as a worksheet function,

however.

If you need to use this capability in a worksheet, you

need to concatenate
the date and part together in the leftmost column so you

can use a vlookup
function directly and skip the macro.

--
Regards,
Tom Ogilvy

"Juan Sanchez" wrote in

message
...
Im trying to write up a funtion on vba that will give an
answer based on a workbook saved on a specific path on

my
pc. How do I call a fixed workbook up on a function.

The function will look for a value always in this
spreadsheet, and will work like a double vlookup, the
matrix where it will look up has colums Date | Bench |

Part
the output of the function will be the part when I give
Date & Bench i.e. =Part(date,bench) on excel will give

the
part that was produced on that day and bench per the
hidden workbook database.

Any help is greatly apreciate.

Regards
JS



.

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
workbook referencing problem Chris J. Excel Worksheet Functions 1 April 3rd 08 08:07 AM
Referencing other workbook. [email protected] Excel Worksheet Functions 1 September 4th 06 05:59 PM
Referencing a different Workbook Ken Excel Worksheet Functions 8 November 24th 05 01:20 AM
Referencing another Workbook Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 0 April 6th 05 07:16 PM
Referencing one workbook in other??? Haldun Alay[_2_] Excel Programming 3 August 20th 03 04:29 PM


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

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"