LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Still need help with a code reference problem - Excel 2002 XP

aflatoon wrote in
:


You should be able to use syntax like:



Code:
--------------------




With Sheets("Timesheet").buttons("Button 21")
.Height = 20
.Width = 40
End With

--------------------




for example.

I found it purely because I was looking for it! It's the only thing I
know of that would cause the symptoms you were describing, so I wrote
some code to output the names and locations of every button on the
sheet.

The code does not actually exist any more. The buttons had macros
assigned to them, but the macros have since been removed. It's an
occasional oddity that can occur with buttons and protected sheets -
usually seems to happen due to deleting cells that the button was
located in.



Isis;731903 Wrote:

aflatoon wrote in
:

Sheets("Timesheet").buttons("Button 21").delete


aflatoon, thanks very much for taking the time to find this.

If I may ask a couple of questions;

Can I just enlarge this button so I can see it ? I cannot seem to find
the code syntax to do that.

How did you find the button ?

Why doesn't the code on the button how up anywhere in teh code or

macro
editors ?

Trying to learn something here :-)

Thanks for the help




aflatoon,

Thanks very much for spending the time to help - I appreciate it.

The Protect/Unprotect thing is a lot more complicated that one might like
but I will have to get to grips with it if the worksheet is gong to be an
use to the poeple who need to use it - one step nearer !

Regards



 
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
Non existent code reference problem Isis[_2_] Excel Programming 8 May 25th 10 10:57 PM
Excel 2002: How to get the first and last reference in a column ? Mr. Low Excel Discussion (Misc queries) 7 November 22nd 08 07:07 PM
Excel 2002 has encountered a problem and needs to close /Code Clea Peter Excel Programming 7 November 12th 07 02:00 PM
Problem with VBA code written in Excel 2002 working in Office 2003 [email protected] Excel Programming 2 July 11th 06 08:44 PM
Code Reference Problem Todd Huttenstine Excel Programming 0 April 28th 04 09:32 PM


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