LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default HELP! - Printing a sheet with values populated from dropdown b



then try:

Sub LoopTheValListProps()
Dim v, i&, d%
With Range("a1")
On Error Resume Next
With .Validation
If .Type = 3 Then v = Evaluate(.Formula1)
End With
d = UBound(v, 2)
If d = 1 Then v = Application.Transpose(v)
For i = LBound(v) To UBound(v)
If Len(v(i)) 0 Then
.Value = v(i)
Call PrintMe
End If
Next
End With
End Sub

Sub PrintMe()
MsgBox Range("A1")
End Sub





--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Co-op Bank wrote :

Sorry its from a validation drop down box. cheers

"Tom Ogilvy" wrote:

Is the dropdown box from an autofilter? If so, there is no way to
access that list. You can build a list you can loop through by
using the Advanced filter with the unique option.

If it is from data validation, then just use the source data you
used to populate the list.

--
Regards,
Tom Ogilvy

"Co-op Bank" wrote in message
...
Hello,

I have a frustrating problem, I have a dropdown box in Excel
which holds around 1,000 numbers (cost centres). When I select a
number the values on

the
spreadsheet change to those respective to the selected cost
centre (i.e. sales £, volume).

What I would like is a macro to loop through every cost centre in
the dropdown box and print for all 1,000 selections in the
dropdown. Is this possible? Otherwise i'd have to go through them
all one by one to print

them
off.

Any help much appreciated. Regards Brian Taylor, Co-op Bank,
Manchester,

UK





 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I insert a work sheet populated with data into another? GMPierre Excel Worksheet Functions 1 July 17th 08 09:12 PM
Having data automatically populated in a different sheet Nicki Excel Worksheet Functions 0 March 14th 06 12:27 AM
populating DropDown with Values Of a Column in another Sheet. ZarrinPour Excel Discussion (Misc queries) 7 March 12th 06 02:51 PM
Copy Values to Below last Populated Cell Q John Excel Programming 2 June 29th 04 05:28 PM
Printing sheets with populated fields rxwillow Excel Programming 1 January 17th 04 08:12 PM


All times are GMT +1. The time now is 10:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"