+ Reply to Thread
Results 1 to 3 of 3

Code to save the sheet with conditions

  1. #1
    Registered User
    Join Date
    02-21-2015
    Location
    India
    MS-Off Ver
    7
    Posts
    3

    Code to save the sheet with conditions

    I have a lab testing sheet with many cells having formula and certain cells where the value comes from the other sheet.
    Also considering the page breakup, there are five pages one below the other.
    I am looking for a option where in I click a button and the
    exsisting sheets gets saved as an excel file in some folder but with a condition.

    1) After saving cell D4 auto generates a new number (numeric).

    2) File is saved in the same name which is there in the sheet.
    i.e cell H3-D4.xlsx . Means the file name will be the name in cell H3 then there is - in between and then cell D4.
    Or if - is not there then also it will do.

    3) Values in these cells gets cleared. Range E6 to K7 , then H12 , J8 , M12.

    Thanks
    Sudhanshu

  2. #2
    Forum Contributor
    Join Date
    08-15-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    349

    Re: Code to save the sheet with conditions

    Try this;
    Please Login or Register  to view this content.
    Please click the * Add Reputation if this helps
    If solved remember to mark Thread as solved

    "I'm glad to help and this is not meant to sound smart, but either you have super-human vision to see all those controls cleared one by one with the code I posted, or your computer is really slow."

  3. #3
    Registered User
    Join Date
    02-21-2015
    Location
    India
    MS-Off Ver
    7
    Posts
    3

    Re: Code to save the sheet with conditions

    Thanks a lot Blokeman
    I have checked the code and its working fine.
    In case if I have any querry related to this issue then how do I
    address it to you again.

    Thanks again
    Sudhanshu

+ 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. Replies: 2
    Last Post: 01-01-2015, 09:38 PM
  2. VBA code to save excel sheet twice a day
    By jhevan50 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-13-2012, 07:05 AM
  3. Replies: 8
    Last Post: 06-16-2011, 11:49 AM
  4. VBA Save as - save 1 sheet and no code?
    By ker9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2010, 01:21 PM
  5. Cut & Paste Multiple Sheet Conditions Macro Code-Check
    By BrokenHero in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-06-2009, 01:26 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