I am trying to Consolidate Files out of a Sharepoint Folder

Hello Everyone. First off thank you in advance for the help. I had found a macro that worked very well for
consolidating a certain worksheet out of every workbook in the folder. This worked very well while the folder remained on our Shared network drive. Now, however, we are moving the folder to Sharepoint so more people can access and update the templates. My
issue now is I don't know how to make the macro reference a sharepoint folder. Can anyone help? Here is my current code.
Sub simpleXlsMerger()
Dim bookList As Workbook
Dim mergeObj As Object, dirObj As Object, filesObj As Object, everyObj As Object
Application.ScreenUpdating = False
Set mergeObj = CreateObject("Scripting.FileSystemObject")
Set dirObj = mergeObj.Getfolder("W:Merger Test")
Set filesObj = dirObj.Files
For Each everyObj In filesObj
Set bookList = Workbooks.Open(everyObj)
bookList.Worksheets("Forecast").Activate
Range("A4:IV" & Range("A65536").End(xlUp).Row).Copy
ThisWorkbook.Worksheets(1).Activate
Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial
Application.CutCopyMode = False
bookList.Close
Next
End Sub
Here is my new code. (which doesn't work, error code 76 "Path not Found")
Sub simpleXlsMerger()
Dim bookList As Workbook
Dim mergeObj As Object, dirObj As Object, filesObj As Object, everyObj As Object
Application.ScreenUpdating = False
Set mergeObj = CreateObject("Scripting.FileSystemObject")
Set dirObj = mergeObj.Getfolder("//sharepoint/sites/portmgmt/Capability and Portfolio Planning/John's
Merger Test/PES")
Set filesObj = dirObj.Files
For Each everyObj In filesObj
Set bookList = Workbooks.Open(everyObj)
bookList.Worksheets("Forecast").Activate
Range("A4:IV" & Range("A65536").End(xlUp).Row).Copy
ThisWorkbook.Worksheets(1).Activate
Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial
Application.CutCopyMode = False
bookList.Close
Next
End Sub

Firefox can handle its' own json and sqlite format for bookmarks/places, and it can handle the universal bookmarks.html interchange format, but it can't deal with the Favorites .url format - that's unique to IE and its' clones. Get that folder of .url files back into Internet Explorer and then export that data as an HTML file.
In IE: <br />
File > Import/Export - Export to HTML file
''then in Firefox:'' <br />
Bookmarks > Organize Bookmarks -> Import & Backup - Import HTML... = From HTML file

Similar Messages

  • How can I get settings files out of the Library folder?

    I had to do a clean reinstall (erase & reinstall) to clear up some problems on my Mac. Unfortunately, when you do this, your settings, customizations, bookmarks etc. aren't transferred over as they do when you upgrade in the normal way.
    For example, dashboard widgets are in each user's <home folder>/Library/Widgets folder.
    I could restore some of these settings by dragging the settings files from the old System Folder to the new one. Unfortunately, Apple is making this harder by hiding the Library folder in the user folder, both on the Mac and on the backup drive.
    There is a command to enter in Terminal to show your Library folder, but this only seemed to work on the Mac and not on my backup drive.
    How can I get key settings files out of the Library folder on my backup drive when the Library folder is hidden?
    Thanks

    Open the enclosing folder, choose Go to Folder from the Finder's Go menu, and provide Library as the path.
    (80699)

  • I took the system file out of the system folder on os 9.2 can't boot to put file back in machine also has osx 10.2 but won't let me boot to either need os 9 compatible boot disk I think?

    I took the system file out of the system folder on os 9.2 can't boot to put file back in machine also has osx 10.2 but won't let me boot to either need os 9 compatible boot disk I think?

    If the OS X 10.2 on the hard drive is/was bootable, try this -
    Restart or boot, then immediately press the X key, keep it held down until you know the machine has started to boot using OS X. This is a hardware instruction to the Mac to boot using the first usable instance of OS X it finds.
    Once booted to OS X, you should be able to move OS 9's System file into OS 9's System Folder.
    Note - in general, unless you know for sure what you are doing and that the results are desired, do not relocate or rename files in OS 9's System Folder or in OS X's System or Library folders.

  • When trying to 'Consolidate Files' via iTunes I get the message "Copying files failed. The name was invalid or too long."

    I am trying to copy my entire iTunes library and everything in it from my PC Desktop to my PC Laptop using the "External Drive" method as shown on the Apple website. On Part 1 (5) I am told to consolidate files. When attempting to do this I get the message "Copying files failed. The file name was invalid or too long."
    How do I resolve this?

    I have just been having this problem and it has been driving me mad.   The error message doesn't tell you which file is causing the problem so you can't fix it and it leaves your libray in a state of limbo with some files copied into the new location and some in the old location.  After many hours I found a surprisingly quick and simple solution.
    1) in iTune create a smart play list that includes everything that was added before tomorrows date.  This will include everything.
    2) Right click this playlist and export it as a text file to produce a tab delimited file.
    3) Import this into a spread sheet, or just view it in a text editor with line wrap turned off.  What you are interested in is the last column (or end of the line in a text editor).  This gives you the path of the file associated with each entry in the library. 
    The path of the files that have already been copied successfully will start with the new location for your media files you specified.  Scroll thru the rows until you get a blank path.  If you start getting paths starting with the old Media file location then you went to far and start scrolling back.
    The row with the blank path was the file that failed.  Move back to the start of the row to find out more about it.  In my case it was a podcast with a very long name. I just deleted that podcast from iTunes.
    4) Restart the consolidation by choosing File, Library as you did before and the process starts again where it left off.
    5) If it fails again on another file just repeat the process

  • Why has itunes moved my music files out of the Music folder?

    To my horror I just found out that itunes has moved folders (albums) out of the Music folder, Ive always found those folders very well organized (music, movies, podcasts, etc) now Im seeing some albums mixed with those folders (out of the music folder) and some albums IN the music folder as well, even worse I have the same folder inside Music and out!! with a few tracks on each, but in iTunes everything looks normal and it plays the album as usual, Im losing my mind over this I cant find a way to fix it, I even started moving them manually but there are too many, and for the duplicate folders I have to move the tracks that were moved. Any idea on why did this happen? I dont want to move the folders and lose hours only to find out that itunes did it again!! I thank you very very ver much in advance.

    iTunes on a Mac may be more forgiving if you move things around manually, but it isn't really recommended.
    Here are typical layouts for the iTunes folders:
    If you have upgraded from version 8 (or earlier) to iTunes 9 (or later) at some point, then your media folder (everything inside the red outline) may still be called iTunes Music instead of iTunes Media. The extra Music folder inside the media folder is used if you had an older library and have allowed iTunes to Upgrade to iTunes Media Organization (iTunes 9) or used File > Library > Organize Library > Reorganize files in the folder "<Media Folder>" (iTunes 10/11). Depending on your choices for Keep iTunes Media folder organized and Copy files to iTunes Media folder when adding to library plus a little bug in which one build changed the name of the file storing the choice of layout it is quite easy for some of your files to be organized according to one layout and some the other. (Recent installs of iTunes on a Mac now give the library file the .itl extension)
    Assuming you're happy letting iTunes organize your files the following steps should tidy things up (should it be necessary):
    1. Select File > Library > Organize Library... > Tick Reorganize files in the folder "<Media Folder>" and click OK. Skip if this option is grayed out (already upgraded) or you prefer the older layout.
    2. Select File > Library > Organize Library... > Tick Consolidate files and click OK. This will bring any files currently organized outside the designated media folder into it.   N.B. This will create duplicate copies of any file that needs to be consolidated, and you will need to manually clean up afterwards.
    3. Select iTunes > Preferences > Advanced tab, uncheck Keep iTunes Media folder organized and click OK.
    4. Select iTunes > Preferences > Advanced tab, check Keep iTunes Media folder organized and click OK. This triggers iTunes into reorganizing everything according to your preferences.
    5. (Optional, if applicable) Close iTunes, rename the media folder iTunes Music as iTunes Media then restart iTunes. Check under iTunes > Preferences > Advanced tab that the location has automatically updated. If you can't access the media for any reason just undo the folder rename.
    PS If you really prefer the older layout, but it is already in the new one then, edit the hidden file .iTunes Preferences.plist in your media folder and change the integer from 1 to 0 before doing step 3.
    You should backup your library before attempting any major reorganization.
    If iTunes is still creating files or folders in the wrong locations there is a possibility of permissions problems. Offhand I'm not sure of the correct OS X terms but on Windows both the system and user accounts should have full access permissions to all files & folders within the iTunes folder in order for it to work properly.
    tt2

  • I am using itunes 10 and trying to consolidate my files.  I keep getting the error "Copying files failed.  The file name was invalid or too long".  How can I indentify what file is causing this problem or resolve this issue?

    I am using itunes 10 and trying to consolidate my files.  I keep getting the error "Copying files failed.  The file name was invalid or too long".  How can I indentify what file is causing this problem or resolve this issue?

    BUMP
    Yes, I just get that message. I don't see how I could investigate this problem.
    I didn't mention that this happened when I was consolidating my library, not copying files to another computer.
    In other words, I'm using a "normal" itunes procedure, itunes won't complete it, and won't tell me exactly why or how to figure out how to fix it...
    Is there at least some easy way to tell which files were successfully copied to my itunes music folder so I can work on moving the uncopied files?
    Can anybody help me?

  • I have tried to consolidate all my music files to my Itunes Media folder but it is still missing quite a few files. How can I fix this?

    So I just bought a new computer and want to transfer my itunes library over. I went through the organize library option and consolidated the files to the itunes media folder, but when i checked the folder it was missing many files still. I tried to consolidate again and it didn't do anything. How can I fix this?

    Just to clarify ... you still have media files that are linked correctly from iTunes (i.e., right-click > Get Info, File tab shows the correct location), but these have not been moved to the "expected" location - assuming your iTunes folder is in the default place - C:\Users\username\Music\iTunes\iTunes Media\Music\artist_name\album_title - correct?
    There are a couple of other scenarios in which iTunes may not be able to complete the consolidation process:
    Some folders in the iTunes Media hierarchy might be set to read-only - to fix this, right-click on your iTunes Media folder in Windows Explorer and select Properties.  On the General tab there's a check box labeled "Read-only" - click the box so that the flag is unchecked and the box is white.  Click OK, and then OK again when the "Apply changes to this folder, subfolders and files" option selected.
    Windows permissions issues are preventing iTunes from moving your media files (there's some anecdotal evidence of a change in this behavior in iTunes 12).  See turingtest2's notes on Repair security permissions for iTunes for Windows for advice on fixing this.
    Then try the consolidation process again ... if it still doesn't work as expected we'll need to dive further into details of how your media is currently organized and how the non-moving items appear in iTunes.

  • HT4527 In trying to consolidate all my music on the old computer, I got this message: "Copy files failed.  The file name was invalid or too long."  What can i do to consolidate?

    How can i fix this?

    Go to the songs view sorted as Album by Artist. Select, for example, the songs of artists whose names begin A-E. Right-click and click consolidate files. Assuming this group consolidate without error move on to another group, say F-J. If there is an error divide the original group into smaller chunks until you can isolate which tracks are causing a problem.
    tt2

  • I Get an Error When Trying to Consolidate Library

    I am trying to consolidate my music library with Itunes, but when I choose "Consolidate Library" I get the message "Copying music failed. The file name was invalid or too long" Does anyone know how to fix this? I'm really getting fed up with Itunes and can't seem to get any support. Please help.

    Hi, globe9.
    This can be a tricky problem to figure out since iTunes doesn't specify what file name - nor is there any documentation saying what determines when a file name - is "invalid or too long".
    We had one user report that he was able to use his/her keen eyesight to note the last file that appeared before the error message appeared and it turned out that file was the cause of his/her trouble.
    If your eyesight isn't that keen, I'd suggest concentrating on the file name being too long possibility.
    The entire directory path leading to the file is considered part of the file name so, as an example, iTunes' default settings might place a particular file at C:\Documents and Settings\user name\My Documents\My Music\iTunes\iTunes Music\artist folder\album folder\whatever.m4a.
    Is the directory path leading to your consolidated location much longer than that?
    polydorus has suggested a way to look over your file names: Assuming your music is currently in the default location, make your way there with Windows Explorer and select List in the View menu menu and see if anything stands out as being unusual.

  • Finalized completed imovie (10 hours) then said I needed to consolidate files to computer- nothing seems to be working.  Help

    I made me first Imovie and then started long process of finalizing project.  It took hours, but then there was a notice that I needed to consolidate files not on harddrive (I believe it is a short video clip I imported from youtube.)  There is a window that came downn...."some clips used in the project are not on the hard disk.  To consolidate all clips onto your hard diis, do one of the following....copy the events (788mb)  Copy the clips (826) Move the events (788mb)
    I have clicked cop the events...tried copy the clips and clicked on move the events...but nothing seems to change and the need to consolidate continues to appear.  I have NO IDEA how to do what is requested of me.  please help
    thank you
    patsy 2

    Update:
    I called Lenovo again and this time Shamari from North carolina was able to help me, she explained that I wouldnt be charged the 15% restocking fee since i began the cancellation before it shipped. She sent me an email stating it for my records and was really understanding. The previous lenovo employee made it sound like if it shipped I was out of luck. He could have done a better job explaining that i wouldnt be charged the restocking fee. Ill post again once it is all over but it looks like everything should go well. Thanks Shamari!

  • Moving Library from PC to MAC without space to Consolidate Files

    Hi,
    I really need some help.
    This is my situation:
    - I own a Windows PC with 500GB hard drive, in which i have 350gb of music all included on itunes with covers, ratings, etc. I have never checked the "Keep Itunes Media folder organized" nor the "Copy files to iTunes Media Folder when adding to Library" just because i do not have enough space for it.
    - I just bought a 1TB MacBook Pro, and now I want to move everything without loosing anything.
    - I also own a 1TB WD External hard drive.
    - I have Itunes 11 on both Windows PC and new Macbook
    I've read that consolidating library and copying Itunes folder to External Hard Drive might be a solution, but like i said for lack of space in my PC i can't...
    I cannot seem to find an answer to my issue in the support site though there probably is.
    Anyone that can help me out?
    I would really appreciate it!!!
    Thanks!

    merrick777 wrote:
    UPDATE: Apparently I had enough hard drive space to FIRST check the 'Reorganize files in iTunes Music folder' and THEN check 'Consolidate files'.  Then I exported the library, but the exported files is only 588 Kb... that can't be right. Pls help!
    Exporting the library simply creates a text files of the info.
    Exactly (to the folder level) where are all the media files located?
    If they are in /Music/iTunes/ folder somewhere, simply copy the entire /Music/iTunes/ folder to /Music/ on the Mac.
    That is all you need to do.

  • Deleting files out of system preferences desktop background.

    Does anyone know how to delete files out of system preferences>desktop & screen saver?
    Some how when adding one photo to the file for the desktop background it took the entire photo file. So that instead of one photo for the file it has over 200 now. Read everything and tried everything. Still can't figure out how to delete that file from the list.
    I know how to add photos or whatever to use as desktop background just no idea how to remove them from the list.
    Any ideas?

    Doug,
    When you go to system preferences>desktop & screen savers>desktop. On the left is a window with the names of the images listed. Apple Images, Nature file, Plants file, Picture Folder, Choose Folder and so forth. The ones that come with Apple products. Not sure what all else is native to Apple.
    Iv been using my own desktop background since the day I got the iBook. Normally I just get one photo or image and more it there to use. But, last week I did something different or wrong. Maybe holding a button to long, not sure. Instead of moving the one photo it moved the entire photo file. That file had over 200 (2,500x1,800 in size & over 550KB for each) and probably closer to 250 photos in it.
    Way to many to be there. And I simply can't find a way to remove that file from the desktop list. I can high light it, but it doesn't delete with the delete button. I can high light it, but it doesn't change anything in system preferences banner to edit, view, etc....to remove it either. It won't click & drag to trash.
    Being very careful because I don't want to delete the file and by error delete it totally off the computer. I could creat a new file with only 1 photo in it for use as the desktop background. Then try to choose that file. However, since the last big OS-X update it's been doing this. Everytime I choose a file or photo it's adding the entire file not just the 1 photo. And Iv managed to add 3 files so far to that list.
    Any ideas? Thx, Mike

  • Hi, I am using HP11 and iPlanet web server. When trying to upload files over HTTP using FORM ENCTYPE="multipart/form-data" that are bigger than a few Kilobytes i get a 408 error. (client timeout).

    Hi, I am using HP11 and iPlanet web server. When trying to upload files over HTTP using FORM ENCTYPE="multipart/form-data" that are bigger than a few Kilobytes i get a 408 error. (client timeout). It is as if the server has decided that the client has timed out during the file upload. The default setting is 30 seconds for AcceptTimeout in the magnus.conf file. This should be ample to get the file across, even increasing this to 2 minutes just produces the same error after 2 minutes. Any help appreciated. Apologies if this is not the correct forum for this, I couldn't see one for iPlanet and Web, many thanks, Kieran.

    Hi,
    You didnt mention which version of IWS. follow these steps.
    (1)Goto Web Server Administration Server, select the server you want to manage.
    (2)Select Preference >> Perfomance Tuning.
    (3)set HTTP Persistent Connection Timeout to your choice (eg 180 sec for three minutes)
    (4) Apply changes and restart the server.
    *Setting the timeout to a lower value, however, may    prevent the transfer of large files as timeout does not refer to the time that the connection has been idle. For example, if you are using a 2400 baud modem, and the request timeout is set to 180 seconds, then the maximum file size that can be transferred before   the connection is closed is 432000 bits (2400 multiplied by 180)
    Regards
    T.Raghulan
    [email protected]

  • Crashes after trying to open file!?

    I'm trying to open files in Elements 11. Finder quickly flashes up then disappears. After that, all the menu options are greyed out (including "QUIT"). I then need to Force Quit. Can't get any further!
    Help please!

    Are you using OS X Mavericks? If so, you need to get your finder windows and the PSE Open window out of cover flow view. Switch to List or icon view instead.

  • HT1751 I did all of the above and at the "Consolidate files" screen I clicked "ok" then it sayd "copying files failed. the file name was invalid or too long" and I had to click "OK"  I cannot consolidate the files to transport  to my external harddrive -h

    I would like to backup my itunes to my external hard drive
    I did all the steps up to "organize Liberary" which at this point I checked the box and the clicked"ok"
    it then said "copying files failed.  The file name was invalid or too long" "OK"
    It will  not let me consolidate the files so I can transfer to my external hard drive
    what am I doing wrong - any suggestions?
    thanks,

    Are you using consolidate files to bring in stray files to your main iTunes Media folder before backing up, or to copy the media folder to the external drive as part of backing up? If it is the latter then you are taking the wrong approach. See this user tip.
    Run my script Unconsolidated on the library. It will show you the remaining unconsolidated files which might give a clue as to which files iTunes is having a problem with. You can consolidate selected files in batches (select, right-click) as opposed to trying to do everything in one go. Alternatively you could try moving the remaining unconsolidated files with ConsolidateByMoving as long as this step is a precursor to a backup..
    tt2

Maybe you are looking for

  • Flash Player does not work with Standard User, but will work when browser is "Run as Administrator"

    I don't understand why this is happening, but Flash Player will not work when a Standard User is using the browser. It will only work when the browser is run as an administrator. Any way to fix this? I've tried to uninstall, and reinstall the player,

  • Poor Wifi

    Hi all  Ive posted on this subject before and thought it had gone away. I have a BB speed of 6.6mbs via the ethernet. We use several devices on Wifi. iphones, ipad. In auto the Router (HomeHub 3) gives a wifi of 6.6mbs for a period of time then speed

  • Itunes store wont connect to the internet?

    Itunes wont connect to the itunes store. The error message it gives me says "Itunes could not connect to the iTunes store, make sure your network is active and try again." I can use the internet fine, and all programs can connect but itunes. I have t

  • Debugging is not Triggered

    Hi Experts, I've the problem that the Debugging is not triggered. I found your replies in SDN. I tried in all ways that you have specified. ie: i) From SE80>UTILITIES>SETTINGS>ABAP EDITOR>DEBUGGING--> enetr the username for EXTERNAL Debugging.     ii

  • Java.lang.NoClassDefFoundError: oracle/sql/CharacterSet

    Okay, I give! I keep getting this runtime error when running this program I wrote. the oracle directory (where all the classes are stored) resides in the directory where my Class files live. I even added: ./ to my classpath, but that didn't help at a