+ Reply to Thread
Results 1 to 2 of 2

Write a string of text to all HTML files

  1. #1
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    117

    Write a string of text to all HTML files

    Hello

    Can anyone help me with some VB Code to write automatically on file open a string of text which is appended to all files that end in file extension ".HTML", if these file extensions exist?

    These files should be in a directory called "Z:\HTML"

    I know how to write to a file but I havenít figure out how to write to all files that end in a specific file extension so any assistance will be appreciated

    Thanks
    Tom

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: Write a string of text to all HTML files

    You will find quite a few examples online I'd think regards finding / iterating files by type etc... one option might be something along the lines of:

    Please Login or Register  to view this content.

+ 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