PC Review


Reply
Thread Tools Rate Thread

Columns AV:BE Showing (Not Suppose To)

 
 
=?Utf-8?B?Y2hpbm55?=
Guest
Posts: n/a
 
      7th May 2007
Morning Guys,

The script below hides selected columns however columns AV:BE are hiding but
they are also including column AU and BF. Columns AU and BF are not supposed
to hide. Please see below.

If Range("B44") = Range("BD15") Then
Range("E:L,N:W, AB:AD,AK:AR,AV:BE").Select
Selection.EntireColumn.Hidden = True
Range("A45").Value = "After Hours Working"
Else

Would there be a problems in the script above?

Cheers
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      7th May 2007
The code looks ok to me.

But if AU and BF are hidden to start, they'll be hidden at the end, too.

If that's not it, do you have any merged cells that include cells from column AU
and BF and cells in a column being hidden?

chinny wrote:
>
> Morning Guys,
>
> The script below hides selected columns however columns AV:BE are hiding but
> they are also including column AU and BF. Columns AU and BF are not supposed
> to hide. Please see below.
>
> If Range("B44") = Range("BD15") Then
> Range("E:L,N:W, AB:AD,AK:AR,AV:BE").Select
> Selection.EntireColumn.Hidden = True
> Range("A45").Value = "After Hours Working"
> Else
>
> Would there be a problems in the script above?
>
> Cheers


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      7th May 2007
It's not being hidden in that snippet of code. Try stepping through it to
see if you can find where it's happening.

HTH,
Barb Reinhardt

"chinny" wrote:

> Morning Guys,
>
> The script below hides selected columns however columns AV:BE are hiding but
> they are also including column AU and BF. Columns AU and BF are not supposed
> to hide. Please see below.
>
> If Range("B44") = Range("BD15") Then
> Range("E:L,N:W, AB:AD,AK:AR,AV:BE").Select
> Selection.EntireColumn.Hidden = True
> Range("A45").Value = "After Hours Working"
> Else
>
> Would there be a problems in the script above?
>
> Cheers

 
Reply With Quote
 
=?Utf-8?B?Y2hpbm55?=
Guest
Posts: n/a
 
      7th May 2007
Morning Dave,

Cheers for the advice. Yes there is a merge field which is affecting it.
I've taken that into account now and it works perfectly fine. Thanks for your
help.

"Dave Peterson" wrote:

> The code looks ok to me.
>
> But if AU and BF are hidden to start, they'll be hidden at the end, too.
>
> If that's not it, do you have any merged cells that include cells from column AU
> and BF and cells in a column being hidden?
>
> chinny wrote:
> >
> > Morning Guys,
> >
> > The script below hides selected columns however columns AV:BE are hiding but
> > they are also including column AU and BF. Columns AU and BF are not supposed
> > to hide. Please see below.
> >
> > If Range("B44") = Range("BD15") Then
> > Range("E:L,N:W, AB:AD,AK:AR,AV:BE").Select
> > Selection.EntireColumn.Hidden = True
> > Range("A45").Value = "After Hours Working"
> > Else
> >
> > Would there be a problems in the script above?
> >
> > Cheers

>
> --
>
> Dave Peterson
>

 
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
Fields not showing up in columns Charlotte Hinger Microsoft Access Database Table Design 3 25th Apr 2010 12:44 AM
Dropdown Box Not showing all columns Jerry C Microsoft Access 1 26th Sep 2008 03:35 AM
Showing totals from two columns =?Utf-8?B?S3Jpc3Rpbg==?= Microsoft Excel Misc 3 6th Jan 2005 07:57 PM
showing columns and a column's sum aa Microsoft Access Queries 2 23rd Mar 2004 04:19 PM
Combobox Columns Showing Patrick G Microsoft Access Form Coding 4 12th Dec 2003 05:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:47 AM.