Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 201
Default ListDataFormat property been deprercated?

The following is a section of code from the help file for the "Excel Help
ListData Format" object.

Is it just me or does the ListColumn object not have a ListDataFormat
property? I'm using Office 2007.

Anyone know if this has been deprecated and was just left in the help file?

---

Dim objListObject As ListObject
Dim objDataRange As Range
Dim strListGUID as String
Dim strServerName as String

strServerName = "http://<servername/_vti_bin"
strListGUID = "{<listguid}"

Set objListObject = Sheet1.ListObjects.Add(xlSrcExternal, _
Array(strServerName, strListGUID), True, xlYes, Range("A1"))

With objListObject.ListColumns(2)
Set objDataRange = .Range.Offset(1, 0).Resize(.Range.Rows.Count - 2, 1)
If .ListDataFormat.Type = xlListDataTypeText And
..ListDataFormat.Required Then
objDataRange.Value = "Hello World"
End If
End With

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 201
Default 3rd Party Objects? ListDataFormat property been deprercated?

http://msdn.microsoft.com/en-us/library/bb223935.aspx
says here it is now read only - this field was made hidden in 2007.
guess there is no way to set field types now on list objects
Does anyone know if there is 3rd Party object that allows you to be able to
set field types in excel and push it to sharepoint?

"Phil" wrote:

The following is a section of code from the help file for the "Excel Help
ListData Format" object.

Is it just me or does the ListColumn object not have a ListDataFormat
property? I'm using Office 2007.

Anyone know if this has been deprecated and was just left in the help file?

---

Dim objListObject As ListObject
Dim objDataRange As Range
Dim strListGUID as String
Dim strServerName as String

strServerName = "http://<servername/_vti_bin"
strListGUID = "{<listguid}"

Set objListObject = Sheet1.ListObjects.Add(xlSrcExternal, _
Array(strServerName, strListGUID), True, xlYes, Range("A1"))

With objListObject.ListColumns(2)
Set objDataRange = .Range.Offset(1, 0).Resize(.Range.Rows.Count - 2, 1)
If .ListDataFormat.Type = xlListDataTypeText And
.ListDataFormat.Required Then
objDataRange.Value = "Hello World"
End If
End With

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
Get Property value of class instance by passing string property name [email protected] Excel Programming 2 October 19th 07 05:47 PM
Runtime error 380 - Could not set the list property. Invalid property value. [email protected] Excel Programming 3 February 27th 07 06:35 AM
Could not set the ControlSource property. Invalid property value error Ömer Ayzan Excel Programming 2 October 31st 06 09:15 AM
Runtime Error 380 – Could not set the list property. Invalid property value BernzG[_16_] Excel Programming 2 August 21st 05 10:10 PM
Runtime error 380: Could not set the List property. invalid property value of listbox jasgrand Excel Programming 0 October 6th 04 09:28 PM


All times are GMT +1. The time now is 11:09 AM.

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"