Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default pop up box, searching worksheets and running macros help please

I have a workbook The first sheet is a summary of a work roster. Then there
are other sheets with each day of the month. Is it possible to design a pop
up box, which lets the user input a date, then goes to that worksheet? The
dates for each seperate worksheet are found in a2 of every sheet.

would so love your help.... Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default pop up box, searching worksheets and running macros help please


I think you would want to fetch the date you want with something like

WantDate = Application.InputBox("Enter Date Required")

then search through each worksheet comparing WantDate with A2

Something like...

numofsheets = Activeworkbook.sheets.count
i = 1
while i <= numofsheets
do
sheets(i).activate
if Range("A2") = WantDate
exit sub
else
i = i+1
loop
wend


Not tried it, but it should be close!

Regards,

Gareth
Paul Wrote:
I have a workbook The first sheet is a summary of a work roster. The
there
are other sheets with each day of the month. Is it possible to design
pop
up box, which lets the user input a date, then goes to that worksheet
The
dates for each seperate worksheet are found in a2 of every sheet.

would so love your help.... Thanks in advanc


--
pianoma
-----------------------------------------------------------------------
pianoman's Profile: http://www.excelforum.com/member.php...fo&userid=3371
View this thread: http://www.excelforum.com/showthread.php?threadid=55177

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default pop up box, searching worksheets and running macros help please


Hi,

For user entry you can use input box

dim var
var=application.inputbox("prompt message")
then you could loop through all the sheet and compare the var value
with cell a2 in each sheet.
:)


--
anusha2525
------------------------------------------------------------------------
anusha2525's Profile: http://www.excelforum.com/member.php...o&userid=35408
View this thread: http://www.excelforum.com/showthread...hreadid=551776

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
Searching Worksheets [email protected] Excel Discussion (Misc queries) 2 January 11th 07 05:33 AM
Searching Across Worksheets: Please help! computerfineman New Users to Excel 4 August 19th 06 05:03 AM
searching multiple worksheets sonic-the-mouse Excel Worksheet Functions 3 April 3rd 06 07:52 PM
Searching Textboxes on worksheets Annie Oakley Excel Programming 1 November 22nd 05 03:55 PM
Searching with Macros Kura of Tyren Excel Programming 4 July 13th 04 10:45 PM


All times are GMT +1. The time now is 07:12 AM.

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"