Closed Thread
Results 1 to 4 of 4

Print ThisWorkbook

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    Colchester, England
    MS-Off Ver
    Excel 2010
    Posts
    28

    Print ThisWorkbook

    I've been using this code and it's been working fine up until today in 2003, 2007 & 2010.

    I need a code to stop the worksheet (only 1 in the book) from printing if certain cells are not completed (b3:b6,e3:e5,h3,l3,n5:n6). It highlighted the cells red and a message box appears also telling the user which cells are not completed.

    I added a new code to the workbook today which clears certain cells (E3:E5) if one of them is amended using their dependnat drop down boxes, so I'm wondering if that coding is causing issues with this one as they do refer to some of the same cells? Although saying that, when I take out the new coding, the "ThisWorkbook.print" issue is still occuring.

    Any help or advice would be appreciated.

    Thanks.


    Please Login or Register  to view this content.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Print ThisWorkbook

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    01-22-2014
    Location
    Colchester, England
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Print ThisWorkbook

    Yes, it's solved. Sorry should have advised before....

    See thread:

    http://www.excelforum.com/excel-prog...ror-438-a.html

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Print ThisWorkbook

    For future reference -

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ThisWorkbook Help
    By OcMac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2012, 05:36 PM
  2. VBA to set print range, open box asking for print qty, print, then redefine print area
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2012, 06:43 PM
  3. [SOLVED] Set Wb = ThisWorkbook
    By ATLGator in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2012, 02:10 PM
  4. ThisWorkbook
    By DejaVu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2006, 08:55 PM
  5. Help with ThisWorkbook
    By David in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-27-2005, 07:05 PM

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