Results 1 to 6 of 6

Creating VBA Button to Do Three Operations Simialtaniously

Threaded View

  1. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,953

    Re: Creating VBA Button to Do Three Operations Simialtaniously

    Try this version with a ToggleButton:
    Private Sub ToggleButton1_Change()
        With ThisWorkbook
            If ToggleButton1 = True Then
                .Sheets("Thai Menu").Visible = False
                .Sheets("Menu-MASTER").Range("C1,P1,AC1").EntireColumn.Hidden = True
                .Sheets("Options-MASTER").Range("C1,P1,AC1,BC1,BP1,CC1,CP1").EntireColumn.Hidden = True
                ToggleButton1.Caption = "Unhide"
            Else
                .Sheets("Thai Menu").Visible = True
                .Sheets("Menu-MASTER").Range("C1,P1,AC1").EntireColumn.Hidden = False
                .Sheets("Options-MASTER").Range("C1,P1,AC1,BC1,BP1,CC1,CP1").EntireColumn.Hidden = False
                ToggleButton1.Caption = "Hide"
            End If
        End With
    End Sub
    BSB
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Creating VBA Button to Do Two Operations Simultaneously
    By djc123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2018, 07:39 AM
  2. [SOLVED] Button to calculate multiple math operations in a userform, at once
    By Alex Piotto in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-26-2018, 05:56 AM
  3. [SOLVED] Help creating a macro button
    By glenlaw in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-15-2013, 12:10 AM
  4. Creating a simple button
    By jaywizz in forum Excel General
    Replies: 2
    Last Post: 08-03-2009, 09:42 AM
  5. Creating a Macro Button
    By Newton1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2008, 11:46 AM
  6. Creating a Print Button
    By william4444 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 06-22-2006, 02:33 AM
  7. Creating a custom button...
    By andyd2k in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-15-2005, 04:26 PM

Tags for this Thread

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