Data Validation listing

OAM

Board Regular
Joined
Jul 8, 2008
Messages
72
Office Version
  1. 2007
Platform
  1. Windows
Someone helped me come up with the macro below to allow me to print 100 timesheets from a Validation list by using a macro. This macro works well but I forgot to mention that the source of the validation list is on another sheet and I do not know how to get the code to reference the information on the other sheet.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p> </o:p>
Can someone help me make this work?


Sub PrintAll()
For Each cell In Range("V47:V132")
Range("F2") = cell
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Next cell
End Sub
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
If you want to refer to cell A1 on sheet 1, this would be your code:
Code:
Sheets("Sheet1").Range("A1")

Hopefully you can adapt this to your own problem as you didn't tell us the name of your sheet or which cell on which sheet you want to refer to.
 
Upvote 0
Thank you for all your help it worked!
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,614
Members
449,090
Latest member
vivek chauhan

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