Print Each Cell on One Page as Heading

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,846
Office Version
  1. 365
Platform
  1. Windows
I have hundreds of rows with name in column A, I want to print each name on a separate sheet as heading and nothing else on that page. So I will have over hundred pages with name on the top and rest blank.

Thanks

Sohail
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Maybe something like:

Code:
Sub test()

Dim rngLoopRange As Range

For Each rngLoopRange In Sheets("Sheets2").Range("A1").CurrentRegion

    With Sheets("Sheet1")

        .Range("A1") = rngLoopRange
    
        .PrintOut
        
    End With
        
Next rngLoopRange

End Sub

Dom
 
Upvote 0
Thank you Domski, I am going to try it now,
Opus, It does not matter, as long as I can print sepatere on each sheet.
 
Upvote 0
The easyest way to print to paper is to use mail merge in Word using the excel sheet as youre source.
 
Upvote 0
Domski,
Thanks for the code, but I am doing something wrong, I changed the codes to

Sub test()
Dim rngLoopRange As Range
For Each rngLoopRange In Sheets("Sheets2").Range("A1").CurrentRegion
With Sheets("Sheet1")
.Range("D1") = rngLoopRange

.PrintOut

End With

Next rngLoopRange
End Sub

I changed from A1 to D1, and coied and paste your code to sheet. and every time I view print preview, I see all column on one sheet.
What am I doing wrong here.

I appreciate your interest.
 
Upvote 0
Print preview won't show you what is going to print. The code is looping through the range from Sheet2 Range A1 downwards and changing Sheet1 Range D1 to each value and then printing it.

Dom
 
Upvote 0

Forum statistics

Threads
1,216,122
Messages
6,128,952
Members
449,480
Latest member
yesitisasport

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