Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Naz Naz is offline
external usenet poster
 
Posts: 85
Default Excel DataForm not picking up correct list

Hi again,

I've written this code, headings are in row 5 and the data below.

Sub ShowEditForm()

Range("A5:O5").Select
ActiveSheet.ShowDataForm

End Sub

But when run it keeps on picking up data from row 2. A sheet heading and
nothing else.
What am I doing wrong.


--

_______________________
Naz,
London
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Excel DataForm not picking up correct list

When you use the ShowDataForm method, Excel looks for a range named
Database, or a table that starts in the range A1:B2. The following MSKB
article has some information:


ShowDataForm Method Fails If Data Can't Be Found
http://support.microsoft.com/default.aspx?id=110462

There are naming instructions he

http://www.contextures.com/xlNames01.html


Naz wrote:
Hi again,

I've written this code, headings are in row 5 and the data below.

Sub ShowEditForm()

Range("A5:O5").Select
ActiveSheet.ShowDataForm

End Sub

But when run it keeps on picking up data from row 2. A sheet heading and
nothing else.
What am I doing wrong.




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
lookup formula not picking up correct data skeyesq Excel Worksheet Functions 2 February 7th 10 08:27 PM
Picking a name from a list qjumper Excel Discussion (Misc queries) 2 May 25th 08 11:48 AM
picking correct number with < additional question scott Excel Discussion (Misc queries) 1 October 22nd 07 05:48 PM
Picking correct number with < scott Excel Discussion (Misc queries) 2 October 21st 07 10:21 AM
Picking Values from a list babygoode Excel Worksheet Functions 4 September 2nd 05 03:20 PM


All times are GMT +1. The time now is 03:44 AM.

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"