Dropdown and print area help

suzette0735

New Member
Joined
Jul 12, 2023
Messages
32
Office Version
  1. 365
Platform
  1. Windows
I have created a dropdown list to only show the rows I would like printed for each selection, but it seems I still have to change the print area. Is there a way to set print area dependent on the dropdown selection?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi Suzette,

You can use the INDIRECT function in the'Name Manager' under the print area to make the rows variable (and/or columns as well)...

  • In the below I choose an option from cell B3 for the area I want to print
  • In cells D3 and E3 it looks up the the start and end rows from the table in columns H to J
  • In the name manager I have used the below formula to return the start and end rows to the print area

Excel Formula:
=INDIRECT("Sheet1!$B$" & Sheet1!$D$3 & ":$B$" &Sheet1!$E$3 )

Downside is that If I change the print area columns from B:B to say D:D I have to change them in the name manager as it is hard keyed as B. You can use this method for the columns as well.


1734426301818.png
 
Upvote 0
Hi Suzette,

You can use the INDIRECT function in the'Name Manager' under the print area to make the rows variable (and/or columns as well)...

  • In the below I choose an option from cell B3 for the area I want to print
  • In cells D3 and E3 it looks up the the start and end rows from the table in columns H to J
  • In the name manager I have used the below formula to return the start and end rows to the print area

Excel Formula:
=INDIRECT("Sheet1!$B$" & Sheet1!$D$3 & ":$B$" &Sheet1!$E$3 )

Downside is that If I change the print area columns from B:B to say D:D I have to change them in the name manager as it is hard keyed as B. You can use this method for the columns as well.


View attachment 120404
Thank you! Can you break up the print area thought. IF i want to print for example, two different sections in one print :
A1-S41, A120-S121
 
Upvote 0

Forum statistics

Threads
1,225,626
Messages
6,186,095
Members
453,337
Latest member
fiaz ahmad

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top