Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Spooling and printing each name


Hi everyone, hopefully someone can help with this question....

I have a cell, B4, that contains a drop down list of names (from a
validation list), when a name is selected, other selected cells in the
workbook change as they are based on a vlookup. This then changes the 2
charts on the same page.

What I would like to do is allow the user to click a button and spool
thru all the names in the list and print each one automatically.
Can this be done using VBA? If so, how do I go about it ?

Thanks again, lots of love, Amy xx


--
AmyTaylor
------------------------------------------------------------------------
AmyTaylor's Profile: http://www.excelforum.com/member.php...o&userid=20970
View this thread: http://www.excelforum.com/showthread...hreadid=508886

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Spooling and printing each name

Is the list typed in or is it located on a range on the worksheet. For the
Latter

assume the source of the list is Z20:Z30 on the active page
Further assume the cell with the data validation is B9

The code would then be something like


Private Sub CommandButton1_Click()
Dim rng as Range, cell as Range
set rng = Range("Z20:Z30")
for each cell in rng
Range("B9").Value = cell
activesheet.Printout
Next
End Sub

--
Regards,
Tom Ogilvy

"AmyTaylor" wrote
in message ...

Hi everyone, hopefully someone can help with this question....

I have a cell, B4, that contains a drop down list of names (from a
validation list), when a name is selected, other selected cells in the
workbook change as they are based on a vlookup. This then changes the 2
charts on the same page.

What I would like to do is allow the user to click a button and spool
thru all the names in the list and print each one automatically.
Can this be done using VBA? If so, how do I go about it ?

Thanks again, lots of love, Amy xx


--
AmyTaylor
------------------------------------------------------------------------
AmyTaylor's Profile:

http://www.excelforum.com/member.php...o&userid=20970
View this thread: http://www.excelforum.com/showthread...hreadid=508886



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Spooling and printing each name


Dear Tom, that is exactly what I was after, except my list was based on
a validation list on another sheet with the defined name
"ListOfNames".

Thanks again.

Amy xx


--
AmyTaylor
------------------------------------------------------------------------
AmyTaylor's Profile: http://www.excelforum.com/member.php...o&userid=20970
View this thread: http://www.excelforum.com/showthread...hreadid=508886

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Spooling and printing each name

Assume the ListofNames is on Sheet3

Private Sub CommandButton1_Click()
Dim rng as Range, cell as Range
set rng = Worksheets("Sheet3").Range("ListofNames")
for each cell in rng
Range("B9").Value = cell
activesheet.Printout
Next
End Sub

--
Regards,
Tom Ogilvy


"AmyTaylor" wrote
in message ...

Dear Tom, that is exactly what I was after, except my list was based on
a validation list on another sheet with the defined name
"ListOfNames".

Thanks again.

Amy xx


--
AmyTaylor
------------------------------------------------------------------------
AmyTaylor's Profile:

http://www.excelforum.com/member.php...o&userid=20970
View this thread: http://www.excelforum.com/showthread...hreadid=508886



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Spooling and printing each name


Tom, thanks for your reply - that is brilliant !
Love Amy xx


--
AmyTaylor
------------------------------------------------------------------------
AmyTaylor's Profile: http://www.excelforum.com/member.php...o&userid=20970
View this thread: http://www.excelforum.com/showthread...hreadid=508886



Reply
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
Excel 2003 printing problem--printing 1 document on 2 pages Bons Excel Discussion (Misc queries) 0 December 24th 09 04:15 PM
Excel Printing --Borders are not printing on the same page as data Stup88 Excel Discussion (Misc queries) 1 August 7th 07 09:34 AM
how do i mange print spooling from excel Dennis Setting up and Configuration of Excel 0 December 5th 05 09:53 PM
Enable Double sided printing contiuously when printing multiple s. Lee Excel Discussion (Misc queries) 1 November 27th 04 01:58 AM
Printing? Worksheets not printing the same on multiple pc's! 43fan Excel Programming 2 April 29th 04 02:34 PM


All times are GMT +1. The time now is 04:25 AM.

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"