Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Error msg for "ShowAll"?
I have a button on a spreadsheet that accesses performs the "ShowAll"
function of: ActiveSheet.ShowAllData It works great unless all the data is present, of course. Rather than get the 1004 error of: "Run-time error '1004': ShowAllData method of Worksheet class failed" what can I add to the line of coding above, ActiveSheet.ShowAllData, to alert the user that all the data is showing? Thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Error msg for "ShowAll"?
Try:
On Error Resume Next ActiveSheet.ShowAllData If Err.Number < 0 Then Msgbox "All data is being shown" On Error Goto 0 -- Message posted from http://www.ExcelForum.com |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Error msg for "ShowAll"?
"kkknie " wrote in message ... Try: On Error Resume Next ActiveSheet.ShowAllData If Err.Number < 0 Then Msgbox "All data is being shown" On Error Goto 0 K Oh, thank you so much! This worked perfectly. I incorporated it into two sheets. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
"num#" errors .. how to average a group with a "num#" error | Excel Discussion (Misc queries) | |||
"Document not saved" "error in loading DLL" | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Shortcut key for "Paste Options" and "Error Checking" buttons? | Excel Discussion (Misc queries) | |||
Getting "compile error" "method or data member not found" on reinstall | Excel Programming |