+ Reply to Thread
Results 1 to 14 of 14

Commandbutton loses transparency

Hybrid View

  1. #1
    Registered User
    Join Date
    11-04-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    85

    Re: Commandbutton loses transparency

    Hello Nilem,

    Thank you for your reply. As mentioned in my earlier attached file, the text written inside the cell should be visible and should not be deleted. The reason is that there is formula inside and the values are coming from somewhere. I was looking for a solution without deleting the text inside the cells. I worked on the code a bit and I guess it should work but for some reason everytime cell C6 gets selected after the Application.Caller.TopLeftCell command. I am still using the SUM approach by changing the cell range.

    Updated file attached with an added worksheet 'ShouldWork'. The gray colored cells are safe cells and can be used but C4, F4, C6, F6 should not be deleted.

    Moreover,
    I was initially going with the 'CommandButtons' and since it was not getting transparent and after your advice, I switched to 'Shapes' Now I am having difficulty in getting unique names of the 4 Shapes that we added. I tried ActiveSheet.Shapes("Rectangle 1").select, Rounded Rectangle, Textbox etc. I also tried a For Each myshape In ActiveSheet.Shapes loop but unable to get the name.

    Why I am doing this is because once the above issue is resolved, my next activity is to show/hide shapes with the .visible property. Infact in the past couple of hours, I was trying to write a new code to hide shapes on what is selected in 'H4' and 'I4' For example, if 'H4' contains 'M1' and 'I4' contains 2, the macro should hide 2 random shapes out of (M2, M3, M4) except M1 Similarly, if 'H4' contains 'M3" and 'I4' contains 1, the macro should hide 1 random shape out of (M1, M2, M4) except M3

    Thank you.
    Attached Files Attached Files
    Last edited by freeofcost; 11-19-2014 at 12:25 AM. Reason: Updated attachment

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ListBox Transparency
    By jquintana83 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2014, 05:12 AM
  2. Commandbutton in userform to execute code based on a previous commandbutton choice?
    By michaeljoeyeager in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2012, 03:28 PM
  3. Transparency for interior color?
    By reloader in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2006, 09:40 AM
  4. [SOLVED] combo box transparency
    By John Davies in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2005, 12:05 AM
  5. [SOLVED] I can not set transparency into chart
    By Stefano in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-10-2005, 11:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1