PC Review


Reply
Thread Tools Rate Thread

A check box to open and close Columns

 
 
=?Utf-8?B?U3RldmVk?=
Guest
Posts: n/a
 
      6th Aug 2007
Hello from Steved

Below I can put in a tick in the CheckBox and it will open the hidden
columns take the tick out and it will close. It is fine on my Computer. My
issue is when I email to a client it will not operate. What do I need to do
please to allow this function. I thankyou.

Private Sub CheckBox1_Click()
Dim r As Range
Set r = Range("K1:L1,N1:O1,Q1:R1,T1:U1,W1:X1,Z1:AA1,AC1:AD1,AF1:AG1")
r.EntireColumn.Hidden = Not r.EntireColumn.Hidden
End Sub

 
Reply With Quote
 
 
 
 
=?Utf-8?B?T3NzaWVNYWM=?=
Guest
Posts: n/a
 
      6th Aug 2007
The other person may have macros disabled. To enable macros:-

xl2007: Click on large Microsoft Office button top left of screen. Select
Excel Options towards bottom right of screen-> Trust Center-> Trust Center
Settings-> Macro Settings and set option to Disable with notification. The
user will get a dialogue warning box in which they have to select allow the
macro to run.

Earlier versions of xl: Select Tools-> Macro-> Security -> Security Level
tab and set to medium. User will get a warning dialogue box as above.

Regards,

OssieMac


"Steved" wrote:

> Hello from Steved
>
> Below I can put in a tick in the CheckBox and it will open the hidden
> columns take the tick out and it will close. It is fine on my Computer. My
> issue is when I email to a client it will not operate. What do I need to do
> please to allow this function. I thankyou.
>
> Private Sub CheckBox1_Click()
> Dim r As Range
> Set r = Range("K1:L1,N1:O1,Q1:R1,T1:U1,W1:X1,Z1:AA1,AC1:AD1,AF1:AG1")
> r.EntireColumn.Hidden = Not r.EntireColumn.Hidden
> End Sub
>

 
Reply With Quote
 
=?Utf-8?B?U3RldmVk?=
Guest
Posts: n/a
 
      6th Aug 2007
Hello OssieMac from Steved

Than kyou.

"OssieMac" wrote:

> The other person may have macros disabled. To enable macros:-
>
> xl2007: Click on large Microsoft Office button top left of screen. Select
> Excel Options towards bottom right of screen-> Trust Center-> Trust Center
> Settings-> Macro Settings and set option to Disable with notification. The
> user will get a dialogue warning box in which they have to select allow the
> macro to run.
>
> Earlier versions of xl: Select Tools-> Macro-> Security -> Security Level
> tab and set to medium. User will get a warning dialogue box as above.
>
> Regards,
>
> OssieMac
>
>
> "Steved" wrote:
>
> > Hello from Steved
> >
> > Below I can put in a tick in the CheckBox and it will open the hidden
> > columns take the tick out and it will close. It is fine on my Computer. My
> > issue is when I email to a client it will not operate. What do I need to do
> > please to allow this function. I thankyou.
> >
> > Private Sub CheckBox1_Click()
> > Dim r As Range
> > Set r = Range("K1:L1,N1:O1,Q1:R1,T1:U1,W1:X1,Z1:AA1,AC1:AD1,AF1:AG1")
> > r.EntireColumn.Hidden = Not r.EntireColumn.Hidden
> > End Sub
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check if file is open, if yes close woorkbook Mouimet Microsoft Excel Programming 1 28th Feb 2009 06:14 AM
Check if workbook is already open, if so close Mischa Browne Microsoft Excel Programming 2 1st Jul 2004 07:36 AM
Check if workbook is already open, if so close anonymous Microsoft Excel Programming 0 28th Jun 2004 09:48 AM
Open Close Columns Steved Microsoft Excel Worksheet Functions 1 4th Jun 2004 12:18 AM
Need Code to check to see If Form is Open and if so Then Close it Dave Elliott Microsoft Access Forms 4 29th Jan 2004 05:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:44 PM.