Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub CommandButton1_Click()
Dim LastRow As Object Range("A2").Select ActiveSheet.ShowDataForm End Sub Is there a way that when i enter a new record using my data form, a ne row is also printed? Also how would i go about creating code for a print preveiw button? Thank -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this to print the row with the last value in column A
Sub test() Dim lr As Long lr = Range("A" & Rows.Count).End(xlUp).Row Rows(lr).PrintOut End Sub And use this for the PrintPreview ActiveSheet.PrintPreview -- Regards Ron de Bruin (Win XP Pro SP-1 XL2000-2003) www.rondebruin.nl "jamie85 " wrote in message ... Private Sub CommandButton1_Click() Dim LastRow As Object Range("A2").Select ActiveSheet.ShowDataForm End Sub Is there a way that when i enter a new record using my data form, a new row is also printed? Also how would i go about creating code for a print preveiw button? Thanks --- Message posted from http://www.ExcelForum.com/ |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you don't set a print area, the default behavior should be to print all
the data in the worksheet. Private Sub CommandButton1_Click() Activesheet.PrintPreview End Sub -- Regards, Tom Ogilvy "jamie85 " wrote in message ... anyone? --- Message posted from http://www.ExcelForum.com/ |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Patience Jamie, patience.
Only been 17 minutes since your first posting. Gord Dibben Excel MVP On Mon, 2 Feb 2004 11:43:03 -0600, jamie85 wrote: anyone? --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print and Print Preview Graphic Moving Resizing 2007/2003 | Excel Discussion (Misc queries) | |||
How to format the extension less file to print with Dos's Print Command | Excel Discussion (Misc queries) | |||
cell borders that I create dont show on print preview or print | Excel Discussion (Misc queries) | |||
Pivot Table macro to set print area and print details of drill down data | Excel Discussion (Misc queries) | |||
Active cell counting in particular print page (one sheet having different print area) | Excel Worksheet Functions |