Results 1 to 6 of 6

Hide column in multiple files in subfolders from folder

Threaded View

  1. #1
    Registered User
    Join Date
    05-26-2020
    Location
    Odense, Denmark
    MS-Off Ver
    2020 - 365
    Posts
    31

    Hide column in multiple files in subfolders from folder

    Hi Forum,

    I've been searching for a VBA solution for a long time and tried multiple threads on the web, but have not been able to make a final solution... So I need help!

    I have a bigger Excel "eco system", which contains multiple worksheets in multiple workbooks.

    Initial facts:
    • The workbooks are placed in subfolders within a main folder
    • The main folder is currently placed inside a Sharepoint environment
    • The Workbooks could contain multiple sheets to be considered
      - If sheet contains date in cell D2, it should be considered
      - sheets with the name "Log" and "Instruction" should never be considered



    What I want the VBA to do:
    • An initial inputbox where to enter week number and year.
    • Find the column where week number and year matches and hide the column.
    • Proceed to next sheet if available or move further on to the next subfolder if available.
    • Some sort of error handling / error messaging. "An error occured in file X, sheet X. Would you like to proceed or stop?"
    • Possibility to use the VBA even though some of the sheets already have the matching column date hidden.
    • Final MsgBox if the VBA succeeded.



    Is there anyone out there, that have the time and VBA experience to help me with a proper solution?
    Hope my explanation make sense... I would gladly add more info if needed. I've attched a simplfied version of the "eco system" for testing.

    BR, Rasmus
    Attached Files Attached Files
    Last edited by Ralleberg; 02-03-2022 at 10:41 AM. Reason: The problem is solved

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] list of subfolders in folder - without files and sub-subfolders
    By MartyZ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-11-2022, 10:56 AM
  2. [SOLVED] Move Files from current folder to a new subfolders specified in a column
    By zEKeBv in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-31-2020, 05:48 AM
  3. VBA Copy specific files listed in Excel from folder & subfolders to another folder - FSO
    By HelloFriends in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-03-2019, 02:55 PM
  4. Move pdf files from multiple subfolders to a new folder
    By fabian_76 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2018, 04:57 PM
  5. VBA that goes through all xls files in folder and subfolders
    By Acxer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-18-2015, 09:06 AM
  6. [SOLVED] Combining multiple files to workbook from folder, including subfolders
    By Punssiliini in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2015, 02:38 PM
  7. Counting files in folder including subfolders also and folder size
    By mido609 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2012, 03:26 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