Why don't the hidden columns show? Different situation here. HELP

i8ur4re

Board Regular
Joined
Mar 1, 2015
Messages
97
I had worked on this sheet a few weeks ago, not sure where i went wrong.
Columns A-c are all one, D-O all one P-V are all one. What I'm trying to say is this:


A B CD E F GH I J K
B770-222DresserETC

<tbody>
</tbody>

I am supposed to have information in A B C D E F G. Instead each column each first columns information. Where did i go wrong. It does have a macro to add page breaks. This is the macro:


Sub AddPageBreaks()

Dim rFoundCell As Range
Dim sFirstAddress As String
Dim lCnt As Long

ActiveSheet.ResetAllPageBreaks

With ActiveSheet.Columns("M")
Set rFoundCell = .Find(what:="MSRP", after:=.Rows(.Rows.Count), LookIn:=xlValues, lookat:=xlWhole, searchdirection:=xlNext, MatchCase:=False)
If Not rFoundCell Is Nothing Then
lCnt = 0
sFirstAddress = rFoundCell.Address
Do
lCnt = lCnt + 1
If lCnt > 1 Then
ActiveSheet.HPageBreaks.Add before:=rFoundCell
End If
Set rFoundCell = .FindNext(rFoundCell)
Loop While rFoundCell.Address <> sFirstAddress
End If
End With

Set rFoundCell = Nothing

End Sub


Any help is appreciated. Thank you
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I just did that, all it did was center and the columns that i had hidden are still hidden or at least not visible.
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

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