VBA for folder

Macaela

New Member
Joined
Jan 5, 2021
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
Please help with below problem.

What i want to do is if the item is shown on the index sheet then folder will be made. if the items is hidden a folder will not be made????

Or if someone can just help me get folders to be made from the items shown anywhere without have a file path???

VBA Code:
    'Index Populate Line 2
    If Worksheets("Generate").Range("L5").Value = "x" Then
       
        Worksheets("Index").Activate
        Rows("14").Select
        Selection.EntireRow.Hidden = False
        'Increment the numbering by 1
        Worksheets("Index").Range("A14").Value = visibilityCounter
        visibilityCounter = visibilityCounter + 1
       
       Else
       Worksheets("Index").Activate
        Rows("14").Select
        Selection.EntireRow.Hidden = True


Sub Create_Folders()

Dim sh As Worksheets
Set sh = ThisWorkbook.Sheets("Index")

'create folder where-ever document open'

Dim i As Integer

For i = 14 To sh.Range("B" & Application.Rows.Count).End(43).Row

Next i

End Sub
 
Last edited by a moderator:

Some videos you may like

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Watch MrExcel Video

Forum statistics

Threads
1,127,505
Messages
5,625,199
Members
416,080
Latest member
blemon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top