Results 1 to 8 of 8

Automatic Print list VBA

Threaded View

surk Automatic Print list VBA 01-05-2016, 01:56 PM
Leith Ross Re: Automatic Print list VBA 01-05-2016, 02:49 PM
surk Re: Automatic Print list VBA 01-05-2016, 02:57 PM
Leith Ross Re: Automatic Print list VBA 01-05-2016, 03:15 PM
surk Re: Automatic Print list VBA 01-05-2016, 04:10 PM
Leith Ross Re: Automatic Print list VBA 01-05-2016, 06:06 PM
surk Re: Automatic Print list VBA 01-05-2016, 06:32 PM
surk Re: Automatic Print list VBA 01-05-2016, 06:34 PM
  1. #1
    Registered User
    Join Date
    08-13-2015
    Location
    Portsmouth, UK
    MS-Off Ver
    2010, 2013
    Posts
    44

    Automatic Print list VBA

    I have written the below code and it all works bar one bit! The range on the form is I10:R12, and when I put this in, rather than a single cell, it does not like merged cellls. (At present I have just left this in the code as I10). When I run it, this stops as it doesnt like transferring the data from cell C8:d8 on the checks sheet, to the I10:R12 cell on the form page. Due to other information on both pages, I cannot change either cell size.
    Sub Macro3()
    '
    ' Macro3 Macro
    '
    response = MsgBox("Are you sure you wish to print ALL records?", vbYesNo)
    
    If response = vbNo Then
    MsgBox ("No worries, I will exit then without printing!")
    Exit Sub
    End If
    Dim lr As Long, i As Long
    With Sheets("Checks")
    lr = .Cells(Rows.Count, "C").End(xlUp).Row
    For i = 8 To lr
    If .Cells(i, "C") <> "" Then
    
    .Cells(i, "C").Copy Sheets("Form").Range("I10")
    
    ActiveWindow.SelectedSheets.PrintOut Copies:=1
    
    
    
    End If
    Next
    End With
    End Sub
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. I also recommend using indentation to show the structure. --6StringJazzer
    Last edited by 6StringJazzer; 01-05-2016 at 02:11 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA code to set out page print layout - height automatic
    By Vogelmann in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2013, 03:22 AM
  2. How to name a file name to save/print in pdf automatic like INVOICE+NUMBER?
    By albertc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-13-2012, 12:34 PM
  3. performing automatic print on a label
    By itsmejan24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2012, 12:23 PM
  4. Automatic Print Setting (or something similiar)
    By arfanvilla in forum Excel General
    Replies: 0
    Last Post: 05-15-2008, 03:25 AM
  5. [SOLVED] Print Breaks-Automatic or Force New
    By Tracy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2006, 08:20 PM
  6. automatic printing / print report FIXED
    By neilwebb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2005, 05:05 PM
  7. Replies: 2
    Last Post: 04-06-2005, 08:06 AM

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