+ Reply to Thread
Results 1 to 6 of 6

Macro to save sheet only

  1. #1
    Forum Contributor
    Join Date
    03-04-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    130

    Macro to save sheet only

    Hi again,

    One more today, Im trying to improve a wookbook i use quite often.

    It uses the macro below to save a copy of itself which is fine, but I would like to change it to only export one sheet called "Quotation" and if possible save only number/text values for the whole sheet apart from the formula's in cells F11:41, I11:41 & N11:41 though I don't know if this is even possible.




    Please Login or Register  to view this content.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Macro to save sheet only

    Hi, JohnDoh,

    for the saving maybe try
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Macro to save sheet only

    Immediate before the SaveAs statement, put a Call to this sub:

    Please Login or Register  to view this content.
    Gary's Student

  4. #4
    Forum Contributor
    Join Date
    03-04-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    130

    Re: Macro to save sheet only

    I cant seem to get the above to work

    Also after reviewing the idea it would appear that in reality I need to keep all the formulas except those that refer to another sheet.

    Attached is an example to see if that makes it clearer, in the Quotation Tab, cells which refer to another sheet in the formula are colored red all other cells with formulas are colored yellow.

    Though after speaking to HaHoBe I fear I might be flogging a dead horse.

    savesheet.xlsm

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Macro to save sheet only

    Hi, JohnDoe,

    maybe like this:
    Please Login or Register  to view this content.
    When testing I received a couple of #NA in the area Column I so that maybe the workeheet should be copied in the workbook itself, worked on and then exported.

    Ciao,
    Holger

  6. #6
    Forum Contributor
    Join Date
    03-04-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    130

    Re: Macro to save sheet only

    Holger,

    Thank you for your help and patience.

    Now have it working.

    Regards,

    Adam

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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