Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default HELP - Accidently Wiped Out CommandButtons

Greetings,

I was just finishing updating all 132 sheets when I accidently
overwrote my control sheet (Macros can be dangerous). I tried loading
my last save and coping that workbooks control sheet int the later
one, but when I tried to rename the new buttons with the same name as
the old (now missing) buttons, I got an ambiguous name error message.
I looked everywhere I could think of, but I could not find any if the
old buttons. If I can't find out how to fix this one page, then I
will have to repeat the last 3 hours of entry.

Anyone have any clue as to where to look to fix this problem?

TIA

-Minitman
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default HELP - Accidently Wiped Out CommandButtons

Maybe you just hid the buttons

Sub ShowButtons()
Dim oleObj as oleObject
Dim cbtn as MSForms.Commandbutton
for each oleObj in Activesheet.OleObjects
if typeof oleObj.Object is MsForms.CommandButton then
oleObj.Visible = True
set cbtn = oleObj.Object
msgbox cbtn.Name
end if
Next
End Sub

--
Regards,
Tom Ogilvy


"Minitman" wrote in message
...
Greetings,

I was just finishing updating all 132 sheets when I accidently
overwrote my control sheet (Macros can be dangerous). I tried loading
my last save and coping that workbooks control sheet int the later
one, but when I tried to rename the new buttons with the same name as
the old (now missing) buttons, I got an ambiguous name error message.
I looked everywhere I could think of, but I could not find any if the
old buttons. If I can't find out how to fix this one page, then I
will have to repeat the last 3 hours of entry.

Anyone have any clue as to where to look to fix this problem?

TIA

-Minitman



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
Locking the background so it's not wiped by cut-n-paste Mike Halsey Excel Discussion (Misc queries) 2 January 28th 10 05:20 PM
Need HELP! Excel docs wiped out Paul Excel Discussion (Misc queries) 0 June 23rd 08 03:04 PM
how do i recover excel 2002 that was wiped of my computer montiecarloman73 Excel Discussion (Misc queries) 2 July 22nd 07 04:18 PM
Commandbuttons PCOR Excel Programming 1 May 11th 04 11:21 PM
Filesearch Runny Like a Wiped Dog Phenomenon Dick Kusleika Excel Programming 0 August 13th 03 10:17 PM


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