+ Reply to Thread
Results 1 to 3 of 3

open, copy sheet and save as a defined name

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2013
    Posts
    2

    open, copy sheet and save as a defined name

    Hi guys, i wonder if someone can help me with this piece of code please. it is a bit of aging code from the days of office 97/2000. it sometimes work and sometimes does not.

    Sometimes it goes in a loop and excel is not responding. All it needs to do is open a sheet, copy certain information (cells from one to another, paste as test) and save as a defined name.

    some optimizations necessary it would seem. What will be nice is if i can define the path where the document is to be saved? or save to current\quote?

    here goes

    Please Login or Register  to view this content.
    Last edited by vermaati; 11-16-2017 at 03:46 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: open, copy sheet and save as a defined name

    Where would you want the file to be saved?

    PS When posting code can you please use CODE tags?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-21-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: open, copy sheet and save as a defined name

    apologies. fixed now.

    the path usually resides under the google drive/onedrive default folder, c:\users\%username%\onedrive/google drive.

    it saves to a subfolder .\working

    thanks for the reply

+ 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 copy from one sheet and paste to another sheet defined by cell value
    By bryans88 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2015, 02:09 PM
  2. Save the open sheet in a path with a save as dialogue box and also create two folders
    By Biplab1985 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2015, 05:19 PM
  3. [SOLVED] Workbook Open Event Application-defined or object-defined error
    By dmw2014 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-29-2014, 10:28 AM
  4. Replies: 2
    Last Post: 12-15-2013, 04:27 PM
  5. Save file as copy while still having original still open
    By djblois1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2013, 03:40 PM
  6. Save copy as, open copy, alter copy, save copy and close copy
    By tradinup2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-03-2013, 04:42 PM
  7. Copy defined cell from various worksheets to new sheet (Index sheet)
    By kookao in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2011, 03:55 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