LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 148
Default trying to determine where input goes

I have a macro that uses an input box to ask the user for a date (to lookup).
The date is stored as mybegdate. I am using a lookup to find "mybegdate" in
the appropriate table. But it is not working. My guess is it doesn't
recognize mybegdate.
Is there a way to have mybegdate appear in a cell - that way I would know
that the value exists somewhere. Or maybe I am just referring to it
incorrectly in the lookup. This is my attempt to address my FY posting of a
couple of days ago.

My macros currently reads:
Range("z1").Select
mybegdate = InputBox("What date (MM/DD/YYY) will mark the beginning of the
review period?")
ActiveCell.FormulaR1C1 = "=mybegdate"
Range("z2").Select
ActiveCell.FormulaR1C1 = _
"=LOOKUP(" & mybegdate & ",'[Trending
Source.xls]Stats'!R14C1:R27C1,'[Trending Source.xls]Stats'!R14C2:R27C2)"

TIA

 
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
Make input in one column determine dropdown list in another. gettin-older Excel Discussion (Misc queries) 4 November 13th 05 10:42 PM
How to make an input in one column determine dropdown list in anot gettin-older Excel Worksheet Functions 6 November 13th 05 09:34 PM
How do I add input data in the input ranges in drop down boxes. oil_driller Excel Discussion (Misc queries) 1 November 9th 05 10:31 PM
using ranges to determine input mdeever Excel Programming 1 December 21st 03 02:30 PM
CODE to select range based on User Input or Value of Input Field Sandi Gauthier Excel Programming 4 December 8th 03 03:22 PM


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