G
Guest
I am needing some help with getting a command button to run a query through
msquery onto a worksheet. i have a work book with 33 worksheets. the first
31 worksheets are setup to be 1 sheet for 1 day's data, worksheets are
labeled as 1,2,3,...30,31. the last two of the 33 sheets are just for
summary graphs. each sheet has the date split up into three cells, such as
April 15 2005. i have 3 workbooks setup this way, 1 for each of three
shifts. on each sheet in each workbook, i also have a cell listing what
shift that worksheet is for, as well as a cell that lists what plant it is
for (1 or 2). currenly i have a query to pull some data from an Access
database to fill in some of the columns. it looks as if i will need three
queries to get all the data i want, don't need help with that yet though...
what i am wanting to do is program a command button on each sheet to look at
certain cells on the sheet to get the date, plant, and shift numbers, then
use those parameters to run the msquery to pull the data into the worksheet,
starting at a specific cell, without the colum headers, and overwriting the
columns. any help with this would be appreciated, thanks in advance.
msquery onto a worksheet. i have a work book with 33 worksheets. the first
31 worksheets are setup to be 1 sheet for 1 day's data, worksheets are
labeled as 1,2,3,...30,31. the last two of the 33 sheets are just for
summary graphs. each sheet has the date split up into three cells, such as
April 15 2005. i have 3 workbooks setup this way, 1 for each of three
shifts. on each sheet in each workbook, i also have a cell listing what
shift that worksheet is for, as well as a cell that lists what plant it is
for (1 or 2). currenly i have a query to pull some data from an Access
database to fill in some of the columns. it looks as if i will need three
queries to get all the data i want, don't need help with that yet though...
what i am wanting to do is program a command button on each sheet to look at
certain cells on the sheet to get the date, plant, and shift numbers, then
use those parameters to run the msquery to pull the data into the worksheet,
starting at a specific cell, without the colum headers, and overwriting the
columns. any help with this would be appreciated, thanks in advance.