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:

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,215,046
Messages
6,122,855
Members
449,096
Latest member
Erald

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
Back
Top