Results 1 to 12 of 12

Print Macro / module error & Update / Clear Macro error

Threaded View

mal.b.graham Print Macro / module error &... 09-17-2012, 04:00 PM
protonLeah Re: Print Macro / module... 09-17-2012, 04:18 PM
mal.b.graham Re: Print Macro / module... 09-17-2012, 06:01 PM
protonLeah Re: Print Macro / module... 09-17-2012, 07:12 PM
mal.b.graham Re: Print Macro / module... 09-18-2012, 09:20 AM
protonLeah Re: Print Macro / module... 09-18-2012, 04:58 PM
mal.b.graham Re: Print Macro / module... 09-26-2012, 06:49 PM
protonLeah Re: Print Macro / module... 09-26-2012, 07:27 PM
mal.b.graham Re: Print Macro / module... 09-26-2012, 07:41 PM
protonLeah Re: Print Macro / module... 09-26-2012, 08:30 PM
mal.b.graham Re: Print Macro / module... 09-28-2012, 08:59 AM
protonLeah Re: Print Macro / module... 09-28-2012, 06:40 PM
  1. #1
    Registered User
    Join Date
    07-24-2011
    Location
    belfast
    MS-Off Ver
    office 365
    Posts
    61

    Print Macro / module error & Update / Clear Macro error

    Hi Guys

    I have written the macro module 1 for the print preview............ however I only want it to show columns and rows A1 to K48, but somehow I seem to have gone with this

    
    Sub Print_Click()
     Dim lngRow As Long
        
        On Error GoTo PrintMe
        
        With ActiveSheet
            lngRow = .UsedRange.Find("Active", searchdirection:=xlPrevious).Row
            .PageSetup.PrintArea = "A1:K48" & lngRow
        End With
        
    PrintMe:
        ActiveSheet.PrintPreview
        
        Exit Sub
    End Sub
    My next issue is the Post to summary and clear invoice............. i have the code written into the invoice sheet with VBA but nothing is happening when I click on the button...........
    Any pointers welcome
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1