Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default can I use some Qwery to populate the sheet with the data from pre.

Can I populate the sheet with the data from a different sheet of the book
based on the value of the data on the sheet from one of the columns.
Something like
INsert into .....
select * from ....
where ....
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default can I use some Qwery to populate the sheet with the data from pre.

Possibly using Data = Filter = Advanced Filter

--
Regards,
Tom Ogilvy

" wrote
in message ...
Can I populate the sheet with the data from a different sheet of the book
based on the value of the data on the sheet from one of the columns.
Something like
INsert into .....
select * from ....
where ....



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default can I use some Qwery to populate the sheet with the data from pre.


If i understand your question, what you're looking to do is build
query based on cell input?

If you were looking for the query "Select mycolumn from mytable wher
mycolumn like = mystring" where all the "my" variables are taken fro
cell input you could do the following.

Dim mycolumn, mytable, mycondition As String
Dim querystring As String

mycolumn = [Sheet1!A1] <--- lets say the cell contains "age"
mytable = [Sheet1!A2] <---- lets say the cell contains "family"
mycondition = [Sheet1!A3] <---- lets say the cell contains "85"

querystring = "Select " & mycolumn & " from " & mytable & " where "
mycolum & " like " & mycondition

You'd then get querystring as "Select age from family where age lik
85". So all you need to do is just pass the querystring string t
whatever mechanism performs your query. Of course you can get muc
creative than in taking the user's input but that gives you a basi
idea of how to do it using cells for input

--
ob3ron0
-----------------------------------------------------------------------
ob3ron02's Profile: http://www.excelforum.com/member.php...fo&userid=1545
View this thread: http://www.excelforum.com/showthread.php?threadid=27498

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default can I use some Qwery to populate the sheet with the data from pre.


Hahah wow i totally misunderstood your question. Sorry

--
ob3ron0
-----------------------------------------------------------------------
ob3ron02's Profile: http://www.excelforum.com/member.php...fo&userid=1545
View this thread: http://www.excelforum.com/showthread.php?threadid=27498

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
Need to populate data from different sheet. Joe Spindola Excel Discussion (Misc queries) 1 May 11th 10 04:04 AM
Need conditional data from 1 sheet to populate another sheet cjtnoobexceller Excel Worksheet Functions 3 April 24th 08 10:45 PM
Populate order sheet with data from work sheet Veronica Johnson Excel Worksheet Functions 4 January 22nd 08 03:29 AM
populate cells with data from another sheet Pepe_abu Excel Worksheet Functions 0 January 15th 05 08:51 AM
Best way to extract data on one sheet & populate it on another sheet?????? WebWizard97 Excel Programming 1 September 25th 03 08:50 PM


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