Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default problems with Data Form macro

Having a problem with a macro. Hoping someone can help me
out. I have programmed the macro as follows:

ActiveSheet.Unprotect
Columns("A:J").Select
Selection.EntireColumn.Hidden = False
Range("E27").Select
ActiveSheet.ShowDataForm

but receive the following error message when I try to
execute it:

Run-time Error '1004':

ShowDataForm method of Worksheet class failed.

Basically I want the macro to unprotect my sheet, then
unhide some of the columns I have hidden, then show a
data form for the user to use. If someone can help me it
would greatly be appreciated. Thanks in advance.

Jeff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 201
Default problems with Data Form macro

Don't know what you are wanting to do or what you want to happen. If you
have a UserForm that you want to show, use:
MyFormName.Show HTH Otto
"Jeff Johnston" wrote in message
...
Having a problem with a macro. Hoping someone can help me
out. I have programmed the macro as follows:

ActiveSheet.Unprotect
Columns("A:J").Select
Selection.EntireColumn.Hidden = False
Range("E27").Select
ActiveSheet.ShowDataForm

but receive the following error message when I try to
execute it:

Run-time Error '1004':

ShowDataForm method of Worksheet class failed.

Basically I want the macro to unprotect my sheet, then
unhide some of the columns I have hidden, then show a
data form for the user to use. If someone can help me it
would greatly be appreciated. Thanks in advance.

Jeff



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default problems with Data Form macro

See this KB

http://support.microsoft.com/default...62&Product=xlw
ShowDataForm Method Fails If Data Can't Be Found


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Jeff Johnston" wrote in message ...
Having a problem with a macro. Hoping someone can help me
out. I have programmed the macro as follows:

ActiveSheet.Unprotect
Columns("A:J").Select
Selection.EntireColumn.Hidden = False
Range("E27").Select
ActiveSheet.ShowDataForm

but receive the following error message when I try to
execute it:

Run-time Error '1004':

ShowDataForm method of Worksheet class failed.

Basically I want the macro to unprotect my sheet, then
unhide some of the columns I have hidden, then show a
data form for the user to use. If someone can help me it
would greatly be appreciated. Thanks in advance.

Jeff



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default problems with Data Form macro

I posted the following message earlier today and received
a couple of responses from Ron de Bruin & Otto Moehrbach.
Unfortunately when I click on their response all I get
is "Message Unavailable". Could somebody email me their
responses if it shows up for them? It would greatly be
appreciated. Thanks.

-----Original Message-----
Having a problem with a macro. Hoping someone can help

me
out. I have programmed the macro as follows:

ActiveSheet.Unprotect
Columns("A:J").Select
Selection.EntireColumn.Hidden = False
Range("E27").Select
ActiveSheet.ShowDataForm

but receive the following error message when I try to
execute it:

Run-time Error '1004':

ShowDataForm method of Worksheet class failed.

Basically I want the macro to unprotect my sheet, then
unhide some of the columns I have hidden, then show a
data form for the user to use. If someone can help me it
would greatly be appreciated. Thanks in advance.

Jeff
.

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
Data validation causing problems when using a data form in Excel 2 Peter Excel Worksheet Functions 1 November 27th 09 12:00 AM
Macro to bring up Data Form jk Excel Discussion (Misc queries) 1 October 19th 09 11:59 PM
Data Form, Macro and Countif helen wheels Excel Worksheet Functions 1 November 23rd 07 10:31 PM
Data Entry Form: Macro-One To Many [email protected] Excel Discussion (Misc queries) 10 April 20th 07 01:04 PM
Data Form has macro issues SIR Knight Excel Discussion (Misc queries) 2 December 12th 06 12:39 PM


All times are GMT +1. The time now is 10:03 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"