#1   Report Post  
Mark F
 
Posts: n/a
Default Creating a Table

I have a multi sheet workbook that I set up so the majority of cells are
protected. I have some cells that I unlocked forvariable data entry. I would
like to build a table that shows on a navigation page all the cells that are
unlocked. Is there some way I can create this table?
  #2   Report Post  
William
 
Posts: n/a
Default

Mark

You coukd try this code

Sub test()
Dim ws As Worksheet, ws1 As Worksheet
Dim r As Range, c As Range
On Error Resume Next
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Application.EnableEvents = False
ThisWorkbook.Sheets("Summary").Delete
Set ws1 = ThisWorkbook.Sheets.Add
ws1.Name = "Summary"
For Each ws In Worksheets
If Not ws.Name = "Summary" Then
ws1.Columns("A:A").Insert Shift:=xlToRight
ws1.Range("A1") = ws.Name
With ws
Set r = .UsedRange
For Each c In r
If c.Locked = False Then _
ws1.Range("A65000").End(xlUp).Offset(1, 0) = c.Address
Next c
End With
End If
Next ws
ws1.Cells.Replace What:="$", Replacement:="", LookAt:=xlPart
Application.ScreenUpdating = True
Application.DisplayAlerts = True
Application.EnableEvents = True
End Sub

--
XL2002
Regards

William



"Mark F" wrote in message
...
| I have a multi sheet workbook that I set up so the majority of cells are
| protected. I have some cells that I unlocked forvariable data entry. I
would
| like to build a table that shows on a navigation page all the cells that
are
| unlocked. Is there some way I can create this table?


  #3   Report Post  
William
 
Posts: n/a
Default

Mark

You could try this code

Sub test()
Dim ws As Worksheet, ws1 As Worksheet
Dim r As Range, c As Range
On Error Resume Next
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Application.EnableEvents = False
ThisWorkbook.Sheets("Summary").Delete
Set ws1 = ThisWorkbook.Sheets.Add
ws1.Name = "Summary"
For Each ws In Worksheets
If Not ws.Name = "Summary" Then
ws1.Columns("A:A").Insert Shift:=xlToRight
ws1.Range("A1") = ws.Name
With ws
Set r = .UsedRange
For Each c In r
If c.Locked = False Then _
ws1.Range("A65000").End(xlUp).Offset(1, 0) = c.Address
Next c
End With
End If
Next ws
ws1.Cells.Replace What:="$", Replacement:="", LookAt:=xlPart
Application.ScreenUpdating = True
Application.DisplayAlerts = True
Application.EnableEvents = True
End Sub


--
XL2002
Regards

William



"Mark F" wrote in message
...
| I have a multi sheet workbook that I set up so the majority of cells are
| protected. I have some cells that I unlocked forvariable data entry. I
would
| like to build a table that shows on a navigation page all the cells that
are
| unlocked. Is there some way I can create this table?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I am having problems creating pivot table of data wyman Charts and Charting in Excel 1 January 12th 05 05:17 PM
table dow Excel Discussion (Misc queries) 0 January 12th 05 02:25 PM
Pivot Table Creating New Columns that Subtract Two Existing Columns den4673 Excel Discussion (Misc queries) 3 December 17th 04 01:31 PM
Data Table - does it work with DDE links and Stock Tickers? Post Tenebras Lux Excel Worksheet Functions 0 December 1st 04 05:17 PM
Data Table - Does it work with DDE links and stock tickers? Post Tenebras Lux Excel Discussion (Misc queries) 0 December 1st 04 05:15 PM


All times are GMT +1. The time now is 06:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"