LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default print preview do not update (?)


Good evening Group,

Stuck with something I dont seem to able to solve.
The code below works fine, almost. The loop updates
the values in the cells, the embedded textbox is also up-
dating fine but if more then one selection is made in the listbox
the print preview does not update. The text from the
first selection is not changed in the preview when it is
actually is changed in the worksheet.

Can anyone supply some inputs, please?

Brgds

CG Rosen

------------------------------------------------------------------------------------------------------------------
For i = 0 To Me.ListBox1.ListCount - 1

If Me.ListBox1.Selected(i) = True Then

Sheets("print").TextBox1.Text = ""

Sheets("print").Cells(1, 1) = Sheets("Sheet1").Cells((Me.ListBox1.List(i,
1)), 1)
Sheets("print").Cells(2, 1) = Sheets("Sheet1").Cells((Me.ListBox12.List(i,
1)), 2)

Sheets("print").TextBox1.Text = Sheets("Sheet1").Cells((Me.ListBox2.List(i,
1)), 3)

Application.Dialogs(xlDialogPrinterSetup).Show

UserForm1.Hide
Application.Visible = True
ActiveSheet.PrintPreview EnableChanges:=False
Application.Visible = False

End If

Next i

UserForm1.Show

End Sub

 
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
Plot Area Automatically Expands in Print and Print Preview Myk D. Charts and Charting in Excel 2 March 12th 09 01:41 PM
Print and Print Preview Graphic Moving Resizing 2007/2003 Adam Rayburn Excel Discussion (Misc queries) 0 April 4th 07 04:18 PM
print preview v page break preview SamB Excel Discussion (Misc queries) 0 November 16th 06 05:09 PM
cell borders that I create dont show on print preview or print scott3435 Excel Discussion (Misc queries) 2 April 6th 06 02:37 AM
Why does macro speed slow after Excel Print or Print Preview? Larry A[_3_] Excel Programming 6 May 16th 05 11:22 AM


All times are GMT +1. The time now is 09:23 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"