LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Runtime error 91: Objust variable or with block....

HI,

I have the following code which plots some data which is defined as
name (group_data in the code) to the chart in a sheet as soon as th
sheet is activated:


Private Sub Worksheet_Activate()

'
' Macro4 Macro
' Macro recorded 7/28/2004 by sahu02
' as soon as the sheet is activated, dynamic data range get
plotted!!!

'
ActiveChart.PlotArea.Select
ActiveChart.SetSourceDat
Source:=Sheets("DATA").Range("group_perf"), PlotBy _
:=xlRows



End Sub


This code works absolutely fine but when I save the file with
password to open and modify; and open the file, I get the Error 91..
and it doesnt matter if I open the file as read only or with writ
access....

any help on this will be greatly appreciated!!

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Runtime Error '91' Object variable or With block variable not set Alec Coliver Excel Discussion (Misc queries) 2 October 24th 09 02:29 PM
Cells.Find error Object variable or With block variable not set Peter[_21_] Excel Programming 2 May 8th 04 02:15 PM
Pivot Table - Object variable or with block variable not set? George Nicholson[_2_] Excel Programming 1 April 16th 04 09:12 PM
"Run-time error 91: Object variable or With block not set" Snedker Excel Programming 0 January 10th 04 09:37 AM
Error 91 - Object variable with block variable not set Jim[_35_] Excel Programming 2 November 27th 03 03:34 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"