Solved

Lost command buttons

Posted on 2011-03-03
7
232 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
  • 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

832 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