Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Question about VBA?

I have an excel workbook with 16 different work sheets in it. Can VBA
be used to .....

1. Create a form / query that will first search for a chosen work
sheet then return the requested information?

If this is possible what would be good reading/info on such things.

If it is not possible... What could be used to make use of my existing
excel workbook to do this.


TIA on any info provided.


JAY


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Question about VBA?

A general question, so a general answer:

On possibility:
Yes, you should be able to put up a userform and query for the information
desired. Then you can loop through the sheets and use the find method of
the range object to search the sheet for the information.

go to google groups advanced search

http://groups.google.com/advanced_group_search?hl=en

search this newsgroup microsoft.public.Excel.programming

for find multiple sheets

And you should get some previous responses that contain sample code.
--
Regards,
Tom Ogilvy

OneofLittleword wrote in
message ...
I have an excel workbook with 16 different work sheets in it. Can VBA
be used to .....

1. Create a form / query that will first search for a chosen work
sheet then return the requested information?

If this is possible what would be good reading/info on such things.

If it is not possible... What could be used to make use of my existing
excel workbook to do this.


TIA on any info provided.


JAY


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Question about VBA?

something like this?

Sub selectfind()
Sheets(InputBox("Desired sheet")).Select
Application.Goto Range(Cells.Find(InputBox("Desired Text")).Address)
End Sub

or you might prefer a vlookup formula
=vlookup(info desired, lookuptable,column,false)
=vlookup(123,sheet4!a2:x200,4,false)

--
Don Guillett
SalesAid Software

"OneofLittleword" wrote in
message ...
I have an excel workbook with 16 different work sheets in it. Can VBA
be used to .....

1. Create a form / query that will first search for a chosen work
sheet then return the requested information?

If this is possible what would be good reading/info on such things.

If it is not possible... What could be used to make use of my existing
excel workbook to do this.


TIA on any info provided.


JAY


---
Message posted from
http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Question about VBA?

The workbook info about 16 different locations/sheets and all of the
buildings located at each location.

What I am trying to do is ....

Have a userform set up so that the user can select a sheet name from
cell A1, then input a building number into cell A2.

Then have the search return the building information in the following
cells (i.e. . What the building is, Who is in charge of the building,
and the phone number to contact the person.)

I hope this better explains what I am looking for.


---
Message posted from http://www.ExcelForum.com/

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Question about VBA?

btt


---
Message posted from http://www.ExcelForum.com/



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Question about VBA?

btt


---
Message posted from http://www.ExcelForum.com/

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
Excel 2007 Macro/VB Question DDE Question MadDog22 Excel Worksheet Functions 1 March 10th 10 01:47 AM
where can I see my question and answer? Yesterday I ask a question IP Excel Discussion (Misc queries) 2 May 10th 08 04:08 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM
Question Philip Excel Worksheet Functions 0 May 5th 05 11:44 AM


All times are GMT +1. The time now is 12:22 PM.

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"