Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Populate Data Validation List

Hi. Is it possible to populate a data validation list with the sheet
names in a workbook? And as a sheet is added or sheet name changed,
the list automatically updates?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Populate Data Validation List

First enter this UDF:

Function sheetname(i As Integer) As String
sheetname = ""
If i Sheets.Count Then Exit Function
sheetname = Sheets(i).Name
End Function


Then, in an unused column, enter:
=sheetname(ROW()) and copy down

--
Gary''s Student - gsnu2007g


"Steve" wrote:

Hi. Is it possible to populate a data validation list with the sheet
names in a workbook? And as a sheet is added or sheet name changed,
the list automatically updates?

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
Auto Populate Date when specific entry is chosen from data validation btrich14 Excel Worksheet Functions 1 August 4th 10 03:56 PM
How can I populate a drop down list from Data Validation? Brian Excel Discussion (Misc queries) 1 August 17th 09 05:32 PM
Populate a Validation List WLMPilot Excel Discussion (Misc queries) 3 December 5th 07 12:49 AM
using selected data within a dropdown list to populate new list Roger on Excel Excel Programming 0 November 16th 07 07:55 PM
populate a validation List? HotRod Excel Programming 2 February 9th 05 03:13 PM


All times are GMT +1. The time now is 02:01 PM.

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

About Us

"It's about Microsoft Excel"