PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Charting problem

Reply

problem

 
Thread Tools Rate Thread
Old 11-02-2004, 12:33 AM   #1
Maciej
Guest
 
Posts: n/a
Default problem


Hello
I'm reading data from text file into excel sheet using VBA. I am
creating (using VBA) chart on 2 imported columns. I want to hide this
columns (Columns("AA").Hidden = True) but it doesn't work - how to
solve this problem using only VBA macro in Excel ?? Pleas help me.

Maciej
  Reply With Quote
Old 11-02-2004, 01:42 AM   #2
John Walkenbach
Guest
 
Posts: n/a
Default Re: problem

That command works on the active sheet. Are you sure the active sheet is
what you think it is?

John Walkenbach
For Excel tips, macros, & downloads...
http://j-walk.com/ss


"Maciej" <maciej_ty@poczta.onet.pl> wrote in message
news:1eb7cfcc.0402101633.105ce926@posting.google.com...
> Hello
> I'm reading data from text file into excel sheet using VBA. I am
> creating (using VBA) chart on 2 imported columns. I want to hide this
> columns (Columns("AA").Hidden = True) but it doesn't work - how to
> solve this problem using only VBA macro in Excel ?? Pleas help me.
>
> Maciej



  Reply With Quote
Old 14-02-2004, 03:14 PM   #3
Maciej
Guest
 
Posts: n/a
Default Re: problem

hello John
yes i think so - the problem is: when columns with data series are
visible (i set width = 1 - but they are still visible :-() my chart
looks fine, when I hide this columns (.Hidden = True) my chart looks
like if lost data :-(.
anybody know what to do ??


"John Walkenbach" <john@j-walk.com> wrote in message news:<utSgdCE8DHA.1948@TK2MSFTNGP12.phx.gbl>...
> That command works on the active sheet. Are you sure the active sheet is
> what you think it is?
>
> John Walkenbach
> For Excel tips, macros, & downloads...
> http://j-walk.com/ss
>
>
> "Maciej" <maciej_ty@poczta.onet.pl> wrote in message
> news:1eb7cfcc.0402101633.105ce926@posting.google.com...
> > Hello
> > I'm reading data from text file into excel sheet using VBA. I am
> > creating (using VBA) chart on 2 imported columns. I want to hide this
> > columns (Columns("AA").Hidden = True) but it doesn't work - how to
> > solve this problem using only VBA macro in Excel ?? Pleas help me.
> >
> > Maciej

  Reply With Quote
Old 16-02-2004, 01:18 PM   #4
Jon Peltier
Guest
 
Posts: n/a
Default Re: problem

By default, a chart does not show hidden data. To change this, select
the chart, then go to the Options command on the Tools menu. On the
Chart tab, uncheck the Plot Visible Cells Only box.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

Maciej wrote:

> hello John
> yes i think so - the problem is: when columns with data series are
> visible (i set width = 1 - but they are still visible :-() my chart
> looks fine, when I hide this columns (.Hidden = True) my chart looks
> like if lost data :-(.
> anybody know what to do ??
>
>
> "John Walkenbach" <john@j-walk.com> wrote in message news:<utSgdCE8DHA.1948@TK2MSFTNGP12.phx.gbl>...
>
>>That command works on the active sheet. Are you sure the active sheet is
>>what you think it is?
>>
>>John Walkenbach
>>For Excel tips, macros, & downloads...
>>http://j-walk.com/ss
>>
>>
>>"Maciej" <maciej_ty@poczta.onet.pl> wrote in message
>>news:1eb7cfcc.0402101633.105ce926@posting.google.com...
>>
>>>Hello
>>>I'm reading data from text file into excel sheet using VBA. I am
>>>creating (using VBA) chart on 2 imported columns. I want to hide this
>>>columns (Columns("AA").Hidden = True) but it doesn't work - how to
>>>solve this problem using only VBA macro in Excel ?? Pleas help me.
>>>
>>>Maciej


  Reply With Quote
Old 18-02-2004, 11:28 PM   #5
Maciej
Guest
 
Posts: n/a
Default Re: problem

hi
ok it works manually but I have to generate this file automatically
using VBA macro so how can i set this chart option from VBA code level
??
Maciej


Jon Peltier <jonxlmvpNO@SPAMpeltiertech.com> wrote in message news:<OubCO9I9DHA.488@TK2MSFTNGP12.phx.gbl>...
> By default, a chart does not show hidden data. To change this, select
> the chart, then go to the Options command on the Tools menu. On the
> Chart tab, uncheck the Plot Visible Cells Only box.
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Peltier Technical Services
> http://PeltierTech.com/Excel/Charts/
> _______
>
> Maciej wrote:
>
> > hello John
> > yes i think so - the problem is: when columns with data series are
> > visible (i set width = 1 - but they are still visible :-() my chart
> > looks fine, when I hide this columns (.Hidden = True) my chart looks
> > like if lost data :-(.
> > anybody know what to do ??
> >
> >
> > "John Walkenbach" <john@j-walk.com> wrote in message news:<utSgdCE8DHA.1948@TK2MSFTNGP12.phx.gbl>...
> >
> >>That command works on the active sheet. Are you sure the active sheet is
> >>what you think it is?
> >>
> >>John Walkenbach
> >>For Excel tips, macros, & downloads...
> >>http://j-walk.com/ss
> >>
> >>
> >>"Maciej" <maciej_ty@poczta.onet.pl> wrote in message
> >>news:1eb7cfcc.0402101633.105ce926@posting.google.com...
> >>
> >>>Hello
> >>>I'm reading data from text file into excel sheet using VBA. I am
> >>>creating (using VBA) chart on 2 imported columns. I want to hide this
> >>>columns (Columns("AA").Hidden = True) but it doesn't work - how to
> >>>solve this problem using only VBA macro in Excel ?? Pleas help me.
> >>>
> >>>Maciej

  Reply With Quote
Old 19-02-2004, 03:33 PM   #6
Jon Peltier
Guest
 
Posts: n/a
Default Re: problem

Macie -

I turned on the macro recorder, then did it manually. The recorder gave
me this (plus some other lines not relevant to this option):

With ActiveChart
.PlotVisibleOnly = False
End With

The recorder's good for little hints like this.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

Maciej wrote:

> hi
> ok it works manually but I have to generate this file automatically
> using VBA macro so how can i set this chart option from VBA code level
> ??
> Maciej
>
>
> Jon Peltier <jonxlmvpNO@SPAMpeltiertech.com> wrote in message news:<OubCO9I9DHA.488@TK2MSFTNGP12.phx.gbl>...
>
>>By default, a chart does not show hidden data. To change this, select
>>the chart, then go to the Options command on the Tools menu. On the
>>Chart tab, uncheck the Plot Visible Cells Only box.
>>
>>- Jon
>>-------
>>Jon Peltier, Microsoft Excel MVP
>>Peltier Technical Services
>>http://PeltierTech.com/Excel/Charts/
>>_______
>>
>>Maciej wrote:
>>
>>
>>>hello John
>>>yes i think so - the problem is: when columns with data series are
>>>visible (i set width = 1 - but they are still visible :-() my chart
>>>looks fine, when I hide this columns (.Hidden = True) my chart looks
>>>like if lost data :-(.
>>>anybody know what to do ??
>>>
>>>
>>>"John Walkenbach" <john@j-walk.com> wrote in message news:<utSgdCE8DHA.1948@TK2MSFTNGP12.phx.gbl>...
>>>
>>>
>>>>That command works on the active sheet. Are you sure the active sheet is
>>>>what you think it is?
>>>>
>>>>John Walkenbach
>>>>For Excel tips, macros, & downloads...
>>>>http://j-walk.com/ss
>>>>
>>>>
>>>>"Maciej" <maciej_ty@poczta.onet.pl> wrote in message
>>>>news:1eb7cfcc.0402101633.105ce926@posting.google.com...
>>>>
>>>>
>>>>>Hello
>>>>>I'm reading data from text file into excel sheet using VBA. I am
>>>>>creating (using VBA) chart on 2 imported columns. I want to hide this
>>>>>columns (Columns("AA").Hidden = True) but it doesn't work - how to
>>>>>solve this problem using only VBA macro in Excel ?? Pleas help me.
>>>>>
>>>>>Maciej


  Reply With Quote
Old 21-02-2004, 03:05 PM   #7
Maciej
Guest
 
Posts: n/a
Default Re: problem

Thx jon - that's what I want :-)
Maciej


Jon Peltier <jonxlmvpNO@SPAMpeltiertech.com> wrote in message news:<ueAza2v9DHA.2028@TK2MSFTNGP10.phx.gbl>...
> Macie -
>
> I turned on the macro recorder, then did it manually. The recorder gave
> me this (plus some other lines not relevant to this option):
>
> With ActiveChart
> .PlotVisibleOnly = False
> End With
>
> The recorder's good for little hints like this.
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Peltier Technical Services
> http://PeltierTech.com/Excel/Charts/
> _______
>
> Maciej wrote:
>
> > hi
> > ok it works manually but I have to generate this file automatically
> > using VBA macro so how can i set this chart option from VBA code level
> > ??
> > Maciej
> >
> >
> > Jon Peltier <jonxlmvpNO@SPAMpeltiertech.com> wrote in message news:<OubCO9I9DHA.488@TK2MSFTNGP12.phx.gbl>...
> >
> >>By default, a chart does not show hidden data. To change this, select
> >>the chart, then go to the Options command on the Tools menu. On the
> >>Chart tab, uncheck the Plot Visible Cells Only box.
> >>
> >>- Jon
> >>-------
> >>Jon Peltier, Microsoft Excel MVP
> >>Peltier Technical Services
> >>http://PeltierTech.com/Excel/Charts/
> >>_______
> >>
> >>Maciej wrote:
> >>
> >>
> >>>hello John
> >>>yes i think so - the problem is: when columns with data series are
> >>>visible (i set width = 1 - but they are still visible :-() my chart
> >>>looks fine, when I hide this columns (.Hidden = True) my chart looks
> >>>like if lost data :-(.
> >>>anybody know what to do ??
> >>>
> >>>
> >>>"John Walkenbach" <john@j-walk.com> wrote in message news:<utSgdCE8DHA.1948@TK2MSFTNGP12.phx.gbl>...
> >>>
> >>>
> >>>>That command works on the active sheet. Are you sure the active sheet is
> >>>>what you think it is?
> >>>>
> >>>>John Walkenbach
> >>>>For Excel tips, macros, & downloads...
> >>>>http://j-walk.com/ss
> >>>>
> >>>>
> >>>>"Maciej" <maciej_ty@poczta.onet.pl> wrote in message
> >>>>news:1eb7cfcc.0402101633.105ce926@posting.google.com...
> >>>>
> >>>>
> >>>>>Hello
> >>>>>I'm reading data from text file into excel sheet using VBA. I am
> >>>>>creating (using VBA) chart on 2 imported columns. I want to hide this
> >>>>>columns (Columns("AA").Hidden = True) but it doesn't work - how to
> >>>>>solve this problem using only VBA macro in Excel ?? Pleas help me.
> >>>>>
> >>>>>Maciej

  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off