MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 02:57 PM   #1
stakar
 
Join Date: Mar 2004
Posts: 251
Default Inputbox and pass values to a formula in an another Workbook

At first, i want to create this in a cell e.g. 'D3'

IF($A3="";"";IF(OR(C3=1;C3=12;C3=18;C3=40);1;0))
The formula is locating in the cell D3, workbook A, worksheet 1

But
i want the cell values to be inserted from the user using an inputbox, that he must insert something like this

14.5.12.45.1 etc

The inputbox will appears when a command_button clicks
and it is lockated in workbook B, worksheet 1

So
The above values would be the values for each 'C3=' for the formula
So, using the inserted by the user values, the formula would be

IF($A3="";"";IF(OR(C3=14;C3=5;C3=12;C3=45;C3=1);1;0))

Hope you understand
Thanks in advance
Stathis
stakar is offline   Reply With Quote
Old Mar 30th, 2004, 03:36 PM   #2
kskinne
 
kskinne's Avatar
 
Join Date: Feb 2002
Location: USA
Posts: 1,261
Default Re: Inputbox and pass values to a formula in an another Work

why not just return the values you enter in your input box to cells in Workbook B, and then reference those same cells in your formula in Workbook A?


kevin
kskinne is offline   Reply With Quote
Old Mar 31st, 2004, 07:33 AM   #3
stakar
 
Join Date: Mar 2004
Posts: 251
Default Re: Inputbox and pass values to a formula in an another Work

Ok
I find the solutiion!!

Thanks for your replay
stakar is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 02:36 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.