+ Reply to Thread
Results 1 to 4 of 4

Print a closed worksheet according to workbook and sheet name

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Post Print a closed worksheet according to workbook and sheet name

    hello everyone

    i want to print out of closed workbook according to workbook name and sheet name,

    for example -

    there are many workbooks in path = Z:\42766\Jan 2 Dec 2014\1.11.2016\
    and every workbook has lots of sheets.


    now i have a open workbook, here i choose file name "Master" and sheet name : "Bc"

    then i want print out of file name "master" and sheet name "Bc" from the path of Z:\42766\Jan 2 Dec 2014\1.11.2016\


    thanx in advance
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Print a closed worksheet according to workbook and sheet name

    Something like this:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Print a closed worksheet according to workbook and sheet name

    thanx, JBeaucaire

    but i have a little problem in this code,
    i want a msg box for input workbook name and sheet name instead of A1.value and B1.value

    thanx

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Print a closed worksheet according to workbook and sheet name

    Perhaps something like this, you can adapt from here:

    Please Login or Register  to view this content.

+ 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. Copy Worksheet Values/Formatting from closed workbook to open workbook
    By pchalk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2016, 11:30 AM
  2. Print preview for closed workbook
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-18-2015, 02:22 PM
  3. [SOLVED] VB Code to open closed workbook and add print area
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2015, 02:27 PM
  4. [SOLVED] Copy a Worksheet from a Closed Workbook to the Current Opened Workbook
    By glennchung in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-28-2014, 12:55 PM
  5. VBA to extract sheet in multiple closed workbooks to a sing sheet on new workbook (HELP!)
    By The1theycallp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-12-2014, 08:19 AM
  6. Copy worksheet from closed workbook into active/existing workbook.
    By rasikvekaria in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2012, 06:55 AM
  7. Copy One Sheet From One Closed Workbook To Another Closed WB
    By teshiburu1988 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-04-2009, 11:49 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