+ Reply to Thread
Results 1 to 43 of 43

Printing data validation scenarios

  1. #1
    SJC
    Guest

    Re: Printing data validation scenarios

    I'll tell you everything that I have in hopes to answer your question, as I
    am still kind of new at this. In my workbook, I have two spreadsheets. My
    'Data' sheet holds all of my data. I then have a 'Report' sheet which
    produces a one page report from my data which includes a table and two
    charts. My hope for this was to create a standard report that would
    automatically update for each of my 300 facilities. So on my report
    worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    worksheet, and a data validation listbox to choose which facility to display.
    On the 'report' worksheet, column J is my reference list for the data
    validation list. This list obviously was used to create the data validation
    listbox, and to compile this list, I just pasted links from the 'Data'
    spreadsheet. So now I am trying to create a macro which will go through my
    data validation list and print one report for each facility. When I view
    each report on the spreadsheet using the data validation listbox, the report
    appears fine. However, when I run the sub to print, it produces one report
    for each facility, but in many reports, no data is present. In other
    reports, it appears fine. I hope I have not been too confusing, any clues on
    how to fix this?

    "Ron de Bruin" wrote:

    > I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > the Data Validation cell.
    >
    > how do you update the cells when you change C6
    >
    > BTW
    > >> >> list of facility numbers in row K that I used the for the data validation

    > I see J in the code now ?
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > Thanks for the code. Here is what I tried:
    > >
    > > Sub test()
    > > With Sheets("Report")
    > > For Each cell In .Range("J1:J5")
    > > .Range("C6").Value = cell.Value
    > > .PrintOut preview:=True
    > > Next cell
    > > End With
    > > End Sub
    > >
    > > I ran the sub, and it did not pull the data for all of the reports as it was
    > > supposed to. As background info, I have all of the data in another
    > > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > selected in the data validation list. Any clues on what I am doing wrong?
    > >
    > > "Ron de Bruin" wrote:
    > >
    > >>
    > >> Hi
    > >>
    > >> Try this with D1 as data validation cell that update your other data
    > >> I use a sheet with the name Sheet1
    > >>
    > >> Delete preview:=True when it is working like you want
    > >>
    > >> Sub test()
    > >> With Sheets("Sheet1")
    > >> For Each cell In .Range("K1:K5")
    > >> 'D1 is the data validation cell
    > >> .Range("D1").Value = cell.Value
    > >> .PrintOut preview:=True
    > >> Next cell
    > >> End With
    > >> End Sub
    > >>
    > >>
    > >> --
    > >> Regards Ron de Bruin
    > >> http://www.rondebruin.nl
    > >>
    > >>
    > >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > >> >I will answer you when I come home from work
    > >> >
    > >> > --
    > >> > Regards Ron de Bruin
    > >> > http://www.rondebruin.nl
    > >> >
    > >> >
    > >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > >> >> list of facility numbers in row K that I used the for the data validation
    > >> >> list, which of course is on the same spreadsheet as the report that I want to
    > >> >> print. Any clue on how I would get started?
    > >> >>
    > >> >> "Ron de Bruin" wrote:
    > >> >>
    > >> >>> Hi SJC
    > >> >>>
    > >> >>> You can do it with a macro.
    > >> >>> Do you want that ?
    > >> >>>
    > >> >>> Do you have a list with facility names on a sheet and use that
    > >> >>> range for the Data Validation list ?
    > >> >>>
    > >> >>> --
    > >> >>> Regards Ron de Bruin
    > >> >>> http://www.rondebruin.nl
    > >> >>>
    > >> >>>
    > >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> >>> >I have created a workbook which reports facility data trends. I created a
    > >> >>> > standard report to report this data for each facility. To create each
    > >> >>> > facility's scenario, I used a data validation list with a drop box of
    > >> >>> > facility names to create a standard report for each facility. Obviously only
    > >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > >> >>> > all scenarios in the validation list, or do I need to print each report one
    > >> >>> > at a time. Thanks in advance for any help.
    > >> >>> >
    > >> >>>
    > >> >>>
    > >> >>>
    > >> >
    > >> >
    > >>
    > >>
    > >>

    >
    >
    >


  2. #2
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    Hi SJC

    Send it to me private and I look at it this weekend
    My e-mail is on my site

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    > Yes, I had changed the range so that it was correct. I was able to run the
    > code, and it did produce a report for each facility. However, some
    > facilities did not have the data on the report. I did remember I put
    > together a sample file, but it does not appear that one can use attachments
    > on this board. Thanks for all of your help thus far.
    >
    > "Dave Peterson" wrote:
    >
    >> Ron guessed that your validation list was in K1:K5
    >> For Each cell In .Range("K1:K5")
    >>
    >> If it's in column J, change that address to what it should be
    >> For Each cell In .Range("Jx:Jy")
    >>
    >> (change x and y to the row numbers that apply.)
    >>
    >> SJC wrote:
    >> >
    >> > On the data spreadsheet, the facility number, of which I used to create the
    >> > validation list is in column A. However, on the report sheet, I have the
    >> > facility list in column J which was directly used to make the validation
    >> > list. So then, everything to do with the validation list occurs on the
    >> > report spreadsheet, only the actual data is on the data spreadsheet. The
    >> > validation list in cell C6 is on the report spreadsheet. If I am making any
    >> > kind of sense, what would be the best way to fix this? The code thus far
    >> > doesn't seem to work.
    >> >
    >> > "Dave Peterson" wrote:
    >> >
    >> > > What's the range that contains the data|Validation entries (on worksheet Data)?
    >> > >
    >> > > I think you just want this:
    >> > >
    >> > > Sub test()
    >> > > With Sheets("Report")
    >> > > For Each cell In worksheets("data").Range("datavalrangenamehere")
    >> > > .Range("C6").Value = cell.Value
    >> > > 'I'd add
    >> > > application.calculate 'just in case
    >> > > .PrintOut preview:=True
    >> > > Next cell
    >> > > End With
    >> > > End Sub
    >> > >
    >> > > Maybe it's that simple change.
    >> > >
    >> > >
    >> > > SJC wrote:
    >> > > >
    >> > > > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    >> > > > for sharing the file. Thanks for all of your help thus far.
    >> > > >
    >> > > > "Ron de Bruin" wrote:
    >> > > >
    >> > > > > Hi SJC
    >> > > > >
    >> > > > > Can you send me the workbook private then I will look at it tomorrow
    >> > > > >
    >> > > > > --
    >> > > > > Regards Ron de Bruin
    >> > > > > http://www.rondebruin.nl
    >> > > > >
    >> > > > >
    >> > > > > "SJC" <[email protected]> wrote in message news:[email protected]...
    >> > > > > > I'll tell you everything that I have in hopes to answer your question, as I
    >> > > > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    >> > > > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    >> > > > > > produces a one page report from my data which includes a table and two
    >> > > > > > charts. My hope for this was to create a standard report that would
    >> > > > > > automatically update for each of my 300 facilities. So on my report
    >> > > > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    >> > > > > > worksheet, and a data validation listbox to choose which facility to display.
    >> > > > > > On the 'report' worksheet, column J is my reference list for the data
    >> > > > > > validation list. This list obviously was used to create the data validation
    >> > > > > > listbox, and to compile this list, I just pasted links from the 'Data'
    >> > > > > > spreadsheet. So now I am trying to create a macro which will go through my
    >> > > > > > data validation list and print one report for each facility. When I view
    >> > > > > > each report on the spreadsheet using the data validation listbox, the report
    >> > > > > > appears fine. However, when I run the sub to print, it produces one report
    >> > > > > > for each facility, but in many reports, no data is present. In other
    >> > > > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    >> > > > > > how to fix this?
    >> > > > > >
    >> > > > > > "Ron de Bruin" wrote:
    >> > > > > >
    >> > > > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    >> > > > > >> the Data Validation cell.
    >> > > > > >>
    >> > > > > >> how do you update the cells when you change C6
    >> > > > > >>
    >> > > > > >> BTW
    >> > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    >> > > > > >> I see J in the code now ?
    >> > > > > >>
    >> > > > > >> --
    >> > > > > >> Regards Ron de Bruin
    >> > > > > >> http://www.rondebruin.nl
    >> > > > > >>
    >> > > > > >>
    >> > > > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> > > > > >> > Thanks for the code. Here is what I tried:
    >> > > > > >> >
    >> > > > > >> > Sub test()
    >> > > > > >> > With Sheets("Report")
    >> > > > > >> > For Each cell In .Range("J1:J5")
    >> > > > > >> > .Range("C6").Value = cell.Value
    >> > > > > >> > .PrintOut preview:=True
    >> > > > > >> > Next cell
    >> > > > > >> > End With
    >> > > > > >> > End Sub
    >> > > > > >> >
    >> > > > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    >> > > > > >> > supposed to. As background info, I have all of the data in another
    >> > > > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    >> > > > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    >> > > > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    >> > > > > >> >
    >> > > > > >> > "Ron de Bruin" wrote:
    >> > > > > >> >
    >> > > > > >> >>
    >> > > > > >> >> Hi
    >> > > > > >> >>
    >> > > > > >> >> Try this with D1 as data validation cell that update your other data
    >> > > > > >> >> I use a sheet with the name Sheet1
    >> > > > > >> >>
    >> > > > > >> >> Delete preview:=True when it is working like you want
    >> > > > > >> >>
    >> > > > > >> >> Sub test()
    >> > > > > >> >> With Sheets("Sheet1")
    >> > > > > >> >> For Each cell In .Range("K1:K5")
    >> > > > > >> >> 'D1 is the data validation cell
    >> > > > > >> >> .Range("D1").Value = cell.Value
    >> > > > > >> >> .PrintOut preview:=True
    >> > > > > >> >> Next cell
    >> > > > > >> >> End With
    >> > > > > >> >> End Sub
    >> > > > > >> >>
    >> > > > > >> >>
    >> > > > > >> >> --
    >> > > > > >> >> Regards Ron de Bruin
    >> > > > > >> >> http://www.rondebruin.nl
    >> > > > > >> >>
    >> > > > > >> >>
    >> > > > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    >> > > > > >> >> >I will answer you when I come home from work
    >> > > > > >> >> >
    >> > > > > >> >> > --
    >> > > > > >> >> > Regards Ron de Bruin
    >> > > > > >> >> > http://www.rondebruin.nl
    >> > > > > >> >> >
    >> > > > > >> >> >
    >> > > > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    >> > > > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    >> > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    >> > > > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    >> > > > > >> >> >> print. Any clue on how I would get started?
    >> > > > > >> >> >>
    >> > > > > >> >> >> "Ron de Bruin" wrote:
    >> > > > > >> >> >>
    >> > > > > >> >> >>> Hi SJC
    >> > > > > >> >> >>>
    >> > > > > >> >> >>> You can do it with a macro.
    >> > > > > >> >> >>> Do you want that ?
    >> > > > > >> >> >>>
    >> > > > > >> >> >>> Do you have a list with facility names on a sheet and use that
    >> > > > > >> >> >>> range for the Data Validation list ?
    >> > > > > >> >> >>>
    >> > > > > >> >> >>> --
    >> > > > > >> >> >>> Regards Ron de Bruin
    >> > > > > >> >> >>> http://www.rondebruin.nl
    >> > > > > >> >> >>>
    >> > > > > >> >> >>>
    >> > > > > >> >> >>> "SJC" <[email protected]> wrote in message
    >> > > > > >> >> >>> news:[email protected]...
    >> > > > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    >> > > > > >> >> >>> > standard report to report this data for each facility. To create each
    >> > > > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    >> > > > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    >> > > > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    >> > > > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    >> > > > > >> >> >>> > at a time. Thanks in advance for any help.
    >> > > > > >> >> >>> >
    >> > > > > >> >> >>>
    >> > > > > >> >> >>>
    >> > > > > >> >> >>>
    >> > > > > >> >> >
    >> > > > > >> >> >
    >> > > > > >> >>
    >> > > > > >> >>
    >> > > > > >> >>
    >> > > > > >>
    >> > > > > >>
    >> > > > > >>
    >> > > > >
    >> > > > >
    >> > > > >
    >> > >
    >> > > --
    >> > >
    >> > > Dave Peterson
    >> > >

    >>
    >> --
    >>
    >> Dave Peterson
    >>




  3. #3
    SJC
    Guest

    Re: Printing data validation scenarios

    Yes, I had changed the range so that it was correct. I was able to run the
    code, and it did produce a report for each facility. However, some
    facilities did not have the data on the report. I did remember I put
    together a sample file, but it does not appear that one can use attachments
    on this board. Thanks for all of your help thus far.

    "Dave Peterson" wrote:

    > Ron guessed that your validation list was in K1:K5
    > For Each cell In .Range("K1:K5")
    >
    > If it's in column J, change that address to what it should be
    > For Each cell In .Range("Jx:Jy")
    >
    > (change x and y to the row numbers that apply.)
    >
    > SJC wrote:
    > >
    > > On the data spreadsheet, the facility number, of which I used to create the
    > > validation list is in column A. However, on the report sheet, I have the
    > > facility list in column J which was directly used to make the validation
    > > list. So then, everything to do with the validation list occurs on the
    > > report spreadsheet, only the actual data is on the data spreadsheet. The
    > > validation list in cell C6 is on the report spreadsheet. If I am making any
    > > kind of sense, what would be the best way to fix this? The code thus far
    > > doesn't seem to work.
    > >
    > > "Dave Peterson" wrote:
    > >
    > > > What's the range that contains the data|Validation entries (on worksheet Data)?
    > > >
    > > > I think you just want this:
    > > >
    > > > Sub test()
    > > > With Sheets("Report")
    > > > For Each cell In worksheets("data").Range("datavalrangenamehere")
    > > > .Range("C6").Value = cell.Value
    > > > 'I'd add
    > > > application.calculate 'just in case
    > > > .PrintOut preview:=True
    > > > Next cell
    > > > End With
    > > > End Sub
    > > >
    > > > Maybe it's that simple change.
    > > >
    > > >
    > > > SJC wrote:
    > > > >
    > > > > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    > > > > for sharing the file. Thanks for all of your help thus far.
    > > > >
    > > > > "Ron de Bruin" wrote:
    > > > >
    > > > > > Hi SJC
    > > > > >
    > > > > > Can you send me the workbook private then I will look at it tomorrow
    > > > > >
    > > > > > --
    > > > > > Regards Ron de Bruin
    > > > > > http://www.rondebruin.nl
    > > > > >
    > > > > >
    > > > > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > > I'll tell you everything that I have in hopes to answer your question, as I
    > > > > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > > > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > > > > > produces a one page report from my data which includes a table and two
    > > > > > > charts. My hope for this was to create a standard report that would
    > > > > > > automatically update for each of my 300 facilities. So on my report
    > > > > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > > > > > worksheet, and a data validation listbox to choose which facility to display.
    > > > > > > On the 'report' worksheet, column J is my reference list for the data
    > > > > > > validation list. This list obviously was used to create the data validation
    > > > > > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > > > > > spreadsheet. So now I am trying to create a macro which will go through my
    > > > > > > data validation list and print one report for each facility. When I view
    > > > > > > each report on the spreadsheet using the data validation listbox, the report
    > > > > > > appears fine. However, when I run the sub to print, it produces one report
    > > > > > > for each facility, but in many reports, no data is present. In other
    > > > > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > > > > > how to fix this?
    > > > > > >
    > > > > > > "Ron de Bruin" wrote:
    > > > > > >
    > > > > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > > > > > >> the Data Validation cell.
    > > > > > >>
    > > > > > >> how do you update the cells when you change C6
    > > > > > >>
    > > > > > >> BTW
    > > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > > > >> I see J in the code now ?
    > > > > > >>
    > > > > > >> --
    > > > > > >> Regards Ron de Bruin
    > > > > > >> http://www.rondebruin.nl
    > > > > > >>
    > > > > > >>
    > > > > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > >> > Thanks for the code. Here is what I tried:
    > > > > > >> >
    > > > > > >> > Sub test()
    > > > > > >> > With Sheets("Report")
    > > > > > >> > For Each cell In .Range("J1:J5")
    > > > > > >> > .Range("C6").Value = cell.Value
    > > > > > >> > .PrintOut preview:=True
    > > > > > >> > Next cell
    > > > > > >> > End With
    > > > > > >> > End Sub
    > > > > > >> >
    > > > > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > > > > > >> > supposed to. As background info, I have all of the data in another
    > > > > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > > > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > > > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > > > > > >> >
    > > > > > >> > "Ron de Bruin" wrote:
    > > > > > >> >
    > > > > > >> >>
    > > > > > >> >> Hi
    > > > > > >> >>
    > > > > > >> >> Try this with D1 as data validation cell that update your other data
    > > > > > >> >> I use a sheet with the name Sheet1
    > > > > > >> >>
    > > > > > >> >> Delete preview:=True when it is working like you want
    > > > > > >> >>
    > > > > > >> >> Sub test()
    > > > > > >> >> With Sheets("Sheet1")
    > > > > > >> >> For Each cell In .Range("K1:K5")
    > > > > > >> >> 'D1 is the data validation cell
    > > > > > >> >> .Range("D1").Value = cell.Value
    > > > > > >> >> .PrintOut preview:=True
    > > > > > >> >> Next cell
    > > > > > >> >> End With
    > > > > > >> >> End Sub
    > > > > > >> >>
    > > > > > >> >>
    > > > > > >> >> --
    > > > > > >> >> Regards Ron de Bruin
    > > > > > >> >> http://www.rondebruin.nl
    > > > > > >> >>
    > > > > > >> >>
    > > > > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > > > > > >> >> >I will answer you when I come home from work
    > > > > > >> >> >
    > > > > > >> >> > --
    > > > > > >> >> > Regards Ron de Bruin
    > > > > > >> >> > http://www.rondebruin.nl
    > > > > > >> >> >
    > > > > > >> >> >
    > > > > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > > > > > >> >> >> print. Any clue on how I would get started?
    > > > > > >> >> >>
    > > > > > >> >> >> "Ron de Bruin" wrote:
    > > > > > >> >> >>
    > > > > > >> >> >>> Hi SJC
    > > > > > >> >> >>>
    > > > > > >> >> >>> You can do it with a macro.
    > > > > > >> >> >>> Do you want that ?
    > > > > > >> >> >>>
    > > > > > >> >> >>> Do you have a list with facility names on a sheet and use that
    > > > > > >> >> >>> range for the Data Validation list ?
    > > > > > >> >> >>>
    > > > > > >> >> >>> --
    > > > > > >> >> >>> Regards Ron de Bruin
    > > > > > >> >> >>> http://www.rondebruin.nl
    > > > > > >> >> >>>
    > > > > > >> >> >>>
    > > > > > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > > > > > >> >> >>> > standard report to report this data for each facility. To create each
    > > > > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > > > > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > > > > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > > > > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > > > > > >> >> >>> > at a time. Thanks in advance for any help.
    > > > > > >> >> >>> >
    > > > > > >> >> >>>
    > > > > > >> >> >>>
    > > > > > >> >> >>>
    > > > > > >> >> >
    > > > > > >> >> >
    > > > > > >> >>
    > > > > > >> >>
    > > > > > >> >>
    > > > > > >>
    > > > > > >>
    > > > > > >>
    > > > > >
    > > > > >
    > > > > >
    > > >
    > > > --
    > > >
    > > > Dave Peterson
    > > >

    >
    > --
    >
    > Dave Peterson
    >


  4. #4
    Dave Peterson
    Guest

    Re: Printing data validation scenarios

    Ron guessed that your validation list was in K1:K5
    For Each cell In .Range("K1:K5")

    If it's in column J, change that address to what it should be
    For Each cell In .Range("Jx:Jy")

    (change x and y to the row numbers that apply.)

    SJC wrote:
    >
    > On the data spreadsheet, the facility number, of which I used to create the
    > validation list is in column A. However, on the report sheet, I have the
    > facility list in column J which was directly used to make the validation
    > list. So then, everything to do with the validation list occurs on the
    > report spreadsheet, only the actual data is on the data spreadsheet. The
    > validation list in cell C6 is on the report spreadsheet. If I am making any
    > kind of sense, what would be the best way to fix this? The code thus far
    > doesn't seem to work.
    >
    > "Dave Peterson" wrote:
    >
    > > What's the range that contains the data|Validation entries (on worksheet Data)?
    > >
    > > I think you just want this:
    > >
    > > Sub test()
    > > With Sheets("Report")
    > > For Each cell In worksheets("data").Range("datavalrangenamehere")
    > > .Range("C6").Value = cell.Value
    > > 'I'd add
    > > application.calculate 'just in case
    > > .PrintOut preview:=True
    > > Next cell
    > > End With
    > > End Sub
    > >
    > > Maybe it's that simple change.
    > >
    > >
    > > SJC wrote:
    > > >
    > > > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    > > > for sharing the file. Thanks for all of your help thus far.
    > > >
    > > > "Ron de Bruin" wrote:
    > > >
    > > > > Hi SJC
    > > > >
    > > > > Can you send me the workbook private then I will look at it tomorrow
    > > > >
    > > > > --
    > > > > Regards Ron de Bruin
    > > > > http://www.rondebruin.nl
    > > > >
    > > > >
    > > > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > I'll tell you everything that I have in hopes to answer your question, as I
    > > > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > > > > produces a one page report from my data which includes a table and two
    > > > > > charts. My hope for this was to create a standard report that would
    > > > > > automatically update for each of my 300 facilities. So on my report
    > > > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > > > > worksheet, and a data validation listbox to choose which facility to display.
    > > > > > On the 'report' worksheet, column J is my reference list for the data
    > > > > > validation list. This list obviously was used to create the data validation
    > > > > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > > > > spreadsheet. So now I am trying to create a macro which will go through my
    > > > > > data validation list and print one report for each facility. When I view
    > > > > > each report on the spreadsheet using the data validation listbox, the report
    > > > > > appears fine. However, when I run the sub to print, it produces one report
    > > > > > for each facility, but in many reports, no data is present. In other
    > > > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > > > > how to fix this?
    > > > > >
    > > > > > "Ron de Bruin" wrote:
    > > > > >
    > > > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > > > > >> the Data Validation cell.
    > > > > >>
    > > > > >> how do you update the cells when you change C6
    > > > > >>
    > > > > >> BTW
    > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > > >> I see J in the code now ?
    > > > > >>
    > > > > >> --
    > > > > >> Regards Ron de Bruin
    > > > > >> http://www.rondebruin.nl
    > > > > >>
    > > > > >>
    > > > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > >> > Thanks for the code. Here is what I tried:
    > > > > >> >
    > > > > >> > Sub test()
    > > > > >> > With Sheets("Report")
    > > > > >> > For Each cell In .Range("J1:J5")
    > > > > >> > .Range("C6").Value = cell.Value
    > > > > >> > .PrintOut preview:=True
    > > > > >> > Next cell
    > > > > >> > End With
    > > > > >> > End Sub
    > > > > >> >
    > > > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > > > > >> > supposed to. As background info, I have all of the data in another
    > > > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > > > > >> >
    > > > > >> > "Ron de Bruin" wrote:
    > > > > >> >
    > > > > >> >>
    > > > > >> >> Hi
    > > > > >> >>
    > > > > >> >> Try this with D1 as data validation cell that update your other data
    > > > > >> >> I use a sheet with the name Sheet1
    > > > > >> >>
    > > > > >> >> Delete preview:=True when it is working like you want
    > > > > >> >>
    > > > > >> >> Sub test()
    > > > > >> >> With Sheets("Sheet1")
    > > > > >> >> For Each cell In .Range("K1:K5")
    > > > > >> >> 'D1 is the data validation cell
    > > > > >> >> .Range("D1").Value = cell.Value
    > > > > >> >> .PrintOut preview:=True
    > > > > >> >> Next cell
    > > > > >> >> End With
    > > > > >> >> End Sub
    > > > > >> >>
    > > > > >> >>
    > > > > >> >> --
    > > > > >> >> Regards Ron de Bruin
    > > > > >> >> http://www.rondebruin.nl
    > > > > >> >>
    > > > > >> >>
    > > > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > > > > >> >> >I will answer you when I come home from work
    > > > > >> >> >
    > > > > >> >> > --
    > > > > >> >> > Regards Ron de Bruin
    > > > > >> >> > http://www.rondebruin.nl
    > > > > >> >> >
    > > > > >> >> >
    > > > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > > > > >> >> >> print. Any clue on how I would get started?
    > > > > >> >> >>
    > > > > >> >> >> "Ron de Bruin" wrote:
    > > > > >> >> >>
    > > > > >> >> >>> Hi SJC
    > > > > >> >> >>>
    > > > > >> >> >>> You can do it with a macro.
    > > > > >> >> >>> Do you want that ?
    > > > > >> >> >>>
    > > > > >> >> >>> Do you have a list with facility names on a sheet and use that
    > > > > >> >> >>> range for the Data Validation list ?
    > > > > >> >> >>>
    > > > > >> >> >>> --
    > > > > >> >> >>> Regards Ron de Bruin
    > > > > >> >> >>> http://www.rondebruin.nl
    > > > > >> >> >>>
    > > > > >> >> >>>
    > > > > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > > > > >> >> >>> > standard report to report this data for each facility. To create each
    > > > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > > > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > > > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > > > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > > > > >> >> >>> > at a time. Thanks in advance for any help.
    > > > > >> >> >>> >
    > > > > >> >> >>>
    > > > > >> >> >>>
    > > > > >> >> >>>
    > > > > >> >> >
    > > > > >> >> >
    > > > > >> >>
    > > > > >> >>
    > > > > >> >>
    > > > > >>
    > > > > >>
    > > > > >>
    > > > >
    > > > >
    > > > >

    > >
    > > --
    > >
    > > Dave Peterson
    > >


    --

    Dave Peterson

  5. #5
    SJC
    Guest

    Re: Printing data validation scenarios

    On the data spreadsheet, the facility number, of which I used to create the
    validation list is in column A. However, on the report sheet, I have the
    facility list in column J which was directly used to make the validation
    list. So then, everything to do with the validation list occurs on the
    report spreadsheet, only the actual data is on the data spreadsheet. The
    validation list in cell C6 is on the report spreadsheet. If I am making any
    kind of sense, what would be the best way to fix this? The code thus far
    doesn't seem to work.

    "Dave Peterson" wrote:

    > What's the range that contains the data|Validation entries (on worksheet Data)?
    >
    > I think you just want this:
    >
    > Sub test()
    > With Sheets("Report")
    > For Each cell In worksheets("data").Range("datavalrangenamehere")
    > .Range("C6").Value = cell.Value
    > 'I'd add
    > application.calculate 'just in case
    > .PrintOut preview:=True
    > Next cell
    > End With
    > End Sub
    >
    > Maybe it's that simple change.
    >
    >
    > SJC wrote:
    > >
    > > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    > > for sharing the file. Thanks for all of your help thus far.
    > >
    > > "Ron de Bruin" wrote:
    > >
    > > > Hi SJC
    > > >
    > > > Can you send me the workbook private then I will look at it tomorrow
    > > >
    > > > --
    > > > Regards Ron de Bruin
    > > > http://www.rondebruin.nl
    > > >
    > > >
    > > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > I'll tell you everything that I have in hopes to answer your question, as I
    > > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > > > produces a one page report from my data which includes a table and two
    > > > > charts. My hope for this was to create a standard report that would
    > > > > automatically update for each of my 300 facilities. So on my report
    > > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > > > worksheet, and a data validation listbox to choose which facility to display.
    > > > > On the 'report' worksheet, column J is my reference list for the data
    > > > > validation list. This list obviously was used to create the data validation
    > > > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > > > spreadsheet. So now I am trying to create a macro which will go through my
    > > > > data validation list and print one report for each facility. When I view
    > > > > each report on the spreadsheet using the data validation listbox, the report
    > > > > appears fine. However, when I run the sub to print, it produces one report
    > > > > for each facility, but in many reports, no data is present. In other
    > > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > > > how to fix this?
    > > > >
    > > > > "Ron de Bruin" wrote:
    > > > >
    > > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > > > >> the Data Validation cell.
    > > > >>
    > > > >> how do you update the cells when you change C6
    > > > >>
    > > > >> BTW
    > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > >> I see J in the code now ?
    > > > >>
    > > > >> --
    > > > >> Regards Ron de Bruin
    > > > >> http://www.rondebruin.nl
    > > > >>
    > > > >>
    > > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > >> > Thanks for the code. Here is what I tried:
    > > > >> >
    > > > >> > Sub test()
    > > > >> > With Sheets("Report")
    > > > >> > For Each cell In .Range("J1:J5")
    > > > >> > .Range("C6").Value = cell.Value
    > > > >> > .PrintOut preview:=True
    > > > >> > Next cell
    > > > >> > End With
    > > > >> > End Sub
    > > > >> >
    > > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > > > >> > supposed to. As background info, I have all of the data in another
    > > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > > > >> >
    > > > >> > "Ron de Bruin" wrote:
    > > > >> >
    > > > >> >>
    > > > >> >> Hi
    > > > >> >>
    > > > >> >> Try this with D1 as data validation cell that update your other data
    > > > >> >> I use a sheet with the name Sheet1
    > > > >> >>
    > > > >> >> Delete preview:=True when it is working like you want
    > > > >> >>
    > > > >> >> Sub test()
    > > > >> >> With Sheets("Sheet1")
    > > > >> >> For Each cell In .Range("K1:K5")
    > > > >> >> 'D1 is the data validation cell
    > > > >> >> .Range("D1").Value = cell.Value
    > > > >> >> .PrintOut preview:=True
    > > > >> >> Next cell
    > > > >> >> End With
    > > > >> >> End Sub
    > > > >> >>
    > > > >> >>
    > > > >> >> --
    > > > >> >> Regards Ron de Bruin
    > > > >> >> http://www.rondebruin.nl
    > > > >> >>
    > > > >> >>
    > > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > > > >> >> >I will answer you when I come home from work
    > > > >> >> >
    > > > >> >> > --
    > > > >> >> > Regards Ron de Bruin
    > > > >> >> > http://www.rondebruin.nl
    > > > >> >> >
    > > > >> >> >
    > > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > > > >> >> >> print. Any clue on how I would get started?
    > > > >> >> >>
    > > > >> >> >> "Ron de Bruin" wrote:
    > > > >> >> >>
    > > > >> >> >>> Hi SJC
    > > > >> >> >>>
    > > > >> >> >>> You can do it with a macro.
    > > > >> >> >>> Do you want that ?
    > > > >> >> >>>
    > > > >> >> >>> Do you have a list with facility names on a sheet and use that
    > > > >> >> >>> range for the Data Validation list ?
    > > > >> >> >>>
    > > > >> >> >>> --
    > > > >> >> >>> Regards Ron de Bruin
    > > > >> >> >>> http://www.rondebruin.nl
    > > > >> >> >>>
    > > > >> >> >>>
    > > > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > > > >> >> >>> > standard report to report this data for each facility. To create each
    > > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > > > >> >> >>> > at a time. Thanks in advance for any help.
    > > > >> >> >>> >
    > > > >> >> >>>
    > > > >> >> >>>
    > > > >> >> >>>
    > > > >> >> >
    > > > >> >> >
    > > > >> >>
    > > > >> >>
    > > > >> >>
    > > > >>
    > > > >>
    > > > >>
    > > >
    > > >
    > > >

    >
    > --
    >
    > Dave Peterson
    >


  6. #6
    Dave Peterson
    Guest

    Re: Printing data validation scenarios

    What's the range that contains the data|Validation entries (on worksheet Data)?

    I think you just want this:

    Sub test()
    With Sheets("Report")
    For Each cell In worksheets("data").Range("datavalrangenamehere")
    .Range("C6").Value = cell.Value
    'I'd add
    application.calculate 'just in case
    .PrintOut preview:=True
    Next cell
    End With
    End Sub

    Maybe it's that simple change.


    SJC wrote:
    >
    > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    > for sharing the file. Thanks for all of your help thus far.
    >
    > "Ron de Bruin" wrote:
    >
    > > Hi SJC
    > >
    > > Can you send me the workbook private then I will look at it tomorrow
    > >
    > > --
    > > Regards Ron de Bruin
    > > http://www.rondebruin.nl
    > >
    > >
    > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > I'll tell you everything that I have in hopes to answer your question, as I
    > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > > produces a one page report from my data which includes a table and two
    > > > charts. My hope for this was to create a standard report that would
    > > > automatically update for each of my 300 facilities. So on my report
    > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > > worksheet, and a data validation listbox to choose which facility to display.
    > > > On the 'report' worksheet, column J is my reference list for the data
    > > > validation list. This list obviously was used to create the data validation
    > > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > > spreadsheet. So now I am trying to create a macro which will go through my
    > > > data validation list and print one report for each facility. When I view
    > > > each report on the spreadsheet using the data validation listbox, the report
    > > > appears fine. However, when I run the sub to print, it produces one report
    > > > for each facility, but in many reports, no data is present. In other
    > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > > how to fix this?
    > > >
    > > > "Ron de Bruin" wrote:
    > > >
    > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > > >> the Data Validation cell.
    > > >>
    > > >> how do you update the cells when you change C6
    > > >>
    > > >> BTW
    > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > >> I see J in the code now ?
    > > >>
    > > >> --
    > > >> Regards Ron de Bruin
    > > >> http://www.rondebruin.nl
    > > >>
    > > >>
    > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > >> > Thanks for the code. Here is what I tried:
    > > >> >
    > > >> > Sub test()
    > > >> > With Sheets("Report")
    > > >> > For Each cell In .Range("J1:J5")
    > > >> > .Range("C6").Value = cell.Value
    > > >> > .PrintOut preview:=True
    > > >> > Next cell
    > > >> > End With
    > > >> > End Sub
    > > >> >
    > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > > >> > supposed to. As background info, I have all of the data in another
    > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > > >> >
    > > >> > "Ron de Bruin" wrote:
    > > >> >
    > > >> >>
    > > >> >> Hi
    > > >> >>
    > > >> >> Try this with D1 as data validation cell that update your other data
    > > >> >> I use a sheet with the name Sheet1
    > > >> >>
    > > >> >> Delete preview:=True when it is working like you want
    > > >> >>
    > > >> >> Sub test()
    > > >> >> With Sheets("Sheet1")
    > > >> >> For Each cell In .Range("K1:K5")
    > > >> >> 'D1 is the data validation cell
    > > >> >> .Range("D1").Value = cell.Value
    > > >> >> .PrintOut preview:=True
    > > >> >> Next cell
    > > >> >> End With
    > > >> >> End Sub
    > > >> >>
    > > >> >>
    > > >> >> --
    > > >> >> Regards Ron de Bruin
    > > >> >> http://www.rondebruin.nl
    > > >> >>
    > > >> >>
    > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > > >> >> >I will answer you when I come home from work
    > > >> >> >
    > > >> >> > --
    > > >> >> > Regards Ron de Bruin
    > > >> >> > http://www.rondebruin.nl
    > > >> >> >
    > > >> >> >
    > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > > >> >> >> print. Any clue on how I would get started?
    > > >> >> >>
    > > >> >> >> "Ron de Bruin" wrote:
    > > >> >> >>
    > > >> >> >>> Hi SJC
    > > >> >> >>>
    > > >> >> >>> You can do it with a macro.
    > > >> >> >>> Do you want that ?
    > > >> >> >>>
    > > >> >> >>> Do you have a list with facility names on a sheet and use that
    > > >> >> >>> range for the Data Validation list ?
    > > >> >> >>>
    > > >> >> >>> --
    > > >> >> >>> Regards Ron de Bruin
    > > >> >> >>> http://www.rondebruin.nl
    > > >> >> >>>
    > > >> >> >>>
    > > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > > >> >> >>> > standard report to report this data for each facility. To create each
    > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > > >> >> >>> > at a time. Thanks in advance for any help.
    > > >> >> >>> >
    > > >> >> >>>
    > > >> >> >>>
    > > >> >> >>>
    > > >> >> >
    > > >> >> >
    > > >> >>
    > > >> >>
    > > >> >>
    > > >>
    > > >>
    > > >>

    > >
    > >
    > >


    --

    Dave Peterson

  7. #7
    SJC
    Guest

    Re: Printing data validation scenarios

    Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    for sharing the file. Thanks for all of your help thus far.

    "Ron de Bruin" wrote:

    > Hi SJC
    >
    > Can you send me the workbook private then I will look at it tomorrow
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > I'll tell you everything that I have in hopes to answer your question, as I
    > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > produces a one page report from my data which includes a table and two
    > > charts. My hope for this was to create a standard report that would
    > > automatically update for each of my 300 facilities. So on my report
    > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > worksheet, and a data validation listbox to choose which facility to display.
    > > On the 'report' worksheet, column J is my reference list for the data
    > > validation list. This list obviously was used to create the data validation
    > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > spreadsheet. So now I am trying to create a macro which will go through my
    > > data validation list and print one report for each facility. When I view
    > > each report on the spreadsheet using the data validation listbox, the report
    > > appears fine. However, when I run the sub to print, it produces one report
    > > for each facility, but in many reports, no data is present. In other
    > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > how to fix this?
    > >
    > > "Ron de Bruin" wrote:
    > >
    > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > >> the Data Validation cell.
    > >>
    > >> how do you update the cells when you change C6
    > >>
    > >> BTW
    > >> >> >> list of facility numbers in row K that I used the for the data validation
    > >> I see J in the code now ?
    > >>
    > >> --
    > >> Regards Ron de Bruin
    > >> http://www.rondebruin.nl
    > >>
    > >>
    > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> > Thanks for the code. Here is what I tried:
    > >> >
    > >> > Sub test()
    > >> > With Sheets("Report")
    > >> > For Each cell In .Range("J1:J5")
    > >> > .Range("C6").Value = cell.Value
    > >> > .PrintOut preview:=True
    > >> > Next cell
    > >> > End With
    > >> > End Sub
    > >> >
    > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > >> > supposed to. As background info, I have all of the data in another
    > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > >> >
    > >> > "Ron de Bruin" wrote:
    > >> >
    > >> >>
    > >> >> Hi
    > >> >>
    > >> >> Try this with D1 as data validation cell that update your other data
    > >> >> I use a sheet with the name Sheet1
    > >> >>
    > >> >> Delete preview:=True when it is working like you want
    > >> >>
    > >> >> Sub test()
    > >> >> With Sheets("Sheet1")
    > >> >> For Each cell In .Range("K1:K5")
    > >> >> 'D1 is the data validation cell
    > >> >> .Range("D1").Value = cell.Value
    > >> >> .PrintOut preview:=True
    > >> >> Next cell
    > >> >> End With
    > >> >> End Sub
    > >> >>
    > >> >>
    > >> >> --
    > >> >> Regards Ron de Bruin
    > >> >> http://www.rondebruin.nl
    > >> >>
    > >> >>
    > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > >> >> >I will answer you when I come home from work
    > >> >> >
    > >> >> > --
    > >> >> > Regards Ron de Bruin
    > >> >> > http://www.rondebruin.nl
    > >> >> >
    > >> >> >
    > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > >> >> >> list of facility numbers in row K that I used the for the data validation
    > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > >> >> >> print. Any clue on how I would get started?
    > >> >> >>
    > >> >> >> "Ron de Bruin" wrote:
    > >> >> >>
    > >> >> >>> Hi SJC
    > >> >> >>>
    > >> >> >>> You can do it with a macro.
    > >> >> >>> Do you want that ?
    > >> >> >>>
    > >> >> >>> Do you have a list with facility names on a sheet and use that
    > >> >> >>> range for the Data Validation list ?
    > >> >> >>>
    > >> >> >>> --
    > >> >> >>> Regards Ron de Bruin
    > >> >> >>> http://www.rondebruin.nl
    > >> >> >>>
    > >> >> >>>
    > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > >> >> >>> > standard report to report this data for each facility. To create each
    > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > >> >> >>> > at a time. Thanks in advance for any help.
    > >> >> >>> >
    > >> >> >>>
    > >> >> >>>
    > >> >> >>>
    > >> >> >
    > >> >> >
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  8. #8
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    Hi SJC

    Can you send me the workbook private then I will look at it tomorrow

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    > I'll tell you everything that I have in hopes to answer your question, as I
    > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > produces a one page report from my data which includes a table and two
    > charts. My hope for this was to create a standard report that would
    > automatically update for each of my 300 facilities. So on my report
    > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > worksheet, and a data validation listbox to choose which facility to display.
    > On the 'report' worksheet, column J is my reference list for the data
    > validation list. This list obviously was used to create the data validation
    > listbox, and to compile this list, I just pasted links from the 'Data'
    > spreadsheet. So now I am trying to create a macro which will go through my
    > data validation list and print one report for each facility. When I view
    > each report on the spreadsheet using the data validation listbox, the report
    > appears fine. However, when I run the sub to print, it produces one report
    > for each facility, but in many reports, no data is present. In other
    > reports, it appears fine. I hope I have not been too confusing, any clues on
    > how to fix this?
    >
    > "Ron de Bruin" wrote:
    >
    >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    >> the Data Validation cell.
    >>
    >> how do you update the cells when you change C6
    >>
    >> BTW
    >> >> >> list of facility numbers in row K that I used the for the data validation

    >> I see J in the code now ?
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >>
    >> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> > Thanks for the code. Here is what I tried:
    >> >
    >> > Sub test()
    >> > With Sheets("Report")
    >> > For Each cell In .Range("J1:J5")
    >> > .Range("C6").Value = cell.Value
    >> > .PrintOut preview:=True
    >> > Next cell
    >> > End With
    >> > End Sub
    >> >
    >> > I ran the sub, and it did not pull the data for all of the reports as it was
    >> > supposed to. As background info, I have all of the data in another
    >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    >> > selected in the data validation list. Any clues on what I am doing wrong?
    >> >
    >> > "Ron de Bruin" wrote:
    >> >
    >> >>
    >> >> Hi
    >> >>
    >> >> Try this with D1 as data validation cell that update your other data
    >> >> I use a sheet with the name Sheet1
    >> >>
    >> >> Delete preview:=True when it is working like you want
    >> >>
    >> >> Sub test()
    >> >> With Sheets("Sheet1")
    >> >> For Each cell In .Range("K1:K5")
    >> >> 'D1 is the data validation cell
    >> >> .Range("D1").Value = cell.Value
    >> >> .PrintOut preview:=True
    >> >> Next cell
    >> >> End With
    >> >> End Sub
    >> >>
    >> >>
    >> >> --
    >> >> Regards Ron de Bruin
    >> >> http://www.rondebruin.nl
    >> >>
    >> >>
    >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    >> >> >I will answer you when I come home from work
    >> >> >
    >> >> > --
    >> >> > Regards Ron de Bruin
    >> >> > http://www.rondebruin.nl
    >> >> >
    >> >> >
    >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    >> >> >> list of facility numbers in row K that I used the for the data validation
    >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    >> >> >> print. Any clue on how I would get started?
    >> >> >>
    >> >> >> "Ron de Bruin" wrote:
    >> >> >>
    >> >> >>> Hi SJC
    >> >> >>>
    >> >> >>> You can do it with a macro.
    >> >> >>> Do you want that ?
    >> >> >>>
    >> >> >>> Do you have a list with facility names on a sheet and use that
    >> >> >>> range for the Data Validation list ?
    >> >> >>>
    >> >> >>> --
    >> >> >>> Regards Ron de Bruin
    >> >> >>> http://www.rondebruin.nl
    >> >> >>>
    >> >> >>>
    >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >> >>> >I have created a workbook which reports facility data trends. I created a
    >> >> >>> > standard report to report this data for each facility. To create each
    >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    >> >> >>> > facility names to create a standard report for each facility. Obviously only
    >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    >> >> >>> > at a time. Thanks in advance for any help.
    >> >> >>> >
    >> >> >>>
    >> >> >>>
    >> >> >>>
    >> >> >
    >> >> >
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  9. #9
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    I was thinking that you use Vlookup formulas in your sheet with as lookup value
    the Data Validation cell.

    how do you update the cells when you change C6

    BTW
    >> >> list of facility numbers in row K that I used the for the data validation

    I see J in the code now ?

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    > Thanks for the code. Here is what I tried:
    >
    > Sub test()
    > With Sheets("Report")
    > For Each cell In .Range("J1:J5")
    > .Range("C6").Value = cell.Value
    > .PrintOut preview:=True
    > Next cell
    > End With
    > End Sub
    >
    > I ran the sub, and it did not pull the data for all of the reports as it was
    > supposed to. As background info, I have all of the data in another
    > spreadsheet within the workbook named 'Data', and I have it linked to the
    > 'Report' spreadsheet. Then obviously the report changes by what name is
    > selected in the data validation list. Any clues on what I am doing wrong?
    >
    > "Ron de Bruin" wrote:
    >
    >>
    >> Hi
    >>
    >> Try this with D1 as data validation cell that update your other data
    >> I use a sheet with the name Sheet1
    >>
    >> Delete preview:=True when it is working like you want
    >>
    >> Sub test()
    >> With Sheets("Sheet1")
    >> For Each cell In .Range("K1:K5")
    >> 'D1 is the data validation cell
    >> .Range("D1").Value = cell.Value
    >> .PrintOut preview:=True
    >> Next cell
    >> End With
    >> End Sub
    >>
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >>
    >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    >> >I will answer you when I come home from work
    >> >
    >> > --
    >> > Regards Ron de Bruin
    >> > http://www.rondebruin.nl
    >> >
    >> >
    >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    >> >> list of facility numbers in row K that I used the for the data validation
    >> >> list, which of course is on the same spreadsheet as the report that I want to
    >> >> print. Any clue on how I would get started?
    >> >>
    >> >> "Ron de Bruin" wrote:
    >> >>
    >> >>> Hi SJC
    >> >>>
    >> >>> You can do it with a macro.
    >> >>> Do you want that ?
    >> >>>
    >> >>> Do you have a list with facility names on a sheet and use that
    >> >>> range for the Data Validation list ?
    >> >>>
    >> >>> --
    >> >>> Regards Ron de Bruin
    >> >>> http://www.rondebruin.nl
    >> >>>
    >> >>>
    >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >>> >I have created a workbook which reports facility data trends. I created a
    >> >>> > standard report to report this data for each facility. To create each
    >> >>> > facility's scenario, I used a data validation list with a drop box of
    >> >>> > facility names to create a standard report for each facility. Obviously only
    >> >>> > one report may be seen and printed at one time. Is it possible to print out
    >> >>> > all scenarios in the validation list, or do I need to print each report one
    >> >>> > at a time. Thanks in advance for any help.
    >> >>> >
    >> >>>
    >> >>>
    >> >>>
    >> >
    >> >

    >>
    >>
    >>




  10. #10
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios


    Hi

    Try this with D1 as data validation cell that update your other data
    I use a sheet with the name Sheet1

    Delete preview:=True when it is working like you want

    Sub test()
    With Sheets("Sheet1")
    For Each cell In .Range("K1:K5")
    'D1 is the data validation cell
    .Range("D1").Value = cell.Value
    .PrintOut preview:=True
    Next cell
    End With
    End Sub


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    >I will answer you when I come home from work
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "SJC" <[email protected]> wrote in message news:[email protected]...
    >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    >> list of facility numbers in row K that I used the for the data validation
    >> list, which of course is on the same spreadsheet as the report that I want to
    >> print. Any clue on how I would get started?
    >>
    >> "Ron de Bruin" wrote:
    >>
    >>> Hi SJC
    >>>
    >>> You can do it with a macro.
    >>> Do you want that ?
    >>>
    >>> Do you have a list with facility names on a sheet and use that
    >>> range for the Data Validation list ?
    >>>
    >>> --
    >>> Regards Ron de Bruin
    >>> http://www.rondebruin.nl
    >>>
    >>>
    >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    >>> >I have created a workbook which reports facility data trends. I created a
    >>> > standard report to report this data for each facility. To create each
    >>> > facility's scenario, I used a data validation list with a drop box of
    >>> > facility names to create a standard report for each facility. Obviously only
    >>> > one report may be seen and printed at one time. Is it possible to print out
    >>> > all scenarios in the validation list, or do I need to print each report one
    >>> > at a time. Thanks in advance for any help.
    >>> >
    >>>
    >>>
    >>>

    >
    >




  11. #11
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    Hi SJC

    You can do it with a macro.
    Do you want that ?

    Do you have a list with facility names on a sheet and use that
    range for the Data Validation list ?

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    >I have created a workbook which reports facility data trends. I created a
    > standard report to report this data for each facility. To create each
    > facility's scenario, I used a data validation list with a drop box of
    > facility names to create a standard report for each facility. Obviously only
    > one report may be seen and printed at one time. Is it possible to print out
    > all scenarios in the validation list, or do I need to print each report one
    > at a time. Thanks in advance for any help.
    >




  12. #12
    SJC
    Guest

    Re: Printing data validation scenarios

    A macro would do fine--I guess I am just not sure how to set it up. I have a
    list of facility numbers in row K that I used the for the data validation
    list, which of course is on the same spreadsheet as the report that I want to
    print. Any clue on how I would get started?

    "Ron de Bruin" wrote:

    > Hi SJC
    >
    > You can do it with a macro.
    > Do you want that ?
    >
    > Do you have a list with facility names on a sheet and use that
    > range for the Data Validation list ?
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "SJC" <[email protected]> wrote in message news:[email protected]...
    > >I have created a workbook which reports facility data trends. I created a
    > > standard report to report this data for each facility. To create each
    > > facility's scenario, I used a data validation list with a drop box of
    > > facility names to create a standard report for each facility. Obviously only
    > > one report may be seen and printed at one time. Is it possible to print out
    > > all scenarios in the validation list, or do I need to print each report one
    > > at a time. Thanks in advance for any help.
    > >

    >
    >
    >


  13. #13
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    I will answer you when I come home from work

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    >A macro would do fine--I guess I am just not sure how to set it up. I have a
    > list of facility numbers in row K that I used the for the data validation
    > list, which of course is on the same spreadsheet as the report that I want to
    > print. Any clue on how I would get started?
    >
    > "Ron de Bruin" wrote:
    >
    >> Hi SJC
    >>
    >> You can do it with a macro.
    >> Do you want that ?
    >>
    >> Do you have a list with facility names on a sheet and use that
    >> range for the Data Validation list ?
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >>
    >> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >I have created a workbook which reports facility data trends. I created a
    >> > standard report to report this data for each facility. To create each
    >> > facility's scenario, I used a data validation list with a drop box of
    >> > facility names to create a standard report for each facility. Obviously only
    >> > one report may be seen and printed at one time. Is it possible to print out
    >> > all scenarios in the validation list, or do I need to print each report one
    >> > at a time. Thanks in advance for any help.
    >> >

    >>
    >>
    >>




  14. #14
    SJC
    Guest

    Re: Printing data validation scenarios

    Thanks for the code. Here is what I tried:

    Sub test()
    With Sheets("Report")
    For Each cell In .Range("J1:J5")
    .Range("C6").Value = cell.Value
    .PrintOut preview:=True
    Next cell
    End With
    End Sub

    I ran the sub, and it did not pull the data for all of the reports as it was
    supposed to. As background info, I have all of the data in another
    spreadsheet within the workbook named 'Data', and I have it linked to the
    'Report' spreadsheet. Then obviously the report changes by what name is
    selected in the data validation list. Any clues on what I am doing wrong?

    "Ron de Bruin" wrote:

    >
    > Hi
    >
    > Try this with D1 as data validation cell that update your other data
    > I use a sheet with the name Sheet1
    >
    > Delete preview:=True when it is working like you want
    >
    > Sub test()
    > With Sheets("Sheet1")
    > For Each cell In .Range("K1:K5")
    > 'D1 is the data validation cell
    > .Range("D1").Value = cell.Value
    > .PrintOut preview:=True
    > Next cell
    > End With
    > End Sub
    >
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > >I will answer you when I come home from work
    > >
    > > --
    > > Regards Ron de Bruin
    > > http://www.rondebruin.nl
    > >
    > >
    > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > >> list of facility numbers in row K that I used the for the data validation
    > >> list, which of course is on the same spreadsheet as the report that I want to
    > >> print. Any clue on how I would get started?
    > >>
    > >> "Ron de Bruin" wrote:
    > >>
    > >>> Hi SJC
    > >>>
    > >>> You can do it with a macro.
    > >>> Do you want that ?
    > >>>
    > >>> Do you have a list with facility names on a sheet and use that
    > >>> range for the Data Validation list ?
    > >>>
    > >>> --
    > >>> Regards Ron de Bruin
    > >>> http://www.rondebruin.nl
    > >>>
    > >>>
    > >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > >>> >I have created a workbook which reports facility data trends. I created a
    > >>> > standard report to report this data for each facility. To create each
    > >>> > facility's scenario, I used a data validation list with a drop box of
    > >>> > facility names to create a standard report for each facility. Obviously only
    > >>> > one report may be seen and printed at one time. Is it possible to print out
    > >>> > all scenarios in the validation list, or do I need to print each report one
    > >>> > at a time. Thanks in advance for any help.
    > >>> >
    > >>>
    > >>>
    > >>>

    > >
    > >

    >
    >
    >


  15. #15
    SJC
    Guest

    Re: Printing data validation scenarios

    Thanks for the code. Here is what I tried:

    Sub test()
    With Sheets("Report")
    For Each cell In .Range("J1:J5")
    .Range("C6").Value = cell.Value
    .PrintOut preview:=True
    Next cell
    End With
    End Sub

    I ran the sub, and it did not pull the data for all of the reports as it was
    supposed to. As background info, I have all of the data in another
    spreadsheet within the workbook named 'Data', and I have it linked to the
    'Report' spreadsheet. Then obviously the report changes by what name is
    selected in the data validation list. Any clues on what I am doing wrong?

    "Ron de Bruin" wrote:

    >
    > Hi
    >
    > Try this with D1 as data validation cell that update your other data
    > I use a sheet with the name Sheet1
    >
    > Delete preview:=True when it is working like you want
    >
    > Sub test()
    > With Sheets("Sheet1")
    > For Each cell In .Range("K1:K5")
    > 'D1 is the data validation cell
    > .Range("D1").Value = cell.Value
    > .PrintOut preview:=True
    > Next cell
    > End With
    > End Sub
    >
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > >I will answer you when I come home from work
    > >
    > > --
    > > Regards Ron de Bruin
    > > http://www.rondebruin.nl
    > >
    > >
    > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > >> list of facility numbers in row K that I used the for the data validation
    > >> list, which of course is on the same spreadsheet as the report that I want to
    > >> print. Any clue on how I would get started?
    > >>
    > >> "Ron de Bruin" wrote:
    > >>
    > >>> Hi SJC
    > >>>
    > >>> You can do it with a macro.
    > >>> Do you want that ?
    > >>>
    > >>> Do you have a list with facility names on a sheet and use that
    > >>> range for the Data Validation list ?
    > >>>
    > >>> --
    > >>> Regards Ron de Bruin
    > >>> http://www.rondebruin.nl
    > >>>
    > >>>
    > >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > >>> >I have created a workbook which reports facility data trends. I created a
    > >>> > standard report to report this data for each facility. To create each
    > >>> > facility's scenario, I used a data validation list with a drop box of
    > >>> > facility names to create a standard report for each facility. Obviously only
    > >>> > one report may be seen and printed at one time. Is it possible to print out
    > >>> > all scenarios in the validation list, or do I need to print each report one
    > >>> > at a time. Thanks in advance for any help.
    > >>> >
    > >>>
    > >>>
    > >>>

    > >
    > >

    >
    >
    >


  16. #16
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    Hi SJC

    Send it to me private and I look at it this weekend
    My e-mail is on my site

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    > Yes, I had changed the range so that it was correct. I was able to run the
    > code, and it did produce a report for each facility. However, some
    > facilities did not have the data on the report. I did remember I put
    > together a sample file, but it does not appear that one can use attachments
    > on this board. Thanks for all of your help thus far.
    >
    > "Dave Peterson" wrote:
    >
    >> Ron guessed that your validation list was in K1:K5
    >> For Each cell In .Range("K1:K5")
    >>
    >> If it's in column J, change that address to what it should be
    >> For Each cell In .Range("Jx:Jy")
    >>
    >> (change x and y to the row numbers that apply.)
    >>
    >> SJC wrote:
    >> >
    >> > On the data spreadsheet, the facility number, of which I used to create the
    >> > validation list is in column A. However, on the report sheet, I have the
    >> > facility list in column J which was directly used to make the validation
    >> > list. So then, everything to do with the validation list occurs on the
    >> > report spreadsheet, only the actual data is on the data spreadsheet. The
    >> > validation list in cell C6 is on the report spreadsheet. If I am making any
    >> > kind of sense, what would be the best way to fix this? The code thus far
    >> > doesn't seem to work.
    >> >
    >> > "Dave Peterson" wrote:
    >> >
    >> > > What's the range that contains the data|Validation entries (on worksheet Data)?
    >> > >
    >> > > I think you just want this:
    >> > >
    >> > > Sub test()
    >> > > With Sheets("Report")
    >> > > For Each cell In worksheets("data").Range("datavalrangenamehere")
    >> > > .Range("C6").Value = cell.Value
    >> > > 'I'd add
    >> > > application.calculate 'just in case
    >> > > .PrintOut preview:=True
    >> > > Next cell
    >> > > End With
    >> > > End Sub
    >> > >
    >> > > Maybe it's that simple change.
    >> > >
    >> > >
    >> > > SJC wrote:
    >> > > >
    >> > > > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    >> > > > for sharing the file. Thanks for all of your help thus far.
    >> > > >
    >> > > > "Ron de Bruin" wrote:
    >> > > >
    >> > > > > Hi SJC
    >> > > > >
    >> > > > > Can you send me the workbook private then I will look at it tomorrow
    >> > > > >
    >> > > > > --
    >> > > > > Regards Ron de Bruin
    >> > > > > http://www.rondebruin.nl
    >> > > > >
    >> > > > >
    >> > > > > "SJC" <[email protected]> wrote in message news:[email protected]...
    >> > > > > > I'll tell you everything that I have in hopes to answer your question, as I
    >> > > > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    >> > > > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    >> > > > > > produces a one page report from my data which includes a table and two
    >> > > > > > charts. My hope for this was to create a standard report that would
    >> > > > > > automatically update for each of my 300 facilities. So on my report
    >> > > > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    >> > > > > > worksheet, and a data validation listbox to choose which facility to display.
    >> > > > > > On the 'report' worksheet, column J is my reference list for the data
    >> > > > > > validation list. This list obviously was used to create the data validation
    >> > > > > > listbox, and to compile this list, I just pasted links from the 'Data'
    >> > > > > > spreadsheet. So now I am trying to create a macro which will go through my
    >> > > > > > data validation list and print one report for each facility. When I view
    >> > > > > > each report on the spreadsheet using the data validation listbox, the report
    >> > > > > > appears fine. However, when I run the sub to print, it produces one report
    >> > > > > > for each facility, but in many reports, no data is present. In other
    >> > > > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    >> > > > > > how to fix this?
    >> > > > > >
    >> > > > > > "Ron de Bruin" wrote:
    >> > > > > >
    >> > > > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    >> > > > > >> the Data Validation cell.
    >> > > > > >>
    >> > > > > >> how do you update the cells when you change C6
    >> > > > > >>
    >> > > > > >> BTW
    >> > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    >> > > > > >> I see J in the code now ?
    >> > > > > >>
    >> > > > > >> --
    >> > > > > >> Regards Ron de Bruin
    >> > > > > >> http://www.rondebruin.nl
    >> > > > > >>
    >> > > > > >>
    >> > > > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> > > > > >> > Thanks for the code. Here is what I tried:
    >> > > > > >> >
    >> > > > > >> > Sub test()
    >> > > > > >> > With Sheets("Report")
    >> > > > > >> > For Each cell In .Range("J1:J5")
    >> > > > > >> > .Range("C6").Value = cell.Value
    >> > > > > >> > .PrintOut preview:=True
    >> > > > > >> > Next cell
    >> > > > > >> > End With
    >> > > > > >> > End Sub
    >> > > > > >> >
    >> > > > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    >> > > > > >> > supposed to. As background info, I have all of the data in another
    >> > > > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    >> > > > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    >> > > > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    >> > > > > >> >
    >> > > > > >> > "Ron de Bruin" wrote:
    >> > > > > >> >
    >> > > > > >> >>
    >> > > > > >> >> Hi
    >> > > > > >> >>
    >> > > > > >> >> Try this with D1 as data validation cell that update your other data
    >> > > > > >> >> I use a sheet with the name Sheet1
    >> > > > > >> >>
    >> > > > > >> >> Delete preview:=True when it is working like you want
    >> > > > > >> >>
    >> > > > > >> >> Sub test()
    >> > > > > >> >> With Sheets("Sheet1")
    >> > > > > >> >> For Each cell In .Range("K1:K5")
    >> > > > > >> >> 'D1 is the data validation cell
    >> > > > > >> >> .Range("D1").Value = cell.Value
    >> > > > > >> >> .PrintOut preview:=True
    >> > > > > >> >> Next cell
    >> > > > > >> >> End With
    >> > > > > >> >> End Sub
    >> > > > > >> >>
    >> > > > > >> >>
    >> > > > > >> >> --
    >> > > > > >> >> Regards Ron de Bruin
    >> > > > > >> >> http://www.rondebruin.nl
    >> > > > > >> >>
    >> > > > > >> >>
    >> > > > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    >> > > > > >> >> >I will answer you when I come home from work
    >> > > > > >> >> >
    >> > > > > >> >> > --
    >> > > > > >> >> > Regards Ron de Bruin
    >> > > > > >> >> > http://www.rondebruin.nl
    >> > > > > >> >> >
    >> > > > > >> >> >
    >> > > > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    >> > > > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    >> > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    >> > > > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    >> > > > > >> >> >> print. Any clue on how I would get started?
    >> > > > > >> >> >>
    >> > > > > >> >> >> "Ron de Bruin" wrote:
    >> > > > > >> >> >>
    >> > > > > >> >> >>> Hi SJC
    >> > > > > >> >> >>>
    >> > > > > >> >> >>> You can do it with a macro.
    >> > > > > >> >> >>> Do you want that ?
    >> > > > > >> >> >>>
    >> > > > > >> >> >>> Do you have a list with facility names on a sheet and use that
    >> > > > > >> >> >>> range for the Data Validation list ?
    >> > > > > >> >> >>>
    >> > > > > >> >> >>> --
    >> > > > > >> >> >>> Regards Ron de Bruin
    >> > > > > >> >> >>> http://www.rondebruin.nl
    >> > > > > >> >> >>>
    >> > > > > >> >> >>>
    >> > > > > >> >> >>> "SJC" <[email protected]> wrote in message
    >> > > > > >> >> >>> news:[email protected]...
    >> > > > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    >> > > > > >> >> >>> > standard report to report this data for each facility. To create each
    >> > > > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    >> > > > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    >> > > > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    >> > > > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    >> > > > > >> >> >>> > at a time. Thanks in advance for any help.
    >> > > > > >> >> >>> >
    >> > > > > >> >> >>>
    >> > > > > >> >> >>>
    >> > > > > >> >> >>>
    >> > > > > >> >> >
    >> > > > > >> >> >
    >> > > > > >> >>
    >> > > > > >> >>
    >> > > > > >> >>
    >> > > > > >>
    >> > > > > >>
    >> > > > > >>
    >> > > > >
    >> > > > >
    >> > > > >
    >> > >
    >> > > --
    >> > >
    >> > > Dave Peterson
    >> > >

    >>
    >> --
    >>
    >> Dave Peterson
    >>




  17. #17
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    Hi SJC

    You can do it with a macro.
    Do you want that ?

    Do you have a list with facility names on a sheet and use that
    range for the Data Validation list ?

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    >I have created a workbook which reports facility data trends. I created a
    > standard report to report this data for each facility. To create each
    > facility's scenario, I used a data validation list with a drop box of
    > facility names to create a standard report for each facility. Obviously only
    > one report may be seen and printed at one time. Is it possible to print out
    > all scenarios in the validation list, or do I need to print each report one
    > at a time. Thanks in advance for any help.
    >




  18. #18
    SJC
    Guest

    Re: Printing data validation scenarios

    A macro would do fine--I guess I am just not sure how to set it up. I have a
    list of facility numbers in row K that I used the for the data validation
    list, which of course is on the same spreadsheet as the report that I want to
    print. Any clue on how I would get started?

    "Ron de Bruin" wrote:

    > Hi SJC
    >
    > You can do it with a macro.
    > Do you want that ?
    >
    > Do you have a list with facility names on a sheet and use that
    > range for the Data Validation list ?
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "SJC" <[email protected]> wrote in message news:[email protected]...
    > >I have created a workbook which reports facility data trends. I created a
    > > standard report to report this data for each facility. To create each
    > > facility's scenario, I used a data validation list with a drop box of
    > > facility names to create a standard report for each facility. Obviously only
    > > one report may be seen and printed at one time. Is it possible to print out
    > > all scenarios in the validation list, or do I need to print each report one
    > > at a time. Thanks in advance for any help.
    > >

    >
    >
    >


  19. #19
    SJC
    Guest

    Re: Printing data validation scenarios

    Yes, I had changed the range so that it was correct. I was able to run the
    code, and it did produce a report for each facility. However, some
    facilities did not have the data on the report. I did remember I put
    together a sample file, but it does not appear that one can use attachments
    on this board. Thanks for all of your help thus far.

    "Dave Peterson" wrote:

    > Ron guessed that your validation list was in K1:K5
    > For Each cell In .Range("K1:K5")
    >
    > If it's in column J, change that address to what it should be
    > For Each cell In .Range("Jx:Jy")
    >
    > (change x and y to the row numbers that apply.)
    >
    > SJC wrote:
    > >
    > > On the data spreadsheet, the facility number, of which I used to create the
    > > validation list is in column A. However, on the report sheet, I have the
    > > facility list in column J which was directly used to make the validation
    > > list. So then, everything to do with the validation list occurs on the
    > > report spreadsheet, only the actual data is on the data spreadsheet. The
    > > validation list in cell C6 is on the report spreadsheet. If I am making any
    > > kind of sense, what would be the best way to fix this? The code thus far
    > > doesn't seem to work.
    > >
    > > "Dave Peterson" wrote:
    > >
    > > > What's the range that contains the data|Validation entries (on worksheet Data)?
    > > >
    > > > I think you just want this:
    > > >
    > > > Sub test()
    > > > With Sheets("Report")
    > > > For Each cell In worksheets("data").Range("datavalrangenamehere")
    > > > .Range("C6").Value = cell.Value
    > > > 'I'd add
    > > > application.calculate 'just in case
    > > > .PrintOut preview:=True
    > > > Next cell
    > > > End With
    > > > End Sub
    > > >
    > > > Maybe it's that simple change.
    > > >
    > > >
    > > > SJC wrote:
    > > > >
    > > > > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    > > > > for sharing the file. Thanks for all of your help thus far.
    > > > >
    > > > > "Ron de Bruin" wrote:
    > > > >
    > > > > > Hi SJC
    > > > > >
    > > > > > Can you send me the workbook private then I will look at it tomorrow
    > > > > >
    > > > > > --
    > > > > > Regards Ron de Bruin
    > > > > > http://www.rondebruin.nl
    > > > > >
    > > > > >
    > > > > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > > I'll tell you everything that I have in hopes to answer your question, as I
    > > > > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > > > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > > > > > produces a one page report from my data which includes a table and two
    > > > > > > charts. My hope for this was to create a standard report that would
    > > > > > > automatically update for each of my 300 facilities. So on my report
    > > > > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > > > > > worksheet, and a data validation listbox to choose which facility to display.
    > > > > > > On the 'report' worksheet, column J is my reference list for the data
    > > > > > > validation list. This list obviously was used to create the data validation
    > > > > > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > > > > > spreadsheet. So now I am trying to create a macro which will go through my
    > > > > > > data validation list and print one report for each facility. When I view
    > > > > > > each report on the spreadsheet using the data validation listbox, the report
    > > > > > > appears fine. However, when I run the sub to print, it produces one report
    > > > > > > for each facility, but in many reports, no data is present. In other
    > > > > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > > > > > how to fix this?
    > > > > > >
    > > > > > > "Ron de Bruin" wrote:
    > > > > > >
    > > > > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > > > > > >> the Data Validation cell.
    > > > > > >>
    > > > > > >> how do you update the cells when you change C6
    > > > > > >>
    > > > > > >> BTW
    > > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > > > >> I see J in the code now ?
    > > > > > >>
    > > > > > >> --
    > > > > > >> Regards Ron de Bruin
    > > > > > >> http://www.rondebruin.nl
    > > > > > >>
    > > > > > >>
    > > > > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > >> > Thanks for the code. Here is what I tried:
    > > > > > >> >
    > > > > > >> > Sub test()
    > > > > > >> > With Sheets("Report")
    > > > > > >> > For Each cell In .Range("J1:J5")
    > > > > > >> > .Range("C6").Value = cell.Value
    > > > > > >> > .PrintOut preview:=True
    > > > > > >> > Next cell
    > > > > > >> > End With
    > > > > > >> > End Sub
    > > > > > >> >
    > > > > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > > > > > >> > supposed to. As background info, I have all of the data in another
    > > > > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > > > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > > > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > > > > > >> >
    > > > > > >> > "Ron de Bruin" wrote:
    > > > > > >> >
    > > > > > >> >>
    > > > > > >> >> Hi
    > > > > > >> >>
    > > > > > >> >> Try this with D1 as data validation cell that update your other data
    > > > > > >> >> I use a sheet with the name Sheet1
    > > > > > >> >>
    > > > > > >> >> Delete preview:=True when it is working like you want
    > > > > > >> >>
    > > > > > >> >> Sub test()
    > > > > > >> >> With Sheets("Sheet1")
    > > > > > >> >> For Each cell In .Range("K1:K5")
    > > > > > >> >> 'D1 is the data validation cell
    > > > > > >> >> .Range("D1").Value = cell.Value
    > > > > > >> >> .PrintOut preview:=True
    > > > > > >> >> Next cell
    > > > > > >> >> End With
    > > > > > >> >> End Sub
    > > > > > >> >>
    > > > > > >> >>
    > > > > > >> >> --
    > > > > > >> >> Regards Ron de Bruin
    > > > > > >> >> http://www.rondebruin.nl
    > > > > > >> >>
    > > > > > >> >>
    > > > > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > > > > > >> >> >I will answer you when I come home from work
    > > > > > >> >> >
    > > > > > >> >> > --
    > > > > > >> >> > Regards Ron de Bruin
    > > > > > >> >> > http://www.rondebruin.nl
    > > > > > >> >> >
    > > > > > >> >> >
    > > > > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > > > > > >> >> >> print. Any clue on how I would get started?
    > > > > > >> >> >>
    > > > > > >> >> >> "Ron de Bruin" wrote:
    > > > > > >> >> >>
    > > > > > >> >> >>> Hi SJC
    > > > > > >> >> >>>
    > > > > > >> >> >>> You can do it with a macro.
    > > > > > >> >> >>> Do you want that ?
    > > > > > >> >> >>>
    > > > > > >> >> >>> Do you have a list with facility names on a sheet and use that
    > > > > > >> >> >>> range for the Data Validation list ?
    > > > > > >> >> >>>
    > > > > > >> >> >>> --
    > > > > > >> >> >>> Regards Ron de Bruin
    > > > > > >> >> >>> http://www.rondebruin.nl
    > > > > > >> >> >>>
    > > > > > >> >> >>>
    > > > > > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > > > > > >> >> >>> > standard report to report this data for each facility. To create each
    > > > > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > > > > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > > > > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > > > > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > > > > > >> >> >>> > at a time. Thanks in advance for any help.
    > > > > > >> >> >>> >
    > > > > > >> >> >>>
    > > > > > >> >> >>>
    > > > > > >> >> >>>
    > > > > > >> >> >
    > > > > > >> >> >
    > > > > > >> >>
    > > > > > >> >>
    > > > > > >> >>
    > > > > > >>
    > > > > > >>
    > > > > > >>
    > > > > >
    > > > > >
    > > > > >
    > > >
    > > > --
    > > >
    > > > Dave Peterson
    > > >

    >
    > --
    >
    > Dave Peterson
    >


  20. #20
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    I will answer you when I come home from work

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    >A macro would do fine--I guess I am just not sure how to set it up. I have a
    > list of facility numbers in row K that I used the for the data validation
    > list, which of course is on the same spreadsheet as the report that I want to
    > print. Any clue on how I would get started?
    >
    > "Ron de Bruin" wrote:
    >
    >> Hi SJC
    >>
    >> You can do it with a macro.
    >> Do you want that ?
    >>
    >> Do you have a list with facility names on a sheet and use that
    >> range for the Data Validation list ?
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >>
    >> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >I have created a workbook which reports facility data trends. I created a
    >> > standard report to report this data for each facility. To create each
    >> > facility's scenario, I used a data validation list with a drop box of
    >> > facility names to create a standard report for each facility. Obviously only
    >> > one report may be seen and printed at one time. Is it possible to print out
    >> > all scenarios in the validation list, or do I need to print each report one
    >> > at a time. Thanks in advance for any help.
    >> >

    >>
    >>
    >>




  21. #21
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios


    Hi

    Try this with D1 as data validation cell that update your other data
    I use a sheet with the name Sheet1

    Delete preview:=True when it is working like you want

    Sub test()
    With Sheets("Sheet1")
    For Each cell In .Range("K1:K5")
    'D1 is the data validation cell
    .Range("D1").Value = cell.Value
    .PrintOut preview:=True
    Next cell
    End With
    End Sub


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    >I will answer you when I come home from work
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "SJC" <[email protected]> wrote in message news:[email protected]...
    >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    >> list of facility numbers in row K that I used the for the data validation
    >> list, which of course is on the same spreadsheet as the report that I want to
    >> print. Any clue on how I would get started?
    >>
    >> "Ron de Bruin" wrote:
    >>
    >>> Hi SJC
    >>>
    >>> You can do it with a macro.
    >>> Do you want that ?
    >>>
    >>> Do you have a list with facility names on a sheet and use that
    >>> range for the Data Validation list ?
    >>>
    >>> --
    >>> Regards Ron de Bruin
    >>> http://www.rondebruin.nl
    >>>
    >>>
    >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    >>> >I have created a workbook which reports facility data trends. I created a
    >>> > standard report to report this data for each facility. To create each
    >>> > facility's scenario, I used a data validation list with a drop box of
    >>> > facility names to create a standard report for each facility. Obviously only
    >>> > one report may be seen and printed at one time. Is it possible to print out
    >>> > all scenarios in the validation list, or do I need to print each report one
    >>> > at a time. Thanks in advance for any help.
    >>> >
    >>>
    >>>
    >>>

    >
    >




  22. #22
    Dave Peterson
    Guest

    Re: Printing data validation scenarios

    Ron guessed that your validation list was in K1:K5
    For Each cell In .Range("K1:K5")

    If it's in column J, change that address to what it should be
    For Each cell In .Range("Jx:Jy")

    (change x and y to the row numbers that apply.)

    SJC wrote:
    >
    > On the data spreadsheet, the facility number, of which I used to create the
    > validation list is in column A. However, on the report sheet, I have the
    > facility list in column J which was directly used to make the validation
    > list. So then, everything to do with the validation list occurs on the
    > report spreadsheet, only the actual data is on the data spreadsheet. The
    > validation list in cell C6 is on the report spreadsheet. If I am making any
    > kind of sense, what would be the best way to fix this? The code thus far
    > doesn't seem to work.
    >
    > "Dave Peterson" wrote:
    >
    > > What's the range that contains the data|Validation entries (on worksheet Data)?
    > >
    > > I think you just want this:
    > >
    > > Sub test()
    > > With Sheets("Report")
    > > For Each cell In worksheets("data").Range("datavalrangenamehere")
    > > .Range("C6").Value = cell.Value
    > > 'I'd add
    > > application.calculate 'just in case
    > > .PrintOut preview:=True
    > > Next cell
    > > End With
    > > End Sub
    > >
    > > Maybe it's that simple change.
    > >
    > >
    > > SJC wrote:
    > > >
    > > > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    > > > for sharing the file. Thanks for all of your help thus far.
    > > >
    > > > "Ron de Bruin" wrote:
    > > >
    > > > > Hi SJC
    > > > >
    > > > > Can you send me the workbook private then I will look at it tomorrow
    > > > >
    > > > > --
    > > > > Regards Ron de Bruin
    > > > > http://www.rondebruin.nl
    > > > >
    > > > >
    > > > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > I'll tell you everything that I have in hopes to answer your question, as I
    > > > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > > > > produces a one page report from my data which includes a table and two
    > > > > > charts. My hope for this was to create a standard report that would
    > > > > > automatically update for each of my 300 facilities. So on my report
    > > > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > > > > worksheet, and a data validation listbox to choose which facility to display.
    > > > > > On the 'report' worksheet, column J is my reference list for the data
    > > > > > validation list. This list obviously was used to create the data validation
    > > > > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > > > > spreadsheet. So now I am trying to create a macro which will go through my
    > > > > > data validation list and print one report for each facility. When I view
    > > > > > each report on the spreadsheet using the data validation listbox, the report
    > > > > > appears fine. However, when I run the sub to print, it produces one report
    > > > > > for each facility, but in many reports, no data is present. In other
    > > > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > > > > how to fix this?
    > > > > >
    > > > > > "Ron de Bruin" wrote:
    > > > > >
    > > > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > > > > >> the Data Validation cell.
    > > > > >>
    > > > > >> how do you update the cells when you change C6
    > > > > >>
    > > > > >> BTW
    > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > > >> I see J in the code now ?
    > > > > >>
    > > > > >> --
    > > > > >> Regards Ron de Bruin
    > > > > >> http://www.rondebruin.nl
    > > > > >>
    > > > > >>
    > > > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > >> > Thanks for the code. Here is what I tried:
    > > > > >> >
    > > > > >> > Sub test()
    > > > > >> > With Sheets("Report")
    > > > > >> > For Each cell In .Range("J1:J5")
    > > > > >> > .Range("C6").Value = cell.Value
    > > > > >> > .PrintOut preview:=True
    > > > > >> > Next cell
    > > > > >> > End With
    > > > > >> > End Sub
    > > > > >> >
    > > > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > > > > >> > supposed to. As background info, I have all of the data in another
    > > > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > > > > >> >
    > > > > >> > "Ron de Bruin" wrote:
    > > > > >> >
    > > > > >> >>
    > > > > >> >> Hi
    > > > > >> >>
    > > > > >> >> Try this with D1 as data validation cell that update your other data
    > > > > >> >> I use a sheet with the name Sheet1
    > > > > >> >>
    > > > > >> >> Delete preview:=True when it is working like you want
    > > > > >> >>
    > > > > >> >> Sub test()
    > > > > >> >> With Sheets("Sheet1")
    > > > > >> >> For Each cell In .Range("K1:K5")
    > > > > >> >> 'D1 is the data validation cell
    > > > > >> >> .Range("D1").Value = cell.Value
    > > > > >> >> .PrintOut preview:=True
    > > > > >> >> Next cell
    > > > > >> >> End With
    > > > > >> >> End Sub
    > > > > >> >>
    > > > > >> >>
    > > > > >> >> --
    > > > > >> >> Regards Ron de Bruin
    > > > > >> >> http://www.rondebruin.nl
    > > > > >> >>
    > > > > >> >>
    > > > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > > > > >> >> >I will answer you when I come home from work
    > > > > >> >> >
    > > > > >> >> > --
    > > > > >> >> > Regards Ron de Bruin
    > > > > >> >> > http://www.rondebruin.nl
    > > > > >> >> >
    > > > > >> >> >
    > > > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > > > > >> >> >> print. Any clue on how I would get started?
    > > > > >> >> >>
    > > > > >> >> >> "Ron de Bruin" wrote:
    > > > > >> >> >>
    > > > > >> >> >>> Hi SJC
    > > > > >> >> >>>
    > > > > >> >> >>> You can do it with a macro.
    > > > > >> >> >>> Do you want that ?
    > > > > >> >> >>>
    > > > > >> >> >>> Do you have a list with facility names on a sheet and use that
    > > > > >> >> >>> range for the Data Validation list ?
    > > > > >> >> >>>
    > > > > >> >> >>> --
    > > > > >> >> >>> Regards Ron de Bruin
    > > > > >> >> >>> http://www.rondebruin.nl
    > > > > >> >> >>>
    > > > > >> >> >>>
    > > > > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > > > > >> >> >>> > standard report to report this data for each facility. To create each
    > > > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > > > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > > > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > > > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > > > > >> >> >>> > at a time. Thanks in advance for any help.
    > > > > >> >> >>> >
    > > > > >> >> >>>
    > > > > >> >> >>>
    > > > > >> >> >>>
    > > > > >> >> >
    > > > > >> >> >
    > > > > >> >>
    > > > > >> >>
    > > > > >> >>
    > > > > >>
    > > > > >>
    > > > > >>
    > > > >
    > > > >
    > > > >

    > >
    > > --
    > >
    > > Dave Peterson
    > >


    --

    Dave Peterson

  23. #23
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    I was thinking that you use Vlookup formulas in your sheet with as lookup value
    the Data Validation cell.

    how do you update the cells when you change C6

    BTW
    >> >> list of facility numbers in row K that I used the for the data validation

    I see J in the code now ?

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    > Thanks for the code. Here is what I tried:
    >
    > Sub test()
    > With Sheets("Report")
    > For Each cell In .Range("J1:J5")
    > .Range("C6").Value = cell.Value
    > .PrintOut preview:=True
    > Next cell
    > End With
    > End Sub
    >
    > I ran the sub, and it did not pull the data for all of the reports as it was
    > supposed to. As background info, I have all of the data in another
    > spreadsheet within the workbook named 'Data', and I have it linked to the
    > 'Report' spreadsheet. Then obviously the report changes by what name is
    > selected in the data validation list. Any clues on what I am doing wrong?
    >
    > "Ron de Bruin" wrote:
    >
    >>
    >> Hi
    >>
    >> Try this with D1 as data validation cell that update your other data
    >> I use a sheet with the name Sheet1
    >>
    >> Delete preview:=True when it is working like you want
    >>
    >> Sub test()
    >> With Sheets("Sheet1")
    >> For Each cell In .Range("K1:K5")
    >> 'D1 is the data validation cell
    >> .Range("D1").Value = cell.Value
    >> .PrintOut preview:=True
    >> Next cell
    >> End With
    >> End Sub
    >>
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >>
    >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    >> >I will answer you when I come home from work
    >> >
    >> > --
    >> > Regards Ron de Bruin
    >> > http://www.rondebruin.nl
    >> >
    >> >
    >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    >> >> list of facility numbers in row K that I used the for the data validation
    >> >> list, which of course is on the same spreadsheet as the report that I want to
    >> >> print. Any clue on how I would get started?
    >> >>
    >> >> "Ron de Bruin" wrote:
    >> >>
    >> >>> Hi SJC
    >> >>>
    >> >>> You can do it with a macro.
    >> >>> Do you want that ?
    >> >>>
    >> >>> Do you have a list with facility names on a sheet and use that
    >> >>> range for the Data Validation list ?
    >> >>>
    >> >>> --
    >> >>> Regards Ron de Bruin
    >> >>> http://www.rondebruin.nl
    >> >>>
    >> >>>
    >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >>> >I have created a workbook which reports facility data trends. I created a
    >> >>> > standard report to report this data for each facility. To create each
    >> >>> > facility's scenario, I used a data validation list with a drop box of
    >> >>> > facility names to create a standard report for each facility. Obviously only
    >> >>> > one report may be seen and printed at one time. Is it possible to print out
    >> >>> > all scenarios in the validation list, or do I need to print each report one
    >> >>> > at a time. Thanks in advance for any help.
    >> >>> >
    >> >>>
    >> >>>
    >> >>>
    >> >
    >> >

    >>
    >>
    >>




  24. #24
    SJC
    Guest

    Re: Printing data validation scenarios

    On the data spreadsheet, the facility number, of which I used to create the
    validation list is in column A. However, on the report sheet, I have the
    facility list in column J which was directly used to make the validation
    list. So then, everything to do with the validation list occurs on the
    report spreadsheet, only the actual data is on the data spreadsheet. The
    validation list in cell C6 is on the report spreadsheet. If I am making any
    kind of sense, what would be the best way to fix this? The code thus far
    doesn't seem to work.

    "Dave Peterson" wrote:

    > What's the range that contains the data|Validation entries (on worksheet Data)?
    >
    > I think you just want this:
    >
    > Sub test()
    > With Sheets("Report")
    > For Each cell In worksheets("data").Range("datavalrangenamehere")
    > .Range("C6").Value = cell.Value
    > 'I'd add
    > application.calculate 'just in case
    > .PrintOut preview:=True
    > Next cell
    > End With
    > End Sub
    >
    > Maybe it's that simple change.
    >
    >
    > SJC wrote:
    > >
    > > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    > > for sharing the file. Thanks for all of your help thus far.
    > >
    > > "Ron de Bruin" wrote:
    > >
    > > > Hi SJC
    > > >
    > > > Can you send me the workbook private then I will look at it tomorrow
    > > >
    > > > --
    > > > Regards Ron de Bruin
    > > > http://www.rondebruin.nl
    > > >
    > > >
    > > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > I'll tell you everything that I have in hopes to answer your question, as I
    > > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > > > produces a one page report from my data which includes a table and two
    > > > > charts. My hope for this was to create a standard report that would
    > > > > automatically update for each of my 300 facilities. So on my report
    > > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > > > worksheet, and a data validation listbox to choose which facility to display.
    > > > > On the 'report' worksheet, column J is my reference list for the data
    > > > > validation list. This list obviously was used to create the data validation
    > > > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > > > spreadsheet. So now I am trying to create a macro which will go through my
    > > > > data validation list and print one report for each facility. When I view
    > > > > each report on the spreadsheet using the data validation listbox, the report
    > > > > appears fine. However, when I run the sub to print, it produces one report
    > > > > for each facility, but in many reports, no data is present. In other
    > > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > > > how to fix this?
    > > > >
    > > > > "Ron de Bruin" wrote:
    > > > >
    > > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > > > >> the Data Validation cell.
    > > > >>
    > > > >> how do you update the cells when you change C6
    > > > >>
    > > > >> BTW
    > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > >> I see J in the code now ?
    > > > >>
    > > > >> --
    > > > >> Regards Ron de Bruin
    > > > >> http://www.rondebruin.nl
    > > > >>
    > > > >>
    > > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > >> > Thanks for the code. Here is what I tried:
    > > > >> >
    > > > >> > Sub test()
    > > > >> > With Sheets("Report")
    > > > >> > For Each cell In .Range("J1:J5")
    > > > >> > .Range("C6").Value = cell.Value
    > > > >> > .PrintOut preview:=True
    > > > >> > Next cell
    > > > >> > End With
    > > > >> > End Sub
    > > > >> >
    > > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > > > >> > supposed to. As background info, I have all of the data in another
    > > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > > > >> >
    > > > >> > "Ron de Bruin" wrote:
    > > > >> >
    > > > >> >>
    > > > >> >> Hi
    > > > >> >>
    > > > >> >> Try this with D1 as data validation cell that update your other data
    > > > >> >> I use a sheet with the name Sheet1
    > > > >> >>
    > > > >> >> Delete preview:=True when it is working like you want
    > > > >> >>
    > > > >> >> Sub test()
    > > > >> >> With Sheets("Sheet1")
    > > > >> >> For Each cell In .Range("K1:K5")
    > > > >> >> 'D1 is the data validation cell
    > > > >> >> .Range("D1").Value = cell.Value
    > > > >> >> .PrintOut preview:=True
    > > > >> >> Next cell
    > > > >> >> End With
    > > > >> >> End Sub
    > > > >> >>
    > > > >> >>
    > > > >> >> --
    > > > >> >> Regards Ron de Bruin
    > > > >> >> http://www.rondebruin.nl
    > > > >> >>
    > > > >> >>
    > > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > > > >> >> >I will answer you when I come home from work
    > > > >> >> >
    > > > >> >> > --
    > > > >> >> > Regards Ron de Bruin
    > > > >> >> > http://www.rondebruin.nl
    > > > >> >> >
    > > > >> >> >
    > > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > > > >> >> >> print. Any clue on how I would get started?
    > > > >> >> >>
    > > > >> >> >> "Ron de Bruin" wrote:
    > > > >> >> >>
    > > > >> >> >>> Hi SJC
    > > > >> >> >>>
    > > > >> >> >>> You can do it with a macro.
    > > > >> >> >>> Do you want that ?
    > > > >> >> >>>
    > > > >> >> >>> Do you have a list with facility names on a sheet and use that
    > > > >> >> >>> range for the Data Validation list ?
    > > > >> >> >>>
    > > > >> >> >>> --
    > > > >> >> >>> Regards Ron de Bruin
    > > > >> >> >>> http://www.rondebruin.nl
    > > > >> >> >>>
    > > > >> >> >>>
    > > > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > > > >> >> >>> > standard report to report this data for each facility. To create each
    > > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > > > >> >> >>> > at a time. Thanks in advance for any help.
    > > > >> >> >>> >
    > > > >> >> >>>
    > > > >> >> >>>
    > > > >> >> >>>
    > > > >> >> >
    > > > >> >> >
    > > > >> >>
    > > > >> >>
    > > > >> >>
    > > > >>
    > > > >>
    > > > >>
    > > >
    > > >
    > > >

    >
    > --
    >
    > Dave Peterson
    >


  25. #25
    SJC
    Guest

    Re: Printing data validation scenarios

    I'll tell you everything that I have in hopes to answer your question, as I
    am still kind of new at this. In my workbook, I have two spreadsheets. My
    'Data' sheet holds all of my data. I then have a 'Report' sheet which
    produces a one page report from my data which includes a table and two
    charts. My hope for this was to create a standard report that would
    automatically update for each of my 300 facilities. So on my report
    worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    worksheet, and a data validation listbox to choose which facility to display.
    On the 'report' worksheet, column J is my reference list for the data
    validation list. This list obviously was used to create the data validation
    listbox, and to compile this list, I just pasted links from the 'Data'
    spreadsheet. So now I am trying to create a macro which will go through my
    data validation list and print one report for each facility. When I view
    each report on the spreadsheet using the data validation listbox, the report
    appears fine. However, when I run the sub to print, it produces one report
    for each facility, but in many reports, no data is present. In other
    reports, it appears fine. I hope I have not been too confusing, any clues on
    how to fix this?

    "Ron de Bruin" wrote:

    > I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > the Data Validation cell.
    >
    > how do you update the cells when you change C6
    >
    > BTW
    > >> >> list of facility numbers in row K that I used the for the data validation

    > I see J in the code now ?
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > Thanks for the code. Here is what I tried:
    > >
    > > Sub test()
    > > With Sheets("Report")
    > > For Each cell In .Range("J1:J5")
    > > .Range("C6").Value = cell.Value
    > > .PrintOut preview:=True
    > > Next cell
    > > End With
    > > End Sub
    > >
    > > I ran the sub, and it did not pull the data for all of the reports as it was
    > > supposed to. As background info, I have all of the data in another
    > > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > selected in the data validation list. Any clues on what I am doing wrong?
    > >
    > > "Ron de Bruin" wrote:
    > >
    > >>
    > >> Hi
    > >>
    > >> Try this with D1 as data validation cell that update your other data
    > >> I use a sheet with the name Sheet1
    > >>
    > >> Delete preview:=True when it is working like you want
    > >>
    > >> Sub test()
    > >> With Sheets("Sheet1")
    > >> For Each cell In .Range("K1:K5")
    > >> 'D1 is the data validation cell
    > >> .Range("D1").Value = cell.Value
    > >> .PrintOut preview:=True
    > >> Next cell
    > >> End With
    > >> End Sub
    > >>
    > >>
    > >> --
    > >> Regards Ron de Bruin
    > >> http://www.rondebruin.nl
    > >>
    > >>
    > >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > >> >I will answer you when I come home from work
    > >> >
    > >> > --
    > >> > Regards Ron de Bruin
    > >> > http://www.rondebruin.nl
    > >> >
    > >> >
    > >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > >> >> list of facility numbers in row K that I used the for the data validation
    > >> >> list, which of course is on the same spreadsheet as the report that I want to
    > >> >> print. Any clue on how I would get started?
    > >> >>
    > >> >> "Ron de Bruin" wrote:
    > >> >>
    > >> >>> Hi SJC
    > >> >>>
    > >> >>> You can do it with a macro.
    > >> >>> Do you want that ?
    > >> >>>
    > >> >>> Do you have a list with facility names on a sheet and use that
    > >> >>> range for the Data Validation list ?
    > >> >>>
    > >> >>> --
    > >> >>> Regards Ron de Bruin
    > >> >>> http://www.rondebruin.nl
    > >> >>>
    > >> >>>
    > >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> >>> >I have created a workbook which reports facility data trends. I created a
    > >> >>> > standard report to report this data for each facility. To create each
    > >> >>> > facility's scenario, I used a data validation list with a drop box of
    > >> >>> > facility names to create a standard report for each facility. Obviously only
    > >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > >> >>> > all scenarios in the validation list, or do I need to print each report one
    > >> >>> > at a time. Thanks in advance for any help.
    > >> >>> >
    > >> >>>
    > >> >>>
    > >> >>>
    > >> >
    > >> >
    > >>
    > >>
    > >>

    >
    >
    >


  26. #26
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    Hi SJC

    Can you send me the workbook private then I will look at it tomorrow

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    > I'll tell you everything that I have in hopes to answer your question, as I
    > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > produces a one page report from my data which includes a table and two
    > charts. My hope for this was to create a standard report that would
    > automatically update for each of my 300 facilities. So on my report
    > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > worksheet, and a data validation listbox to choose which facility to display.
    > On the 'report' worksheet, column J is my reference list for the data
    > validation list. This list obviously was used to create the data validation
    > listbox, and to compile this list, I just pasted links from the 'Data'
    > spreadsheet. So now I am trying to create a macro which will go through my
    > data validation list and print one report for each facility. When I view
    > each report on the spreadsheet using the data validation listbox, the report
    > appears fine. However, when I run the sub to print, it produces one report
    > for each facility, but in many reports, no data is present. In other
    > reports, it appears fine. I hope I have not been too confusing, any clues on
    > how to fix this?
    >
    > "Ron de Bruin" wrote:
    >
    >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    >> the Data Validation cell.
    >>
    >> how do you update the cells when you change C6
    >>
    >> BTW
    >> >> >> list of facility numbers in row K that I used the for the data validation

    >> I see J in the code now ?
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >>
    >> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> > Thanks for the code. Here is what I tried:
    >> >
    >> > Sub test()
    >> > With Sheets("Report")
    >> > For Each cell In .Range("J1:J5")
    >> > .Range("C6").Value = cell.Value
    >> > .PrintOut preview:=True
    >> > Next cell
    >> > End With
    >> > End Sub
    >> >
    >> > I ran the sub, and it did not pull the data for all of the reports as it was
    >> > supposed to. As background info, I have all of the data in another
    >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    >> > selected in the data validation list. Any clues on what I am doing wrong?
    >> >
    >> > "Ron de Bruin" wrote:
    >> >
    >> >>
    >> >> Hi
    >> >>
    >> >> Try this with D1 as data validation cell that update your other data
    >> >> I use a sheet with the name Sheet1
    >> >>
    >> >> Delete preview:=True when it is working like you want
    >> >>
    >> >> Sub test()
    >> >> With Sheets("Sheet1")
    >> >> For Each cell In .Range("K1:K5")
    >> >> 'D1 is the data validation cell
    >> >> .Range("D1").Value = cell.Value
    >> >> .PrintOut preview:=True
    >> >> Next cell
    >> >> End With
    >> >> End Sub
    >> >>
    >> >>
    >> >> --
    >> >> Regards Ron de Bruin
    >> >> http://www.rondebruin.nl
    >> >>
    >> >>
    >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    >> >> >I will answer you when I come home from work
    >> >> >
    >> >> > --
    >> >> > Regards Ron de Bruin
    >> >> > http://www.rondebruin.nl
    >> >> >
    >> >> >
    >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    >> >> >> list of facility numbers in row K that I used the for the data validation
    >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    >> >> >> print. Any clue on how I would get started?
    >> >> >>
    >> >> >> "Ron de Bruin" wrote:
    >> >> >>
    >> >> >>> Hi SJC
    >> >> >>>
    >> >> >>> You can do it with a macro.
    >> >> >>> Do you want that ?
    >> >> >>>
    >> >> >>> Do you have a list with facility names on a sheet and use that
    >> >> >>> range for the Data Validation list ?
    >> >> >>>
    >> >> >>> --
    >> >> >>> Regards Ron de Bruin
    >> >> >>> http://www.rondebruin.nl
    >> >> >>>
    >> >> >>>
    >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >> >>> >I have created a workbook which reports facility data trends. I created a
    >> >> >>> > standard report to report this data for each facility. To create each
    >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    >> >> >>> > facility names to create a standard report for each facility. Obviously only
    >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    >> >> >>> > at a time. Thanks in advance for any help.
    >> >> >>> >
    >> >> >>>
    >> >> >>>
    >> >> >>>
    >> >> >
    >> >> >
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  27. #27
    SJC
    Guest

    Re: Printing data validation scenarios

    Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    for sharing the file. Thanks for all of your help thus far.

    "Ron de Bruin" wrote:

    > Hi SJC
    >
    > Can you send me the workbook private then I will look at it tomorrow
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > I'll tell you everything that I have in hopes to answer your question, as I
    > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > produces a one page report from my data which includes a table and two
    > > charts. My hope for this was to create a standard report that would
    > > automatically update for each of my 300 facilities. So on my report
    > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > worksheet, and a data validation listbox to choose which facility to display.
    > > On the 'report' worksheet, column J is my reference list for the data
    > > validation list. This list obviously was used to create the data validation
    > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > spreadsheet. So now I am trying to create a macro which will go through my
    > > data validation list and print one report for each facility. When I view
    > > each report on the spreadsheet using the data validation listbox, the report
    > > appears fine. However, when I run the sub to print, it produces one report
    > > for each facility, but in many reports, no data is present. In other
    > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > how to fix this?
    > >
    > > "Ron de Bruin" wrote:
    > >
    > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > >> the Data Validation cell.
    > >>
    > >> how do you update the cells when you change C6
    > >>
    > >> BTW
    > >> >> >> list of facility numbers in row K that I used the for the data validation
    > >> I see J in the code now ?
    > >>
    > >> --
    > >> Regards Ron de Bruin
    > >> http://www.rondebruin.nl
    > >>
    > >>
    > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> > Thanks for the code. Here is what I tried:
    > >> >
    > >> > Sub test()
    > >> > With Sheets("Report")
    > >> > For Each cell In .Range("J1:J5")
    > >> > .Range("C6").Value = cell.Value
    > >> > .PrintOut preview:=True
    > >> > Next cell
    > >> > End With
    > >> > End Sub
    > >> >
    > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > >> > supposed to. As background info, I have all of the data in another
    > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > >> >
    > >> > "Ron de Bruin" wrote:
    > >> >
    > >> >>
    > >> >> Hi
    > >> >>
    > >> >> Try this with D1 as data validation cell that update your other data
    > >> >> I use a sheet with the name Sheet1
    > >> >>
    > >> >> Delete preview:=True when it is working like you want
    > >> >>
    > >> >> Sub test()
    > >> >> With Sheets("Sheet1")
    > >> >> For Each cell In .Range("K1:K5")
    > >> >> 'D1 is the data validation cell
    > >> >> .Range("D1").Value = cell.Value
    > >> >> .PrintOut preview:=True
    > >> >> Next cell
    > >> >> End With
    > >> >> End Sub
    > >> >>
    > >> >>
    > >> >> --
    > >> >> Regards Ron de Bruin
    > >> >> http://www.rondebruin.nl
    > >> >>
    > >> >>
    > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > >> >> >I will answer you when I come home from work
    > >> >> >
    > >> >> > --
    > >> >> > Regards Ron de Bruin
    > >> >> > http://www.rondebruin.nl
    > >> >> >
    > >> >> >
    > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > >> >> >> list of facility numbers in row K that I used the for the data validation
    > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > >> >> >> print. Any clue on how I would get started?
    > >> >> >>
    > >> >> >> "Ron de Bruin" wrote:
    > >> >> >>
    > >> >> >>> Hi SJC
    > >> >> >>>
    > >> >> >>> You can do it with a macro.
    > >> >> >>> Do you want that ?
    > >> >> >>>
    > >> >> >>> Do you have a list with facility names on a sheet and use that
    > >> >> >>> range for the Data Validation list ?
    > >> >> >>>
    > >> >> >>> --
    > >> >> >>> Regards Ron de Bruin
    > >> >> >>> http://www.rondebruin.nl
    > >> >> >>>
    > >> >> >>>
    > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > >> >> >>> > standard report to report this data for each facility. To create each
    > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > >> >> >>> > at a time. Thanks in advance for any help.
    > >> >> >>> >
    > >> >> >>>
    > >> >> >>>
    > >> >> >>>
    > >> >> >
    > >> >> >
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  28. #28
    Dave Peterson
    Guest

    Re: Printing data validation scenarios

    What's the range that contains the data|Validation entries (on worksheet Data)?

    I think you just want this:

    Sub test()
    With Sheets("Report")
    For Each cell In worksheets("data").Range("datavalrangenamehere")
    .Range("C6").Value = cell.Value
    'I'd add
    application.calculate 'just in case
    .PrintOut preview:=True
    Next cell
    End With
    End Sub

    Maybe it's that simple change.


    SJC wrote:
    >
    > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    > for sharing the file. Thanks for all of your help thus far.
    >
    > "Ron de Bruin" wrote:
    >
    > > Hi SJC
    > >
    > > Can you send me the workbook private then I will look at it tomorrow
    > >
    > > --
    > > Regards Ron de Bruin
    > > http://www.rondebruin.nl
    > >
    > >
    > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > I'll tell you everything that I have in hopes to answer your question, as I
    > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > > produces a one page report from my data which includes a table and two
    > > > charts. My hope for this was to create a standard report that would
    > > > automatically update for each of my 300 facilities. So on my report
    > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > > worksheet, and a data validation listbox to choose which facility to display.
    > > > On the 'report' worksheet, column J is my reference list for the data
    > > > validation list. This list obviously was used to create the data validation
    > > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > > spreadsheet. So now I am trying to create a macro which will go through my
    > > > data validation list and print one report for each facility. When I view
    > > > each report on the spreadsheet using the data validation listbox, the report
    > > > appears fine. However, when I run the sub to print, it produces one report
    > > > for each facility, but in many reports, no data is present. In other
    > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > > how to fix this?
    > > >
    > > > "Ron de Bruin" wrote:
    > > >
    > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > > >> the Data Validation cell.
    > > >>
    > > >> how do you update the cells when you change C6
    > > >>
    > > >> BTW
    > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > >> I see J in the code now ?
    > > >>
    > > >> --
    > > >> Regards Ron de Bruin
    > > >> http://www.rondebruin.nl
    > > >>
    > > >>
    > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > >> > Thanks for the code. Here is what I tried:
    > > >> >
    > > >> > Sub test()
    > > >> > With Sheets("Report")
    > > >> > For Each cell In .Range("J1:J5")
    > > >> > .Range("C6").Value = cell.Value
    > > >> > .PrintOut preview:=True
    > > >> > Next cell
    > > >> > End With
    > > >> > End Sub
    > > >> >
    > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > > >> > supposed to. As background info, I have all of the data in another
    > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > > >> >
    > > >> > "Ron de Bruin" wrote:
    > > >> >
    > > >> >>
    > > >> >> Hi
    > > >> >>
    > > >> >> Try this with D1 as data validation cell that update your other data
    > > >> >> I use a sheet with the name Sheet1
    > > >> >>
    > > >> >> Delete preview:=True when it is working like you want
    > > >> >>
    > > >> >> Sub test()
    > > >> >> With Sheets("Sheet1")
    > > >> >> For Each cell In .Range("K1:K5")
    > > >> >> 'D1 is the data validation cell
    > > >> >> .Range("D1").Value = cell.Value
    > > >> >> .PrintOut preview:=True
    > > >> >> Next cell
    > > >> >> End With
    > > >> >> End Sub
    > > >> >>
    > > >> >>
    > > >> >> --
    > > >> >> Regards Ron de Bruin
    > > >> >> http://www.rondebruin.nl
    > > >> >>
    > > >> >>
    > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > > >> >> >I will answer you when I come home from work
    > > >> >> >
    > > >> >> > --
    > > >> >> > Regards Ron de Bruin
    > > >> >> > http://www.rondebruin.nl
    > > >> >> >
    > > >> >> >
    > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > > >> >> >> print. Any clue on how I would get started?
    > > >> >> >>
    > > >> >> >> "Ron de Bruin" wrote:
    > > >> >> >>
    > > >> >> >>> Hi SJC
    > > >> >> >>>
    > > >> >> >>> You can do it with a macro.
    > > >> >> >>> Do you want that ?
    > > >> >> >>>
    > > >> >> >>> Do you have a list with facility names on a sheet and use that
    > > >> >> >>> range for the Data Validation list ?
    > > >> >> >>>
    > > >> >> >>> --
    > > >> >> >>> Regards Ron de Bruin
    > > >> >> >>> http://www.rondebruin.nl
    > > >> >> >>>
    > > >> >> >>>
    > > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > > >> >> >>> > standard report to report this data for each facility. To create each
    > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > > >> >> >>> > at a time. Thanks in advance for any help.
    > > >> >> >>> >
    > > >> >> >>>
    > > >> >> >>>
    > > >> >> >>>
    > > >> >> >
    > > >> >> >
    > > >> >>
    > > >> >>
    > > >> >>
    > > >>
    > > >>
    > > >>

    > >
    > >
    > >


    --

    Dave Peterson

  29. #29
    SJC
    Guest

    Re: Printing data validation scenarios

    On the data spreadsheet, the facility number, of which I used to create the
    validation list is in column A. However, on the report sheet, I have the
    facility list in column J which was directly used to make the validation
    list. So then, everything to do with the validation list occurs on the
    report spreadsheet, only the actual data is on the data spreadsheet. The
    validation list in cell C6 is on the report spreadsheet. If I am making any
    kind of sense, what would be the best way to fix this? The code thus far
    doesn't seem to work.

    "Dave Peterson" wrote:

    > What's the range that contains the data|Validation entries (on worksheet Data)?
    >
    > I think you just want this:
    >
    > Sub test()
    > With Sheets("Report")
    > For Each cell In worksheets("data").Range("datavalrangenamehere")
    > .Range("C6").Value = cell.Value
    > 'I'd add
    > application.calculate 'just in case
    > .PrintOut preview:=True
    > Next cell
    > End With
    > End Sub
    >
    > Maybe it's that simple change.
    >
    >
    > SJC wrote:
    > >
    > > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    > > for sharing the file. Thanks for all of your help thus far.
    > >
    > > "Ron de Bruin" wrote:
    > >
    > > > Hi SJC
    > > >
    > > > Can you send me the workbook private then I will look at it tomorrow
    > > >
    > > > --
    > > > Regards Ron de Bruin
    > > > http://www.rondebruin.nl
    > > >
    > > >
    > > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > I'll tell you everything that I have in hopes to answer your question, as I
    > > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > > > produces a one page report from my data which includes a table and two
    > > > > charts. My hope for this was to create a standard report that would
    > > > > automatically update for each of my 300 facilities. So on my report
    > > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > > > worksheet, and a data validation listbox to choose which facility to display.
    > > > > On the 'report' worksheet, column J is my reference list for the data
    > > > > validation list. This list obviously was used to create the data validation
    > > > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > > > spreadsheet. So now I am trying to create a macro which will go through my
    > > > > data validation list and print one report for each facility. When I view
    > > > > each report on the spreadsheet using the data validation listbox, the report
    > > > > appears fine. However, when I run the sub to print, it produces one report
    > > > > for each facility, but in many reports, no data is present. In other
    > > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > > > how to fix this?
    > > > >
    > > > > "Ron de Bruin" wrote:
    > > > >
    > > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > > > >> the Data Validation cell.
    > > > >>
    > > > >> how do you update the cells when you change C6
    > > > >>
    > > > >> BTW
    > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > >> I see J in the code now ?
    > > > >>
    > > > >> --
    > > > >> Regards Ron de Bruin
    > > > >> http://www.rondebruin.nl
    > > > >>
    > > > >>
    > > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > >> > Thanks for the code. Here is what I tried:
    > > > >> >
    > > > >> > Sub test()
    > > > >> > With Sheets("Report")
    > > > >> > For Each cell In .Range("J1:J5")
    > > > >> > .Range("C6").Value = cell.Value
    > > > >> > .PrintOut preview:=True
    > > > >> > Next cell
    > > > >> > End With
    > > > >> > End Sub
    > > > >> >
    > > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > > > >> > supposed to. As background info, I have all of the data in another
    > > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > > > >> >
    > > > >> > "Ron de Bruin" wrote:
    > > > >> >
    > > > >> >>
    > > > >> >> Hi
    > > > >> >>
    > > > >> >> Try this with D1 as data validation cell that update your other data
    > > > >> >> I use a sheet with the name Sheet1
    > > > >> >>
    > > > >> >> Delete preview:=True when it is working like you want
    > > > >> >>
    > > > >> >> Sub test()
    > > > >> >> With Sheets("Sheet1")
    > > > >> >> For Each cell In .Range("K1:K5")
    > > > >> >> 'D1 is the data validation cell
    > > > >> >> .Range("D1").Value = cell.Value
    > > > >> >> .PrintOut preview:=True
    > > > >> >> Next cell
    > > > >> >> End With
    > > > >> >> End Sub
    > > > >> >>
    > > > >> >>
    > > > >> >> --
    > > > >> >> Regards Ron de Bruin
    > > > >> >> http://www.rondebruin.nl
    > > > >> >>
    > > > >> >>
    > > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > > > >> >> >I will answer you when I come home from work
    > > > >> >> >
    > > > >> >> > --
    > > > >> >> > Regards Ron de Bruin
    > > > >> >> > http://www.rondebruin.nl
    > > > >> >> >
    > > > >> >> >
    > > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > > > >> >> >> print. Any clue on how I would get started?
    > > > >> >> >>
    > > > >> >> >> "Ron de Bruin" wrote:
    > > > >> >> >>
    > > > >> >> >>> Hi SJC
    > > > >> >> >>>
    > > > >> >> >>> You can do it with a macro.
    > > > >> >> >>> Do you want that ?
    > > > >> >> >>>
    > > > >> >> >>> Do you have a list with facility names on a sheet and use that
    > > > >> >> >>> range for the Data Validation list ?
    > > > >> >> >>>
    > > > >> >> >>> --
    > > > >> >> >>> Regards Ron de Bruin
    > > > >> >> >>> http://www.rondebruin.nl
    > > > >> >> >>>
    > > > >> >> >>>
    > > > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > > > >> >> >>> > standard report to report this data for each facility. To create each
    > > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > > > >> >> >>> > at a time. Thanks in advance for any help.
    > > > >> >> >>> >
    > > > >> >> >>>
    > > > >> >> >>>
    > > > >> >> >>>
    > > > >> >> >
    > > > >> >> >
    > > > >> >>
    > > > >> >>
    > > > >> >>
    > > > >>
    > > > >>
    > > > >>
    > > >
    > > >
    > > >

    >
    > --
    >
    > Dave Peterson
    >


  30. #30
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    Hi SJC

    Send it to me private and I look at it this weekend
    My e-mail is on my site

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    > Yes, I had changed the range so that it was correct. I was able to run the
    > code, and it did produce a report for each facility. However, some
    > facilities did not have the data on the report. I did remember I put
    > together a sample file, but it does not appear that one can use attachments
    > on this board. Thanks for all of your help thus far.
    >
    > "Dave Peterson" wrote:
    >
    >> Ron guessed that your validation list was in K1:K5
    >> For Each cell In .Range("K1:K5")
    >>
    >> If it's in column J, change that address to what it should be
    >> For Each cell In .Range("Jx:Jy")
    >>
    >> (change x and y to the row numbers that apply.)
    >>
    >> SJC wrote:
    >> >
    >> > On the data spreadsheet, the facility number, of which I used to create the
    >> > validation list is in column A. However, on the report sheet, I have the
    >> > facility list in column J which was directly used to make the validation
    >> > list. So then, everything to do with the validation list occurs on the
    >> > report spreadsheet, only the actual data is on the data spreadsheet. The
    >> > validation list in cell C6 is on the report spreadsheet. If I am making any
    >> > kind of sense, what would be the best way to fix this? The code thus far
    >> > doesn't seem to work.
    >> >
    >> > "Dave Peterson" wrote:
    >> >
    >> > > What's the range that contains the data|Validation entries (on worksheet Data)?
    >> > >
    >> > > I think you just want this:
    >> > >
    >> > > Sub test()
    >> > > With Sheets("Report")
    >> > > For Each cell In worksheets("data").Range("datavalrangenamehere")
    >> > > .Range("C6").Value = cell.Value
    >> > > 'I'd add
    >> > > application.calculate 'just in case
    >> > > .PrintOut preview:=True
    >> > > Next cell
    >> > > End With
    >> > > End Sub
    >> > >
    >> > > Maybe it's that simple change.
    >> > >
    >> > >
    >> > > SJC wrote:
    >> > > >
    >> > > > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    >> > > > for sharing the file. Thanks for all of your help thus far.
    >> > > >
    >> > > > "Ron de Bruin" wrote:
    >> > > >
    >> > > > > Hi SJC
    >> > > > >
    >> > > > > Can you send me the workbook private then I will look at it tomorrow
    >> > > > >
    >> > > > > --
    >> > > > > Regards Ron de Bruin
    >> > > > > http://www.rondebruin.nl
    >> > > > >
    >> > > > >
    >> > > > > "SJC" <[email protected]> wrote in message news:[email protected]...
    >> > > > > > I'll tell you everything that I have in hopes to answer your question, as I
    >> > > > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    >> > > > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    >> > > > > > produces a one page report from my data which includes a table and two
    >> > > > > > charts. My hope for this was to create a standard report that would
    >> > > > > > automatically update for each of my 300 facilities. So on my report
    >> > > > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    >> > > > > > worksheet, and a data validation listbox to choose which facility to display.
    >> > > > > > On the 'report' worksheet, column J is my reference list for the data
    >> > > > > > validation list. This list obviously was used to create the data validation
    >> > > > > > listbox, and to compile this list, I just pasted links from the 'Data'
    >> > > > > > spreadsheet. So now I am trying to create a macro which will go through my
    >> > > > > > data validation list and print one report for each facility. When I view
    >> > > > > > each report on the spreadsheet using the data validation listbox, the report
    >> > > > > > appears fine. However, when I run the sub to print, it produces one report
    >> > > > > > for each facility, but in many reports, no data is present. In other
    >> > > > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    >> > > > > > how to fix this?
    >> > > > > >
    >> > > > > > "Ron de Bruin" wrote:
    >> > > > > >
    >> > > > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    >> > > > > >> the Data Validation cell.
    >> > > > > >>
    >> > > > > >> how do you update the cells when you change C6
    >> > > > > >>
    >> > > > > >> BTW
    >> > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    >> > > > > >> I see J in the code now ?
    >> > > > > >>
    >> > > > > >> --
    >> > > > > >> Regards Ron de Bruin
    >> > > > > >> http://www.rondebruin.nl
    >> > > > > >>
    >> > > > > >>
    >> > > > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> > > > > >> > Thanks for the code. Here is what I tried:
    >> > > > > >> >
    >> > > > > >> > Sub test()
    >> > > > > >> > With Sheets("Report")
    >> > > > > >> > For Each cell In .Range("J1:J5")
    >> > > > > >> > .Range("C6").Value = cell.Value
    >> > > > > >> > .PrintOut preview:=True
    >> > > > > >> > Next cell
    >> > > > > >> > End With
    >> > > > > >> > End Sub
    >> > > > > >> >
    >> > > > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    >> > > > > >> > supposed to. As background info, I have all of the data in another
    >> > > > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    >> > > > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    >> > > > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    >> > > > > >> >
    >> > > > > >> > "Ron de Bruin" wrote:
    >> > > > > >> >
    >> > > > > >> >>
    >> > > > > >> >> Hi
    >> > > > > >> >>
    >> > > > > >> >> Try this with D1 as data validation cell that update your other data
    >> > > > > >> >> I use a sheet with the name Sheet1
    >> > > > > >> >>
    >> > > > > >> >> Delete preview:=True when it is working like you want
    >> > > > > >> >>
    >> > > > > >> >> Sub test()
    >> > > > > >> >> With Sheets("Sheet1")
    >> > > > > >> >> For Each cell In .Range("K1:K5")
    >> > > > > >> >> 'D1 is the data validation cell
    >> > > > > >> >> .Range("D1").Value = cell.Value
    >> > > > > >> >> .PrintOut preview:=True
    >> > > > > >> >> Next cell
    >> > > > > >> >> End With
    >> > > > > >> >> End Sub
    >> > > > > >> >>
    >> > > > > >> >>
    >> > > > > >> >> --
    >> > > > > >> >> Regards Ron de Bruin
    >> > > > > >> >> http://www.rondebruin.nl
    >> > > > > >> >>
    >> > > > > >> >>
    >> > > > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    >> > > > > >> >> >I will answer you when I come home from work
    >> > > > > >> >> >
    >> > > > > >> >> > --
    >> > > > > >> >> > Regards Ron de Bruin
    >> > > > > >> >> > http://www.rondebruin.nl
    >> > > > > >> >> >
    >> > > > > >> >> >
    >> > > > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    >> > > > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    >> > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    >> > > > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    >> > > > > >> >> >> print. Any clue on how I would get started?
    >> > > > > >> >> >>
    >> > > > > >> >> >> "Ron de Bruin" wrote:
    >> > > > > >> >> >>
    >> > > > > >> >> >>> Hi SJC
    >> > > > > >> >> >>>
    >> > > > > >> >> >>> You can do it with a macro.
    >> > > > > >> >> >>> Do you want that ?
    >> > > > > >> >> >>>
    >> > > > > >> >> >>> Do you have a list with facility names on a sheet and use that
    >> > > > > >> >> >>> range for the Data Validation list ?
    >> > > > > >> >> >>>
    >> > > > > >> >> >>> --
    >> > > > > >> >> >>> Regards Ron de Bruin
    >> > > > > >> >> >>> http://www.rondebruin.nl
    >> > > > > >> >> >>>
    >> > > > > >> >> >>>
    >> > > > > >> >> >>> "SJC" <[email protected]> wrote in message
    >> > > > > >> >> >>> news:[email protected]...
    >> > > > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    >> > > > > >> >> >>> > standard report to report this data for each facility. To create each
    >> > > > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    >> > > > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    >> > > > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    >> > > > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    >> > > > > >> >> >>> > at a time. Thanks in advance for any help.
    >> > > > > >> >> >>> >
    >> > > > > >> >> >>>
    >> > > > > >> >> >>>
    >> > > > > >> >> >>>
    >> > > > > >> >> >
    >> > > > > >> >> >
    >> > > > > >> >>
    >> > > > > >> >>
    >> > > > > >> >>
    >> > > > > >>
    >> > > > > >>
    >> > > > > >>
    >> > > > >
    >> > > > >
    >> > > > >
    >> > >
    >> > > --
    >> > >
    >> > > Dave Peterson
    >> > >

    >>
    >> --
    >>
    >> Dave Peterson
    >>




  31. #31
    SJC
    Guest

    Re: Printing data validation scenarios

    Yes, I had changed the range so that it was correct. I was able to run the
    code, and it did produce a report for each facility. However, some
    facilities did not have the data on the report. I did remember I put
    together a sample file, but it does not appear that one can use attachments
    on this board. Thanks for all of your help thus far.

    "Dave Peterson" wrote:

    > Ron guessed that your validation list was in K1:K5
    > For Each cell In .Range("K1:K5")
    >
    > If it's in column J, change that address to what it should be
    > For Each cell In .Range("Jx:Jy")
    >
    > (change x and y to the row numbers that apply.)
    >
    > SJC wrote:
    > >
    > > On the data spreadsheet, the facility number, of which I used to create the
    > > validation list is in column A. However, on the report sheet, I have the
    > > facility list in column J which was directly used to make the validation
    > > list. So then, everything to do with the validation list occurs on the
    > > report spreadsheet, only the actual data is on the data spreadsheet. The
    > > validation list in cell C6 is on the report spreadsheet. If I am making any
    > > kind of sense, what would be the best way to fix this? The code thus far
    > > doesn't seem to work.
    > >
    > > "Dave Peterson" wrote:
    > >
    > > > What's the range that contains the data|Validation entries (on worksheet Data)?
    > > >
    > > > I think you just want this:
    > > >
    > > > Sub test()
    > > > With Sheets("Report")
    > > > For Each cell In worksheets("data").Range("datavalrangenamehere")
    > > > .Range("C6").Value = cell.Value
    > > > 'I'd add
    > > > application.calculate 'just in case
    > > > .PrintOut preview:=True
    > > > Next cell
    > > > End With
    > > > End Sub
    > > >
    > > > Maybe it's that simple change.
    > > >
    > > >
    > > > SJC wrote:
    > > > >
    > > > > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    > > > > for sharing the file. Thanks for all of your help thus far.
    > > > >
    > > > > "Ron de Bruin" wrote:
    > > > >
    > > > > > Hi SJC
    > > > > >
    > > > > > Can you send me the workbook private then I will look at it tomorrow
    > > > > >
    > > > > > --
    > > > > > Regards Ron de Bruin
    > > > > > http://www.rondebruin.nl
    > > > > >
    > > > > >
    > > > > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > > I'll tell you everything that I have in hopes to answer your question, as I
    > > > > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > > > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > > > > > produces a one page report from my data which includes a table and two
    > > > > > > charts. My hope for this was to create a standard report that would
    > > > > > > automatically update for each of my 300 facilities. So on my report
    > > > > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > > > > > worksheet, and a data validation listbox to choose which facility to display.
    > > > > > > On the 'report' worksheet, column J is my reference list for the data
    > > > > > > validation list. This list obviously was used to create the data validation
    > > > > > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > > > > > spreadsheet. So now I am trying to create a macro which will go through my
    > > > > > > data validation list and print one report for each facility. When I view
    > > > > > > each report on the spreadsheet using the data validation listbox, the report
    > > > > > > appears fine. However, when I run the sub to print, it produces one report
    > > > > > > for each facility, but in many reports, no data is present. In other
    > > > > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > > > > > how to fix this?
    > > > > > >
    > > > > > > "Ron de Bruin" wrote:
    > > > > > >
    > > > > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > > > > > >> the Data Validation cell.
    > > > > > >>
    > > > > > >> how do you update the cells when you change C6
    > > > > > >>
    > > > > > >> BTW
    > > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > > > >> I see J in the code now ?
    > > > > > >>
    > > > > > >> --
    > > > > > >> Regards Ron de Bruin
    > > > > > >> http://www.rondebruin.nl
    > > > > > >>
    > > > > > >>
    > > > > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > >> > Thanks for the code. Here is what I tried:
    > > > > > >> >
    > > > > > >> > Sub test()
    > > > > > >> > With Sheets("Report")
    > > > > > >> > For Each cell In .Range("J1:J5")
    > > > > > >> > .Range("C6").Value = cell.Value
    > > > > > >> > .PrintOut preview:=True
    > > > > > >> > Next cell
    > > > > > >> > End With
    > > > > > >> > End Sub
    > > > > > >> >
    > > > > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > > > > > >> > supposed to. As background info, I have all of the data in another
    > > > > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > > > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > > > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > > > > > >> >
    > > > > > >> > "Ron de Bruin" wrote:
    > > > > > >> >
    > > > > > >> >>
    > > > > > >> >> Hi
    > > > > > >> >>
    > > > > > >> >> Try this with D1 as data validation cell that update your other data
    > > > > > >> >> I use a sheet with the name Sheet1
    > > > > > >> >>
    > > > > > >> >> Delete preview:=True when it is working like you want
    > > > > > >> >>
    > > > > > >> >> Sub test()
    > > > > > >> >> With Sheets("Sheet1")
    > > > > > >> >> For Each cell In .Range("K1:K5")
    > > > > > >> >> 'D1 is the data validation cell
    > > > > > >> >> .Range("D1").Value = cell.Value
    > > > > > >> >> .PrintOut preview:=True
    > > > > > >> >> Next cell
    > > > > > >> >> End With
    > > > > > >> >> End Sub
    > > > > > >> >>
    > > > > > >> >>
    > > > > > >> >> --
    > > > > > >> >> Regards Ron de Bruin
    > > > > > >> >> http://www.rondebruin.nl
    > > > > > >> >>
    > > > > > >> >>
    > > > > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > > > > > >> >> >I will answer you when I come home from work
    > > > > > >> >> >
    > > > > > >> >> > --
    > > > > > >> >> > Regards Ron de Bruin
    > > > > > >> >> > http://www.rondebruin.nl
    > > > > > >> >> >
    > > > > > >> >> >
    > > > > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > > > > > >> >> >> print. Any clue on how I would get started?
    > > > > > >> >> >>
    > > > > > >> >> >> "Ron de Bruin" wrote:
    > > > > > >> >> >>
    > > > > > >> >> >>> Hi SJC
    > > > > > >> >> >>>
    > > > > > >> >> >>> You can do it with a macro.
    > > > > > >> >> >>> Do you want that ?
    > > > > > >> >> >>>
    > > > > > >> >> >>> Do you have a list with facility names on a sheet and use that
    > > > > > >> >> >>> range for the Data Validation list ?
    > > > > > >> >> >>>
    > > > > > >> >> >>> --
    > > > > > >> >> >>> Regards Ron de Bruin
    > > > > > >> >> >>> http://www.rondebruin.nl
    > > > > > >> >> >>>
    > > > > > >> >> >>>
    > > > > > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > > > > > >> >> >>> > standard report to report this data for each facility. To create each
    > > > > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > > > > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > > > > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > > > > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > > > > > >> >> >>> > at a time. Thanks in advance for any help.
    > > > > > >> >> >>> >
    > > > > > >> >> >>>
    > > > > > >> >> >>>
    > > > > > >> >> >>>
    > > > > > >> >> >
    > > > > > >> >> >
    > > > > > >> >>
    > > > > > >> >>
    > > > > > >> >>
    > > > > > >>
    > > > > > >>
    > > > > > >>
    > > > > >
    > > > > >
    > > > > >
    > > >
    > > > --
    > > >
    > > > Dave Peterson
    > > >

    >
    > --
    >
    > Dave Peterson
    >


  32. #32
    Dave Peterson
    Guest

    Re: Printing data validation scenarios

    Ron guessed that your validation list was in K1:K5
    For Each cell In .Range("K1:K5")

    If it's in column J, change that address to what it should be
    For Each cell In .Range("Jx:Jy")

    (change x and y to the row numbers that apply.)

    SJC wrote:
    >
    > On the data spreadsheet, the facility number, of which I used to create the
    > validation list is in column A. However, on the report sheet, I have the
    > facility list in column J which was directly used to make the validation
    > list. So then, everything to do with the validation list occurs on the
    > report spreadsheet, only the actual data is on the data spreadsheet. The
    > validation list in cell C6 is on the report spreadsheet. If I am making any
    > kind of sense, what would be the best way to fix this? The code thus far
    > doesn't seem to work.
    >
    > "Dave Peterson" wrote:
    >
    > > What's the range that contains the data|Validation entries (on worksheet Data)?
    > >
    > > I think you just want this:
    > >
    > > Sub test()
    > > With Sheets("Report")
    > > For Each cell In worksheets("data").Range("datavalrangenamehere")
    > > .Range("C6").Value = cell.Value
    > > 'I'd add
    > > application.calculate 'just in case
    > > .PrintOut preview:=True
    > > Next cell
    > > End With
    > > End Sub
    > >
    > > Maybe it's that simple change.
    > >
    > >
    > > SJC wrote:
    > > >
    > > > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    > > > for sharing the file. Thanks for all of your help thus far.
    > > >
    > > > "Ron de Bruin" wrote:
    > > >
    > > > > Hi SJC
    > > > >
    > > > > Can you send me the workbook private then I will look at it tomorrow
    > > > >
    > > > > --
    > > > > Regards Ron de Bruin
    > > > > http://www.rondebruin.nl
    > > > >
    > > > >
    > > > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > > I'll tell you everything that I have in hopes to answer your question, as I
    > > > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > > > > produces a one page report from my data which includes a table and two
    > > > > > charts. My hope for this was to create a standard report that would
    > > > > > automatically update for each of my 300 facilities. So on my report
    > > > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > > > > worksheet, and a data validation listbox to choose which facility to display.
    > > > > > On the 'report' worksheet, column J is my reference list for the data
    > > > > > validation list. This list obviously was used to create the data validation
    > > > > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > > > > spreadsheet. So now I am trying to create a macro which will go through my
    > > > > > data validation list and print one report for each facility. When I view
    > > > > > each report on the spreadsheet using the data validation listbox, the report
    > > > > > appears fine. However, when I run the sub to print, it produces one report
    > > > > > for each facility, but in many reports, no data is present. In other
    > > > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > > > > how to fix this?
    > > > > >
    > > > > > "Ron de Bruin" wrote:
    > > > > >
    > > > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > > > > >> the Data Validation cell.
    > > > > >>
    > > > > >> how do you update the cells when you change C6
    > > > > >>
    > > > > >> BTW
    > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > > >> I see J in the code now ?
    > > > > >>
    > > > > >> --
    > > > > >> Regards Ron de Bruin
    > > > > >> http://www.rondebruin.nl
    > > > > >>
    > > > > >>
    > > > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > >> > Thanks for the code. Here is what I tried:
    > > > > >> >
    > > > > >> > Sub test()
    > > > > >> > With Sheets("Report")
    > > > > >> > For Each cell In .Range("J1:J5")
    > > > > >> > .Range("C6").Value = cell.Value
    > > > > >> > .PrintOut preview:=True
    > > > > >> > Next cell
    > > > > >> > End With
    > > > > >> > End Sub
    > > > > >> >
    > > > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > > > > >> > supposed to. As background info, I have all of the data in another
    > > > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > > > > >> >
    > > > > >> > "Ron de Bruin" wrote:
    > > > > >> >
    > > > > >> >>
    > > > > >> >> Hi
    > > > > >> >>
    > > > > >> >> Try this with D1 as data validation cell that update your other data
    > > > > >> >> I use a sheet with the name Sheet1
    > > > > >> >>
    > > > > >> >> Delete preview:=True when it is working like you want
    > > > > >> >>
    > > > > >> >> Sub test()
    > > > > >> >> With Sheets("Sheet1")
    > > > > >> >> For Each cell In .Range("K1:K5")
    > > > > >> >> 'D1 is the data validation cell
    > > > > >> >> .Range("D1").Value = cell.Value
    > > > > >> >> .PrintOut preview:=True
    > > > > >> >> Next cell
    > > > > >> >> End With
    > > > > >> >> End Sub
    > > > > >> >>
    > > > > >> >>
    > > > > >> >> --
    > > > > >> >> Regards Ron de Bruin
    > > > > >> >> http://www.rondebruin.nl
    > > > > >> >>
    > > > > >> >>
    > > > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > > > > >> >> >I will answer you when I come home from work
    > > > > >> >> >
    > > > > >> >> > --
    > > > > >> >> > Regards Ron de Bruin
    > > > > >> >> > http://www.rondebruin.nl
    > > > > >> >> >
    > > > > >> >> >
    > > > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > > > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > > > > >> >> >> print. Any clue on how I would get started?
    > > > > >> >> >>
    > > > > >> >> >> "Ron de Bruin" wrote:
    > > > > >> >> >>
    > > > > >> >> >>> Hi SJC
    > > > > >> >> >>>
    > > > > >> >> >>> You can do it with a macro.
    > > > > >> >> >>> Do you want that ?
    > > > > >> >> >>>
    > > > > >> >> >>> Do you have a list with facility names on a sheet and use that
    > > > > >> >> >>> range for the Data Validation list ?
    > > > > >> >> >>>
    > > > > >> >> >>> --
    > > > > >> >> >>> Regards Ron de Bruin
    > > > > >> >> >>> http://www.rondebruin.nl
    > > > > >> >> >>>
    > > > > >> >> >>>
    > > > > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > > > > >> >> >>> > standard report to report this data for each facility. To create each
    > > > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > > > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > > > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > > > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > > > > >> >> >>> > at a time. Thanks in advance for any help.
    > > > > >> >> >>> >
    > > > > >> >> >>>
    > > > > >> >> >>>
    > > > > >> >> >>>
    > > > > >> >> >
    > > > > >> >> >
    > > > > >> >>
    > > > > >> >>
    > > > > >> >>
    > > > > >>
    > > > > >>
    > > > > >>
    > > > >
    > > > >
    > > > >

    > >
    > > --
    > >
    > > Dave Peterson
    > >


    --

    Dave Peterson

  33. #33
    SJC
    Guest

    Printing data validation scenarios

    I have created a workbook which reports facility data trends. I created a
    standard report to report this data for each facility. To create each
    facility's scenario, I used a data validation list with a drop box of
    facility names to create a standard report for each facility. Obviously only
    one report may be seen and printed at one time. Is it possible to print out
    all scenarios in the validation list, or do I need to print each report one
    at a time. Thanks in advance for any help.


  34. #34
    Dave Peterson
    Guest

    Re: Printing data validation scenarios

    What's the range that contains the data|Validation entries (on worksheet Data)?

    I think you just want this:

    Sub test()
    With Sheets("Report")
    For Each cell In worksheets("data").Range("datavalrangenamehere")
    .Range("C6").Value = cell.Value
    'I'd add
    application.calculate 'just in case
    .PrintOut preview:=True
    Next cell
    End With
    End Sub

    Maybe it's that simple change.


    SJC wrote:
    >
    > Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    > for sharing the file. Thanks for all of your help thus far.
    >
    > "Ron de Bruin" wrote:
    >
    > > Hi SJC
    > >
    > > Can you send me the workbook private then I will look at it tomorrow
    > >
    > > --
    > > Regards Ron de Bruin
    > > http://www.rondebruin.nl
    > >
    > >
    > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > > I'll tell you everything that I have in hopes to answer your question, as I
    > > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > > produces a one page report from my data which includes a table and two
    > > > charts. My hope for this was to create a standard report that would
    > > > automatically update for each of my 300 facilities. So on my report
    > > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > > worksheet, and a data validation listbox to choose which facility to display.
    > > > On the 'report' worksheet, column J is my reference list for the data
    > > > validation list. This list obviously was used to create the data validation
    > > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > > spreadsheet. So now I am trying to create a macro which will go through my
    > > > data validation list and print one report for each facility. When I view
    > > > each report on the spreadsheet using the data validation listbox, the report
    > > > appears fine. However, when I run the sub to print, it produces one report
    > > > for each facility, but in many reports, no data is present. In other
    > > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > > how to fix this?
    > > >
    > > > "Ron de Bruin" wrote:
    > > >
    > > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > > >> the Data Validation cell.
    > > >>
    > > >> how do you update the cells when you change C6
    > > >>
    > > >> BTW
    > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > >> I see J in the code now ?
    > > >>
    > > >> --
    > > >> Regards Ron de Bruin
    > > >> http://www.rondebruin.nl
    > > >>
    > > >>
    > > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > >> > Thanks for the code. Here is what I tried:
    > > >> >
    > > >> > Sub test()
    > > >> > With Sheets("Report")
    > > >> > For Each cell In .Range("J1:J5")
    > > >> > .Range("C6").Value = cell.Value
    > > >> > .PrintOut preview:=True
    > > >> > Next cell
    > > >> > End With
    > > >> > End Sub
    > > >> >
    > > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > > >> > supposed to. As background info, I have all of the data in another
    > > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > > >> >
    > > >> > "Ron de Bruin" wrote:
    > > >> >
    > > >> >>
    > > >> >> Hi
    > > >> >>
    > > >> >> Try this with D1 as data validation cell that update your other data
    > > >> >> I use a sheet with the name Sheet1
    > > >> >>
    > > >> >> Delete preview:=True when it is working like you want
    > > >> >>
    > > >> >> Sub test()
    > > >> >> With Sheets("Sheet1")
    > > >> >> For Each cell In .Range("K1:K5")
    > > >> >> 'D1 is the data validation cell
    > > >> >> .Range("D1").Value = cell.Value
    > > >> >> .PrintOut preview:=True
    > > >> >> Next cell
    > > >> >> End With
    > > >> >> End Sub
    > > >> >>
    > > >> >>
    > > >> >> --
    > > >> >> Regards Ron de Bruin
    > > >> >> http://www.rondebruin.nl
    > > >> >>
    > > >> >>
    > > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > > >> >> >I will answer you when I come home from work
    > > >> >> >
    > > >> >> > --
    > > >> >> > Regards Ron de Bruin
    > > >> >> > http://www.rondebruin.nl
    > > >> >> >
    > > >> >> >
    > > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > > >> >> >> list of facility numbers in row K that I used the for the data validation
    > > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > > >> >> >> print. Any clue on how I would get started?
    > > >> >> >>
    > > >> >> >> "Ron de Bruin" wrote:
    > > >> >> >>
    > > >> >> >>> Hi SJC
    > > >> >> >>>
    > > >> >> >>> You can do it with a macro.
    > > >> >> >>> Do you want that ?
    > > >> >> >>>
    > > >> >> >>> Do you have a list with facility names on a sheet and use that
    > > >> >> >>> range for the Data Validation list ?
    > > >> >> >>>
    > > >> >> >>> --
    > > >> >> >>> Regards Ron de Bruin
    > > >> >> >>> http://www.rondebruin.nl
    > > >> >> >>>
    > > >> >> >>>
    > > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > > >> >> >>> > standard report to report this data for each facility. To create each
    > > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > > >> >> >>> > at a time. Thanks in advance for any help.
    > > >> >> >>> >
    > > >> >> >>>
    > > >> >> >>>
    > > >> >> >>>
    > > >> >> >
    > > >> >> >
    > > >> >>
    > > >> >>
    > > >> >>
    > > >>
    > > >>
    > > >>

    > >
    > >
    > >


    --

    Dave Peterson

  35. #35
    SJC
    Guest

    Re: Printing data validation scenarios

    Hi Ron, thanks for the offer, but I would get into some pretty decent trouble
    for sharing the file. Thanks for all of your help thus far.

    "Ron de Bruin" wrote:

    > Hi SJC
    >
    > Can you send me the workbook private then I will look at it tomorrow
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > I'll tell you everything that I have in hopes to answer your question, as I
    > > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > > produces a one page report from my data which includes a table and two
    > > charts. My hope for this was to create a standard report that would
    > > automatically update for each of my 300 facilities. So on my report
    > > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > > worksheet, and a data validation listbox to choose which facility to display.
    > > On the 'report' worksheet, column J is my reference list for the data
    > > validation list. This list obviously was used to create the data validation
    > > listbox, and to compile this list, I just pasted links from the 'Data'
    > > spreadsheet. So now I am trying to create a macro which will go through my
    > > data validation list and print one report for each facility. When I view
    > > each report on the spreadsheet using the data validation listbox, the report
    > > appears fine. However, when I run the sub to print, it produces one report
    > > for each facility, but in many reports, no data is present. In other
    > > reports, it appears fine. I hope I have not been too confusing, any clues on
    > > how to fix this?
    > >
    > > "Ron de Bruin" wrote:
    > >
    > >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > >> the Data Validation cell.
    > >>
    > >> how do you update the cells when you change C6
    > >>
    > >> BTW
    > >> >> >> list of facility numbers in row K that I used the for the data validation
    > >> I see J in the code now ?
    > >>
    > >> --
    > >> Regards Ron de Bruin
    > >> http://www.rondebruin.nl
    > >>
    > >>
    > >> "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> > Thanks for the code. Here is what I tried:
    > >> >
    > >> > Sub test()
    > >> > With Sheets("Report")
    > >> > For Each cell In .Range("J1:J5")
    > >> > .Range("C6").Value = cell.Value
    > >> > .PrintOut preview:=True
    > >> > Next cell
    > >> > End With
    > >> > End Sub
    > >> >
    > >> > I ran the sub, and it did not pull the data for all of the reports as it was
    > >> > supposed to. As background info, I have all of the data in another
    > >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    > >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    > >> > selected in the data validation list. Any clues on what I am doing wrong?
    > >> >
    > >> > "Ron de Bruin" wrote:
    > >> >
    > >> >>
    > >> >> Hi
    > >> >>
    > >> >> Try this with D1 as data validation cell that update your other data
    > >> >> I use a sheet with the name Sheet1
    > >> >>
    > >> >> Delete preview:=True when it is working like you want
    > >> >>
    > >> >> Sub test()
    > >> >> With Sheets("Sheet1")
    > >> >> For Each cell In .Range("K1:K5")
    > >> >> 'D1 is the data validation cell
    > >> >> .Range("D1").Value = cell.Value
    > >> >> .PrintOut preview:=True
    > >> >> Next cell
    > >> >> End With
    > >> >> End Sub
    > >> >>
    > >> >>
    > >> >> --
    > >> >> Regards Ron de Bruin
    > >> >> http://www.rondebruin.nl
    > >> >>
    > >> >>
    > >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > >> >> >I will answer you when I come home from work
    > >> >> >
    > >> >> > --
    > >> >> > Regards Ron de Bruin
    > >> >> > http://www.rondebruin.nl
    > >> >> >
    > >> >> >
    > >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > >> >> >> list of facility numbers in row K that I used the for the data validation
    > >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    > >> >> >> print. Any clue on how I would get started?
    > >> >> >>
    > >> >> >> "Ron de Bruin" wrote:
    > >> >> >>
    > >> >> >>> Hi SJC
    > >> >> >>>
    > >> >> >>> You can do it with a macro.
    > >> >> >>> Do you want that ?
    > >> >> >>>
    > >> >> >>> Do you have a list with facility names on a sheet and use that
    > >> >> >>> range for the Data Validation list ?
    > >> >> >>>
    > >> >> >>> --
    > >> >> >>> Regards Ron de Bruin
    > >> >> >>> http://www.rondebruin.nl
    > >> >> >>>
    > >> >> >>>
    > >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> >> >>> >I have created a workbook which reports facility data trends. I created a
    > >> >> >>> > standard report to report this data for each facility. To create each
    > >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    > >> >> >>> > facility names to create a standard report for each facility. Obviously only
    > >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    > >> >> >>> > at a time. Thanks in advance for any help.
    > >> >> >>> >
    > >> >> >>>
    > >> >> >>>
    > >> >> >>>
    > >> >> >
    > >> >> >
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  36. #36
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    Hi SJC

    Can you send me the workbook private then I will look at it tomorrow

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    > I'll tell you everything that I have in hopes to answer your question, as I
    > am still kind of new at this. In my workbook, I have two spreadsheets. My
    > 'Data' sheet holds all of my data. I then have a 'Report' sheet which
    > produces a one page report from my data which includes a table and two
    > charts. My hope for this was to create a standard report that would
    > automatically update for each of my 300 facilities. So on my report
    > worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    > worksheet, and a data validation listbox to choose which facility to display.
    > On the 'report' worksheet, column J is my reference list for the data
    > validation list. This list obviously was used to create the data validation
    > listbox, and to compile this list, I just pasted links from the 'Data'
    > spreadsheet. So now I am trying to create a macro which will go through my
    > data validation list and print one report for each facility. When I view
    > each report on the spreadsheet using the data validation listbox, the report
    > appears fine. However, when I run the sub to print, it produces one report
    > for each facility, but in many reports, no data is present. In other
    > reports, it appears fine. I hope I have not been too confusing, any clues on
    > how to fix this?
    >
    > "Ron de Bruin" wrote:
    >
    >> I was thinking that you use Vlookup formulas in your sheet with as lookup value
    >> the Data Validation cell.
    >>
    >> how do you update the cells when you change C6
    >>
    >> BTW
    >> >> >> list of facility numbers in row K that I used the for the data validation

    >> I see J in the code now ?
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >>
    >> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> > Thanks for the code. Here is what I tried:
    >> >
    >> > Sub test()
    >> > With Sheets("Report")
    >> > For Each cell In .Range("J1:J5")
    >> > .Range("C6").Value = cell.Value
    >> > .PrintOut preview:=True
    >> > Next cell
    >> > End With
    >> > End Sub
    >> >
    >> > I ran the sub, and it did not pull the data for all of the reports as it was
    >> > supposed to. As background info, I have all of the data in another
    >> > spreadsheet within the workbook named 'Data', and I have it linked to the
    >> > 'Report' spreadsheet. Then obviously the report changes by what name is
    >> > selected in the data validation list. Any clues on what I am doing wrong?
    >> >
    >> > "Ron de Bruin" wrote:
    >> >
    >> >>
    >> >> Hi
    >> >>
    >> >> Try this with D1 as data validation cell that update your other data
    >> >> I use a sheet with the name Sheet1
    >> >>
    >> >> Delete preview:=True when it is working like you want
    >> >>
    >> >> Sub test()
    >> >> With Sheets("Sheet1")
    >> >> For Each cell In .Range("K1:K5")
    >> >> 'D1 is the data validation cell
    >> >> .Range("D1").Value = cell.Value
    >> >> .PrintOut preview:=True
    >> >> Next cell
    >> >> End With
    >> >> End Sub
    >> >>
    >> >>
    >> >> --
    >> >> Regards Ron de Bruin
    >> >> http://www.rondebruin.nl
    >> >>
    >> >>
    >> >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    >> >> >I will answer you when I come home from work
    >> >> >
    >> >> > --
    >> >> > Regards Ron de Bruin
    >> >> > http://www.rondebruin.nl
    >> >> >
    >> >> >
    >> >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    >> >> >> list of facility numbers in row K that I used the for the data validation
    >> >> >> list, which of course is on the same spreadsheet as the report that I want to
    >> >> >> print. Any clue on how I would get started?
    >> >> >>
    >> >> >> "Ron de Bruin" wrote:
    >> >> >>
    >> >> >>> Hi SJC
    >> >> >>>
    >> >> >>> You can do it with a macro.
    >> >> >>> Do you want that ?
    >> >> >>>
    >> >> >>> Do you have a list with facility names on a sheet and use that
    >> >> >>> range for the Data Validation list ?
    >> >> >>>
    >> >> >>> --
    >> >> >>> Regards Ron de Bruin
    >> >> >>> http://www.rondebruin.nl
    >> >> >>>
    >> >> >>>
    >> >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >> >>> >I have created a workbook which reports facility data trends. I created a
    >> >> >>> > standard report to report this data for each facility. To create each
    >> >> >>> > facility's scenario, I used a data validation list with a drop box of
    >> >> >>> > facility names to create a standard report for each facility. Obviously only
    >> >> >>> > one report may be seen and printed at one time. Is it possible to print out
    >> >> >>> > all scenarios in the validation list, or do I need to print each report one
    >> >> >>> > at a time. Thanks in advance for any help.
    >> >> >>> >
    >> >> >>>
    >> >> >>>
    >> >> >>>
    >> >> >
    >> >> >
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  37. #37
    SJC
    Guest

    Re: Printing data validation scenarios

    I'll tell you everything that I have in hopes to answer your question, as I
    am still kind of new at this. In my workbook, I have two spreadsheets. My
    'Data' sheet holds all of my data. I then have a 'Report' sheet which
    produces a one page report from my data which includes a table and two
    charts. My hope for this was to create a standard report that would
    automatically update for each of my 300 facilities. So on my report
    worksheet, I have used OFFSET formulas to retrieve the data from the 'Data'
    worksheet, and a data validation listbox to choose which facility to display.
    On the 'report' worksheet, column J is my reference list for the data
    validation list. This list obviously was used to create the data validation
    listbox, and to compile this list, I just pasted links from the 'Data'
    spreadsheet. So now I am trying to create a macro which will go through my
    data validation list and print one report for each facility. When I view
    each report on the spreadsheet using the data validation listbox, the report
    appears fine. However, when I run the sub to print, it produces one report
    for each facility, but in many reports, no data is present. In other
    reports, it appears fine. I hope I have not been too confusing, any clues on
    how to fix this?

    "Ron de Bruin" wrote:

    > I was thinking that you use Vlookup formulas in your sheet with as lookup value
    > the Data Validation cell.
    >
    > how do you update the cells when you change C6
    >
    > BTW
    > >> >> list of facility numbers in row K that I used the for the data validation

    > I see J in the code now ?
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "SJC" <[email protected]> wrote in message news:[email protected]...
    > > Thanks for the code. Here is what I tried:
    > >
    > > Sub test()
    > > With Sheets("Report")
    > > For Each cell In .Range("J1:J5")
    > > .Range("C6").Value = cell.Value
    > > .PrintOut preview:=True
    > > Next cell
    > > End With
    > > End Sub
    > >
    > > I ran the sub, and it did not pull the data for all of the reports as it was
    > > supposed to. As background info, I have all of the data in another
    > > spreadsheet within the workbook named 'Data', and I have it linked to the
    > > 'Report' spreadsheet. Then obviously the report changes by what name is
    > > selected in the data validation list. Any clues on what I am doing wrong?
    > >
    > > "Ron de Bruin" wrote:
    > >
    > >>
    > >> Hi
    > >>
    > >> Try this with D1 as data validation cell that update your other data
    > >> I use a sheet with the name Sheet1
    > >>
    > >> Delete preview:=True when it is working like you want
    > >>
    > >> Sub test()
    > >> With Sheets("Sheet1")
    > >> For Each cell In .Range("K1:K5")
    > >> 'D1 is the data validation cell
    > >> .Range("D1").Value = cell.Value
    > >> .PrintOut preview:=True
    > >> Next cell
    > >> End With
    > >> End Sub
    > >>
    > >>
    > >> --
    > >> Regards Ron de Bruin
    > >> http://www.rondebruin.nl
    > >>
    > >>
    > >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > >> >I will answer you when I come home from work
    > >> >
    > >> > --
    > >> > Regards Ron de Bruin
    > >> > http://www.rondebruin.nl
    > >> >
    > >> >
    > >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > >> >> list of facility numbers in row K that I used the for the data validation
    > >> >> list, which of course is on the same spreadsheet as the report that I want to
    > >> >> print. Any clue on how I would get started?
    > >> >>
    > >> >> "Ron de Bruin" wrote:
    > >> >>
    > >> >>> Hi SJC
    > >> >>>
    > >> >>> You can do it with a macro.
    > >> >>> Do you want that ?
    > >> >>>
    > >> >>> Do you have a list with facility names on a sheet and use that
    > >> >>> range for the Data Validation list ?
    > >> >>>
    > >> >>> --
    > >> >>> Regards Ron de Bruin
    > >> >>> http://www.rondebruin.nl
    > >> >>>
    > >> >>>
    > >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > >> >>> >I have created a workbook which reports facility data trends. I created a
    > >> >>> > standard report to report this data for each facility. To create each
    > >> >>> > facility's scenario, I used a data validation list with a drop box of
    > >> >>> > facility names to create a standard report for each facility. Obviously only
    > >> >>> > one report may be seen and printed at one time. Is it possible to print out
    > >> >>> > all scenarios in the validation list, or do I need to print each report one
    > >> >>> > at a time. Thanks in advance for any help.
    > >> >>> >
    > >> >>>
    > >> >>>
    > >> >>>
    > >> >
    > >> >
    > >>
    > >>
    > >>

    >
    >
    >


  38. #38
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    I was thinking that you use Vlookup formulas in your sheet with as lookup value
    the Data Validation cell.

    how do you update the cells when you change C6

    BTW
    >> >> list of facility numbers in row K that I used the for the data validation

    I see J in the code now ?

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    > Thanks for the code. Here is what I tried:
    >
    > Sub test()
    > With Sheets("Report")
    > For Each cell In .Range("J1:J5")
    > .Range("C6").Value = cell.Value
    > .PrintOut preview:=True
    > Next cell
    > End With
    > End Sub
    >
    > I ran the sub, and it did not pull the data for all of the reports as it was
    > supposed to. As background info, I have all of the data in another
    > spreadsheet within the workbook named 'Data', and I have it linked to the
    > 'Report' spreadsheet. Then obviously the report changes by what name is
    > selected in the data validation list. Any clues on what I am doing wrong?
    >
    > "Ron de Bruin" wrote:
    >
    >>
    >> Hi
    >>
    >> Try this with D1 as data validation cell that update your other data
    >> I use a sheet with the name Sheet1
    >>
    >> Delete preview:=True when it is working like you want
    >>
    >> Sub test()
    >> With Sheets("Sheet1")
    >> For Each cell In .Range("K1:K5")
    >> 'D1 is the data validation cell
    >> .Range("D1").Value = cell.Value
    >> .PrintOut preview:=True
    >> Next cell
    >> End With
    >> End Sub
    >>
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >>
    >> "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    >> >I will answer you when I come home from work
    >> >
    >> > --
    >> > Regards Ron de Bruin
    >> > http://www.rondebruin.nl
    >> >
    >> >
    >> > "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    >> >> list of facility numbers in row K that I used the for the data validation
    >> >> list, which of course is on the same spreadsheet as the report that I want to
    >> >> print. Any clue on how I would get started?
    >> >>
    >> >> "Ron de Bruin" wrote:
    >> >>
    >> >>> Hi SJC
    >> >>>
    >> >>> You can do it with a macro.
    >> >>> Do you want that ?
    >> >>>
    >> >>> Do you have a list with facility names on a sheet and use that
    >> >>> range for the Data Validation list ?
    >> >>>
    >> >>> --
    >> >>> Regards Ron de Bruin
    >> >>> http://www.rondebruin.nl
    >> >>>
    >> >>>
    >> >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >>> >I have created a workbook which reports facility data trends. I created a
    >> >>> > standard report to report this data for each facility. To create each
    >> >>> > facility's scenario, I used a data validation list with a drop box of
    >> >>> > facility names to create a standard report for each facility. Obviously only
    >> >>> > one report may be seen and printed at one time. Is it possible to print out
    >> >>> > all scenarios in the validation list, or do I need to print each report one
    >> >>> > at a time. Thanks in advance for any help.
    >> >>> >
    >> >>>
    >> >>>
    >> >>>
    >> >
    >> >

    >>
    >>
    >>




  39. #39
    SJC
    Guest

    Re: Printing data validation scenarios

    Thanks for the code. Here is what I tried:

    Sub test()
    With Sheets("Report")
    For Each cell In .Range("J1:J5")
    .Range("C6").Value = cell.Value
    .PrintOut preview:=True
    Next cell
    End With
    End Sub

    I ran the sub, and it did not pull the data for all of the reports as it was
    supposed to. As background info, I have all of the data in another
    spreadsheet within the workbook named 'Data', and I have it linked to the
    'Report' spreadsheet. Then obviously the report changes by what name is
    selected in the data validation list. Any clues on what I am doing wrong?

    "Ron de Bruin" wrote:

    >
    > Hi
    >
    > Try this with D1 as data validation cell that update your other data
    > I use a sheet with the name Sheet1
    >
    > Delete preview:=True when it is working like you want
    >
    > Sub test()
    > With Sheets("Sheet1")
    > For Each cell In .Range("K1:K5")
    > 'D1 is the data validation cell
    > .Range("D1").Value = cell.Value
    > .PrintOut preview:=True
    > Next cell
    > End With
    > End Sub
    >
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    > >I will answer you when I come home from work
    > >
    > > --
    > > Regards Ron de Bruin
    > > http://www.rondebruin.nl
    > >
    > >
    > > "SJC" <[email protected]> wrote in message news:[email protected]...
    > >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    > >> list of facility numbers in row K that I used the for the data validation
    > >> list, which of course is on the same spreadsheet as the report that I want to
    > >> print. Any clue on how I would get started?
    > >>
    > >> "Ron de Bruin" wrote:
    > >>
    > >>> Hi SJC
    > >>>
    > >>> You can do it with a macro.
    > >>> Do you want that ?
    > >>>
    > >>> Do you have a list with facility names on a sheet and use that
    > >>> range for the Data Validation list ?
    > >>>
    > >>> --
    > >>> Regards Ron de Bruin
    > >>> http://www.rondebruin.nl
    > >>>
    > >>>
    > >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    > >>> >I have created a workbook which reports facility data trends. I created a
    > >>> > standard report to report this data for each facility. To create each
    > >>> > facility's scenario, I used a data validation list with a drop box of
    > >>> > facility names to create a standard report for each facility. Obviously only
    > >>> > one report may be seen and printed at one time. Is it possible to print out
    > >>> > all scenarios in the validation list, or do I need to print each report one
    > >>> > at a time. Thanks in advance for any help.
    > >>> >
    > >>>
    > >>>
    > >>>

    > >
    > >

    >
    >
    >


  40. #40
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios


    Hi

    Try this with D1 as data validation cell that update your other data
    I use a sheet with the name Sheet1

    Delete preview:=True when it is working like you want

    Sub test()
    With Sheets("Sheet1")
    For Each cell In .Range("K1:K5")
    'D1 is the data validation cell
    .Range("D1").Value = cell.Value
    .PrintOut preview:=True
    Next cell
    End With
    End Sub


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "Ron de Bruin" <[email protected]> wrote in message news:%[email protected]...
    >I will answer you when I come home from work
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "SJC" <[email protected]> wrote in message news:[email protected]...
    >>A macro would do fine--I guess I am just not sure how to set it up. I have a
    >> list of facility numbers in row K that I used the for the data validation
    >> list, which of course is on the same spreadsheet as the report that I want to
    >> print. Any clue on how I would get started?
    >>
    >> "Ron de Bruin" wrote:
    >>
    >>> Hi SJC
    >>>
    >>> You can do it with a macro.
    >>> Do you want that ?
    >>>
    >>> Do you have a list with facility names on a sheet and use that
    >>> range for the Data Validation list ?
    >>>
    >>> --
    >>> Regards Ron de Bruin
    >>> http://www.rondebruin.nl
    >>>
    >>>
    >>> "SJC" <[email protected]> wrote in message news:[email protected]...
    >>> >I have created a workbook which reports facility data trends. I created a
    >>> > standard report to report this data for each facility. To create each
    >>> > facility's scenario, I used a data validation list with a drop box of
    >>> > facility names to create a standard report for each facility. Obviously only
    >>> > one report may be seen and printed at one time. Is it possible to print out
    >>> > all scenarios in the validation list, or do I need to print each report one
    >>> > at a time. Thanks in advance for any help.
    >>> >
    >>>
    >>>
    >>>

    >
    >




  41. #41
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    I will answer you when I come home from work

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    >A macro would do fine--I guess I am just not sure how to set it up. I have a
    > list of facility numbers in row K that I used the for the data validation
    > list, which of course is on the same spreadsheet as the report that I want to
    > print. Any clue on how I would get started?
    >
    > "Ron de Bruin" wrote:
    >
    >> Hi SJC
    >>
    >> You can do it with a macro.
    >> Do you want that ?
    >>
    >> Do you have a list with facility names on a sheet and use that
    >> range for the Data Validation list ?
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >>
    >> "SJC" <[email protected]> wrote in message news:[email protected]...
    >> >I have created a workbook which reports facility data trends. I created a
    >> > standard report to report this data for each facility. To create each
    >> > facility's scenario, I used a data validation list with a drop box of
    >> > facility names to create a standard report for each facility. Obviously only
    >> > one report may be seen and printed at one time. Is it possible to print out
    >> > all scenarios in the validation list, or do I need to print each report one
    >> > at a time. Thanks in advance for any help.
    >> >

    >>
    >>
    >>




  42. #42
    SJC
    Guest

    Re: Printing data validation scenarios

    A macro would do fine--I guess I am just not sure how to set it up. I have a
    list of facility numbers in row K that I used the for the data validation
    list, which of course is on the same spreadsheet as the report that I want to
    print. Any clue on how I would get started?

    "Ron de Bruin" wrote:

    > Hi SJC
    >
    > You can do it with a macro.
    > Do you want that ?
    >
    > Do you have a list with facility names on a sheet and use that
    > range for the Data Validation list ?
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "SJC" <[email protected]> wrote in message news:[email protected]...
    > >I have created a workbook which reports facility data trends. I created a
    > > standard report to report this data for each facility. To create each
    > > facility's scenario, I used a data validation list with a drop box of
    > > facility names to create a standard report for each facility. Obviously only
    > > one report may be seen and printed at one time. Is it possible to print out
    > > all scenarios in the validation list, or do I need to print each report one
    > > at a time. Thanks in advance for any help.
    > >

    >
    >
    >


  43. #43
    Ron de Bruin
    Guest

    Re: Printing data validation scenarios

    Hi SJC

    You can do it with a macro.
    Do you want that ?

    Do you have a list with facility names on a sheet and use that
    range for the Data Validation list ?

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SJC" <[email protected]> wrote in message news:[email protected]...
    >I have created a workbook which reports facility data trends. I created a
    > standard report to report this data for each facility. To create each
    > facility's scenario, I used a data validation list with a drop box of
    > facility names to create a standard report for each facility. Obviously only
    > one report may be seen and printed at one time. Is it possible to print out
    > all scenarios in the validation list, or do I need to print each report one
    > at a time. Thanks in advance for any help.
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1