Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Find the Error in my Code Please

Just trying to select the data table and then have the SORT tool appear on
the screen. This code worked last night but when i bring up the file this
morning I kept getting the following error: Run-time error '1001' Show method
of Dialog class failed. Where have I gone wrong? THANKS!


Sub Button22_Click()
ActiveSheet.Range(Cells(8, 1), Cells(237, 12)).Select
Application.Dialogs(xlDialogSort).Show
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Find the Error in my Code Please

Works for me. Did you change ANYTHING? E.g. move the module from one
workbook to another etc...?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Find the Error in my Code Please

My GUESS would be that the workbook is protected - which would stop the
sort dialog being displayed

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Find the Error in my Code Please

As far as I know I hadn't changed a thing - just opened the file.
Just incase I had done something wrong i started in a brand new file from
scratch without any other macros or anything i just put in some random data
and tried to get this code to work and to no avail.

"Barry-Jon" wrote:

Works for me. Did you change ANYTHING? E.g. move the module from one
workbook to another etc...?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Find the Error in my Code Please

What version of Excel are you using? What OS? Have you got a full
office installation? Have you installed or changed the installation of
any applications on the machine causing the problem? Does it work on
any other machines?



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
Error dialog box meaning and how to find error Jeanne Excel Worksheet Functions 2 September 4th 08 04:59 AM
help with this error-Compile error: cant find project or library JackR Excel Discussion (Misc queries) 2 June 10th 06 09:09 PM
Can't seem to find the error with this code matelot Excel Programming 4 January 4th 06 02:10 AM
How can I still go to the error-code after a On Error Goto? Michel[_3_] Excel Programming 2 May 4th 04 04:21 AM
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) Tim[_36_] Excel Programming 4 April 23rd 04 02:53 AM


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