+ Reply to Thread
Results 1 to 5 of 5

How to save a workbook using button

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

    Post How to save a workbook using button

    Hello Evryone

    I Want button of Bellow on userform

    1= Save Workbook
    2= Select Print Area
    3= Add Quick Print

    thanx

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: How to save a workbook using button

    1= Save Workbook
    Save means saving a workbook in a location or just saving it which is already saved in a location?

    2= Select Print Area
    This can be done easily using Application.inputbox option for getting the range

    3= Add Quick Print
    Recording a macro and give print which will get you the needed code


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

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

    Re: How to save a workbook using button

    Hello Sixthsense

    workbook save code found it
    and for printareaset and then print area are below,............but i want to add a printpreview before print.....if i ok then prin if no then cancel the print

    Please Login or Register  to view this content.
    thanx

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: How to save a workbook using button

    Quote Originally Posted by haroon2015 View Post
    i want to add a printpreview before print.....if i ok then prin if no then cancel the print
    Not sure about who will determine Ok / Cancel action?

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

    Re: How to save a workbook using button

    ok
    when i select the range of worksheet and click the button assign with macro(SelectPrintArea)

    then select the range and show the print preview with option of yes or no,
    if i click ok then print else cancel the print and deselect the range

    thanx

+ 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. Coding to have a Button to save a Workbook
    By Aeneren in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-12-2012, 06:53 PM
  2. Copy Worksheet & Save in a New Workbook Without Button following
    By merreena in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-11-2010, 12:20 AM
  3. button to save and close the workbook
    By Darrell456 in forum Excel General
    Replies: 3
    Last Post: 12-14-2009, 03:54 AM
  4. VB button & code to save workbook
    By SilverFox in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-26-2009, 01:58 PM
  5. Save workbook via Command Button????
    By Chris Watson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2006, 06:15 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