Dear Sir
I have an excel file and using following VB code for next and back, it is making only active sheet as visible.
Sub Do_Next()
sc = Sheets.Count
sn = ActiveSheet.Name
For sh = 1 To sc
If Sheets(sh).Name = sn Then
ns = sh + 1
If ns > sc Then ns = 1
Sheets(ns).Visible = -1
Sheets(sh).Visible = 2
End If
Next sh
End Sub
Sub Do_Prev()
sc = Sheets.Count
sn = ActiveSheet.Name
For sh = 1 To sc
If Sheets(sh).Name = sn Then
ns = sh - 1
If ns < 1 Then ns = sc
Sheets(ns).Visible = -1
Sheets(sh).Visible = 2
End If
Next sh
End Sub
in a worksheet, I have following sheets in order from left to right;
Consolidated Report
Welcome
New Style
Garment Detail
Picture
Operations
Machines Data
Layout
Report
Summary
Short
Need a vb code which save excel file as "Excel binary workbook", it should have all unhide sheets in following order, the file name should be picked from Sheet "Summary" and Cell "O6", the saved folder should be same as original file
New Style
Garment Detail
Picture
Operations
Machines Data
Layout
Report
Summary
Following sheets should not be saved in this file / OR DELETED
Consolidated Report
Welcome
Following sheet should be hide in this file
Short
The saved file should be hyperlinked with Original file sheet "Consolidated Report" "Range A3:300"
The range already have the file name, so it need to be hyperlinked
I have an excel file and using following VB code for next and back, it is making only active sheet as visible.
Sub Do_Next()
sc = Sheets.Count
sn = ActiveSheet.Name
For sh = 1 To sc
If Sheets(sh).Name = sn Then
ns = sh + 1
If ns > sc Then ns = 1
Sheets(ns).Visible = -1
Sheets(sh).Visible = 2
End If
Next sh
End Sub
Sub Do_Prev()
sc = Sheets.Count
sn = ActiveSheet.Name
For sh = 1 To sc
If Sheets(sh).Name = sn Then
ns = sh - 1
If ns < 1 Then ns = sc
Sheets(ns).Visible = -1
Sheets(sh).Visible = 2
End If
Next sh
End Sub
in a worksheet, I have following sheets in order from left to right;
Consolidated Report
Welcome
New Style
Garment Detail
Picture
Operations
Machines Data
Layout
Report
Summary
Short
Need a vb code which save excel file as "Excel binary workbook", it should have all unhide sheets in following order, the file name should be picked from Sheet "Summary" and Cell "O6", the saved folder should be same as original file
New Style
Garment Detail
Picture
Operations
Machines Data
Layout
Report
Summary
Following sheets should not be saved in this file / OR DELETED
Consolidated Report
Welcome
Following sheet should be hide in this file
Short
The saved file should be hyperlinked with Original file sheet "Consolidated Report" "Range A3:300"
The range already have the file name, so it need to be hyperlinked