Solved

Lost command buttons

Posted on 2011-03-03
7
236 Views
Last Modified: 2012-05-11
Experts,
I had command buttons from R6:R83, Column [0]. I did a filter, removed the filter now I have only a command button on R[6]C[0]. I've not deleted any, yet I can not see the only one command button in cell R6:C0
1392-Mem-Expenses-03-11.xlsm
0
Comment
Question by:Frank Freese
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 30

Expert Comment

by:SiddharthRout
ID: 35030183
If you move that command button, you will find all the command buttons are re-sized and hidden behind that button.

You need to right click on the button, before you autofilter and click on "Format Control". Under "Properties" tab, select "Do not move or size with cells" :)

Sid
0
 

Author Comment

by:Frank Freese
ID: 35030285
is there a way to recover?
0
 
LVL 30

Expert Comment

by:SiddharthRout
ID: 35030307
Yes but it is very painful. I can try to write a code which can align all the button in that sheet right below one another but then you will have to finally arrange them manually by dragging.

Sid
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

Author Comment

by:Frank Freese
ID: 35030319
if you don't mind - thanks (off to the dentist)
0
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 300 total points
ID: 35030408
Here you go. File Attached.

Sid

Code Used

Sub Sample()
    Dim ol As Shape
    Dim nTop As Long
    nTop = 10
    For Each ol In ActiveSheet.Shapes
        If ol.Type = 8 Then
            ol.Height = 21
            ol.Width = 50
            ol.Top = nTop
            ol.Left = 0
            nTop = nTop + 25
        End If
    Next
End Sub

Open in new window

Recovered-1392-Mem-Expenses-03-1.xlsm
0
 
LVL 85

Assisted Solution

by:Rory Archibald
Rory Archibald earned 200 total points
ID: 35034837
(NFP)

If you alter that to:
Sub Sample()
    Dim ol As Shape
    Dim nTop As Long
    nTop = 10
    For Each ol In ActiveSheet.Shapes
        If ol.Type = 8 Then
            ol.Placement = xlFreeFloating
            ol.Height = 21
            ol.Width = 50
            ol.Top = nTop
            ol.Left = 0
            nTop = nTop + 25
        End If
    Next
End Sub

Open in new window


then it will also set the no move or size property for you.
0
 

Author Closing Comment

by:Frank Freese
ID: 35036138
thanks - great works folks.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question