+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19

Thread: Constanty changing Workbook name( -2 business days)

  1. #16
    Valued Forum Contributor OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,647

    Re: Constanty changing Workbook name( -2 business days)

    If your code opens the other workbook, then just store the current workbook:
    Dim wbkActive as workbook
    Dim wbkNew as workbook
    set wbkActive = activeworkbook
    set wbkNew = workbooks.open("path")
    wbkactive.activate
    Note though that it is very rarely necessary to activate anything in code to work with it.
    Good luck.

  2. #17
    Forum Contributor
    Join Date
    08-31-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    198

    Re: Constanty changing Workbook name( -2 business days)

    thanks, but my "Path" will always change though based on name = path (today minus 2 business days)

  3. #18
    Valued Forum Contributor OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,647

    Re: Constanty changing Workbook name( -2 business days)

    Path refers to the other workbook you are opening.
    Good luck.

  4. #19
    Forum Contributor
    Join Date
    08-31-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    198

    Re: Constanty changing Workbook name( -2 business days)

    Ok i got it implemented. thanks gentelment

+ 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.2.0