+ Reply to Thread
Results 1 to 3 of 3

kill with variable workbookname fails

  1. #1
    Registered User
    Join Date
    02-07-2013
    Location
    rotterdam
    MS-Off Ver
    Excel 2003
    Posts
    2

    kill with variable workbookname fails

    Hi,

    I try to do the following

    open an automatically created file =>create new name based on cell values => save as new name in folder 2 => kill the original file=> continue macros on newly named file.

    I usually grab most of my VBA from the web and adjust to my needs, but I didn't find any good examples.
    At the moment it does the saving bit, but the killing won't work. I can't put the filename in the kill path

    this is part of the code, I omitted the automatically opening which works fine



    Please Login or Register  to view this content.

  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: kill with variable workbookname fails

    You have an extraneous " after stfile1.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    02-07-2013
    Location
    rotterdam
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: kill with variable workbookname fails

    thanks that fixed it, should have seen it,
    Last edited by evilscientist; 02-11-2013 at 04:37 PM.

+ 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