problem

M

Maciej

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
 
M

Maciej

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 ??
 
J

Jon Peltier

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
 
M

Maciej

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
 
J

Jon Peltier

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
 
M

Maciej

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


Jon Peltier said:
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/
_______
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top