Strange Problem with a printing code

MazPower

New Member
Joined
Apr 8, 2002
Messages
5
> > > > > > hello all
> > > > > > i got a macro that print certain sheets by verifying
> > > > > > if a certain cell is filled
> > > > > > the macro print 1 to 5 sheets
> > > > > > my prob is that all shhets print ok except 1 of my sheets print
> > > > > > only the cell borders without the data
> > > > > > i've look the print area and its fine
> > > > > > secundo
> > > > > > when i use the menu file print command
> > > > > > the sheets print just fine

i've pasted a second code here that i have the same prob with sheet rapport

> > > > > > anyone got this problem before???????
> > > > > > thanks
> > > > > > jeff

2----------------------------------------

> Private Sub CommandButton2_Click()
> Sheets("rapport").Visible = True
>
> Sheets(Array("master", "rapport")).Select
> Application.Dialogs(xlDialogPrint).Show
> Sheets("rapport").Visible = False
>
>
> Sheets("Start").Select
> End Sub
1---------------------------------------
> > > > Private Sub CommandButton1_Click()
> > > >
> > > > Sheets("g1").Visible = True
> > > > Sheets("g2").Visible = True
> > > > Sheets("g3").Visible = True
> > > > Sheets("g4").Visible = True
> > > >
> > > >
> > > > Dim rng As Range, cell As Range
> > > > Dim varr As Variant
> > > > Dim i As Long
> > > > Dim bFirst As Boolean
> > > > varr = Array("master", "g1", "g2", "g3", "g4")
> > > >
> > > > i = -1
> > > > With Worksheets("master")
> > > > Set rng = Range("l10,l10,l11,l12,l13")
> > > > End With
> > > > bFirst = True
> > > > For Each cell In rng
> > > > i = i + 1
> > > > If Not IsEmpty(cell) Then
> > > > If IsNumeric(cell) Then
> > > > If cell.Value > 0 Then
> > > > If bFirst Then
> > > > Worksheets(varr(i)).Select True
> > > > Else
> > > > Worksheets(varr(i)).Select False
> > > > End If
> > > > bFirst = False
> > > > End If
> > > > End If
> > > > End If
> > > > Next
> > > > If Not bFirst Then
> > > > Application.Dialogs(xlDialogPrint).Show
> > > > End If
> > > >
> > > > Sheets("g1").Visible = False
> > > > Sheets("g2").Visible = False
> > > > Sheets("g3").Visible = False
> > > > Sheets("g4").Visible = False
> > > >
> > > > Sheets("Start").Select
> > > > End Sub
---------------------------------
thanks
Jeff
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,214,851
Messages
6,121,931
Members
449,056
Latest member
denissimo

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