Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default error: 2147417848


I'm doing a quantitative frequency distribution in megastat "exel" when I
click ok, the following appears : Error No. -2147417848 (Method 'Offset' of
object 'Range' failed) has occurred in Frequency Distributions -
Quantitative....... :( can somebody help me ..... Aundrea
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default error: 2147417848

Open the Excel sheet,
Then, press "Alt+F11".Microsoft Visual Basic opens up.
Click on "Insert" tab, select 'Module".
then, copy & paste the codes given below in the Module(code).

Dim max_reihen As Integer, lowestRow As Integer, latestCol As Integer
Dim wksA As Worksheet

'[...]
Set wksA =ActiveSheet
With wksA
.Range("A1").Select 'sets focus from possibly selected chart back to
sheet
max_reihen=526 'state of variable just before the critical line is met
lowestRow=2000 'state of variable just before the critical line is met
latestCol=26 'state of variable just before the critical line is met
.Range(.Cells(max_reihen, 1), .Cells(lowestRow, latestCol)) =
vbNullString '<--CRITICAL LINE causing runtime error -2147417848
'[...]
.Range(.Cells(max_reihen, 1), .Cells(lowestRow,
latestCol)).ClearContents '<-- this was my alternative, but this causes a
"Runtime error 1004" instead
'[...]
End With



I hope this helps you.


"aundrea" wrote:


I'm doing a quantitative frequency distribution in megastat "exel" when I
click ok, the following appears : Error No. -2147417848 (Method 'Offset' of
object 'Range' failed) has occurred in Frequency Distributions -
Quantitative....... :( can somebody help me ..... Aundrea

Reply
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
Visual Basic Error Run Time Error, Type Mismatch Meg Partridge Excel Discussion (Misc queries) 12 September 10th 08 06:10 PM
Error: "Excel encountered an error and had to remove some formatti Carl Excel Discussion (Misc queries) 0 September 18th 06 06:39 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


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

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

About Us

"It's about Microsoft Excel"