+ Reply to Thread
Results 1 to 2 of 2

macro needed to hide form controls

  1. #1
    Forum Contributor
    Join Date
    11-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    204

    macro needed to hide form controls

    Hi champs,

    I have a xls file with many form controls (Scroll bars) and charts and data.

    For the print i need to save save the file as pdf without any form elements.

    Please help me in creating macro to hide all the form controls.

    I tried with below code but it hides the CHARTS too.

    Dim sh As Shape
    For Each sh In ActiveSheet.Shapes
    sh.Visible = False
    Next

    So please help if any specific macro is available to hide only form elements.


    Thanks in advance.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: macro needed to hide form controls

    try this
    Please Login or Register  to view this content.

+ 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. [SOLVED] Hiding Form Controls - Help Needed
    By Tenaciousjeebs in forum Excel General
    Replies: 3
    Last Post: 12-04-2014, 01:17 PM
  2. Form Controls / Active X controls to record and log information in a seperate sheet
    By marcbarnett in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-09-2014, 05:00 AM
  3. Replies: 1
    Last Post: 05-01-2014, 05:15 PM
  4. Hide all Form Controls VBA
    By clapforthewolfman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-07-2013, 05:52 PM
  5. Replies: 0
    Last Post: 01-27-2011, 01:43 PM
  6. Create mutiple combo box form controls using Macro
    By booo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2010, 07:51 PM
  7. Form controls vs. ActiveX controls
    By wmorrison49 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2008, 10:59 AM

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