+ Reply to Thread
Results 1 to 3 of 3

VB Code to open closed workbook and add print area

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to open closed workbook and add print area

    Hello:

    I need a VB Code to preform following task.

    I need to open password protected closed workbook, directory and name of the file will be in cell A2.
    Password will be 1234.
    Then need to go "Report" Sheet and then do "Set Print Area" by select range A1:L1376.
    Then need to add "END in cell A1336 of this sheet.

    Please let me know if you have any questions.
    Thanks.

    Riz

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VB Code to open closed workbook and add print area

    Where are you having trouble?
    Did you try the macro recorder? This is a pretty simple request.


    This should get you started:

    Please Login or Register  to view this content.
    Last edited by mikeTRON; 03-11-2015 at 02:00 PM.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to open closed workbook and add print area

    Hi mikeTRON:

    Thanks a lot for your help, i will start wit this and should be able to complete my task.

    Riz

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to open a closed workbook and select copy cells into an open workbook
    By helloganesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2013, 02:00 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. Open file after workbook executing code is closed
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2011, 10:05 PM
  4. [SOLVED] Macro code to open a workbook only when closed
    By Jeff in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2006, 04:25 PM
  5. Print Area:What would be the code for setting the print area
    By wammer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2005, 02:05 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