+ Reply to Thread
Results 1 to 6 of 6

save active sheet in new workbook, naming it as cell value of active sheet

  1. #1
    Registered User
    Join Date
    02-17-2014
    Location
    almaty
    MS-Off Ver
    Excel 2003
    Posts
    13

    save active sheet in new workbook, naming it as cell value of active sheet

    Hi!!!
    I need a macro to:
    save active sheet as new workbook on desktop + email to [email protected].
    name of workbook = concatenate cell C9 & H9 from active sheet (example: "555555-Moscow.xls" where 555555 is value in C9 & Moscow is value in cell H9 in active sheet)

    thank uuuu
    Last edited by arkharova.s; 02-18-2014 at 06:19 AM.

  2. #2
    Forum Contributor
    Join Date
    12-09-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    171

    Re: save active sheet in new workbook, naming it as cell value of active sheet

    Hi
    use the following code..
    Please Login or Register  to view this content.
    Like my answer, then click * below

  3. #3
    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: save active sheet in new workbook, naming it as cell value of active sheet

    Hi, arkharova.s,

    regarding copy the ActiveSheet you may 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

  4. #4
    Registered User
    Join Date
    02-17-2014
    Location
    almaty
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: save active sheet in new workbook, naming it as cell value of active sheet

    Hello HaHoBe, satabp,

    thank you for ur inputs! in both scenarios excel shows run-time error 1004... do you know what is the reason for that?


    thank you!!!

  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: save active sheet in new workbook, naming it as cell value of active sheet

    Hi, arkharova.s,

    since 1004 is a not clearly documented error code in VBA you would need to tell us which line is highlighted in the VBE in order to narrow down the reason for this message to be raised.

    Ciao,
    Holger

  6. #6
    Registered User
    Join Date
    02-17-2014
    Location
    almaty
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: save active sheet in new workbook, naming it as cell value of active sheet

    Dear HaHoBe!
    its working now!!! thank u very much!!!!!

+ 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 Print active sheet as PDF to Active workbook and customize name
    By Scott Taylor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-17-2012, 08:52 PM
  2. Replies: 0
    Last Post: 04-28-2012, 06:06 PM
  3. Save Active Sheet to another Workbook
    By Wes28 in forum Excel General
    Replies: 5
    Last Post: 11-04-2008, 11:15 AM
  4. Save active sheet into new workbook
    By MarkN in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2006, 10:10 PM
  5. Copy from active sheet and paste into new sheet using info from cell in active
    By Ingve in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2006, 06:00 PM

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