+ Reply to Thread
Results 1 to 4 of 4

Zipping file from folder containing name

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Exclamation Zipping file from folder containing name

    I have a code that zips files from a folder that have a certain word in the filename. When I run the macro it seems to find the file okay but then it comes up with an error like "The file name you specified is not valid or too long. Specify a different file name" and I don't know why. Here's a snippet of my code:

    Please Login or Register  to view this content.
    The line that is problematic is coloured in red.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Zipping file from folder containing name

    Can you pls explain what this thread is different from this one?

    http://www.excelforum.com/excel-prog...tton-name.html
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    01-28-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Zipping file from folder containing name

    I've updated the code and the question that I have is completely different.

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Zipping file from folder containing name

    Why do you use array for FName if it is only one string?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

+ 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. Zipping file from excel
    By mohanss82 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-15-2016, 04:36 PM
  2. Replies: 6
    Last Post: 08-11-2006, 03:41 PM
  3. [SOLVED] How can I reduce the size of my Excel file without zipping it?
    By Sizerd in forum Excel General
    Replies: 1
    Last Post: 02-13-2006, 08:10 AM
  4. Zipping a file
    By Chris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2005, 12:05 PM
  5. [SOLVED] macro to move from file to file, folder to folder
    By davegb in forum Excel General
    Replies: 0
    Last Post: 01-21-2005, 04:06 PM

Tags for this Thread

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