Macro code

markster

Well-known Member
Joined
May 23, 2002
Messages
575
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Basically, I have a spreadsheet. I need some macro code (that I can easily edit to create different reports from it). The reports will basically be to print all data contained in certain columns. For instance the first one I want to create will print all data in columns B, D, F G and H. The only issue is that I need a filter/dialogue box to pop up so I can choose which department to print the information for i.e. Department A, B, C D or All ) this data is held in column F (kind of like what happens when you filter). Can anyone help?

Hope this makes sense.

Cheers guys

Mark
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Fazza

MrExcel MVP
Joined
May 17, 2006
Messages
9,368
Hi Mark. I don't 100% understand the requirement. Though it sounds like you might be able to use Excel's custom views functionality to do this. In Excel 2003 it is under menu view, custom views. HTH, Fazza
 
Upvote 0

Forum statistics

Threads
1,190,590
Messages
5,981,813
Members
439,735
Latest member
Cbegg

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
Top