Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Runime Error 1004 Method Range of Object Global Failed

I have a workbook in which there are multiple worksheets.
I am validating the cells in a worksheet and populating
the results in another worksheet and like wise I populate
the results in others wrksheets based on the results from
the validation of the cells in a worksheet.

I get the following error "Runime Error 1004 Method Range
of Object Global Failed"

My code where I get this error is

Sheets("Sheet1").Select
Range(TotalCell).Select
ActiveCell.FormulaR1C1 = Total
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Runime Error 1004 Method Range of Object Global Failed

Hi
how is TotalCell defined?
In addition: no need to select. The following statement would be
sufficient:
worksheets("Sheet1").Range("A1").formulaR1C1=total

--
Regards
Frank Kabel
Frankfurt, Germany

"Mohan" schrieb im Newsbeitrag
...
I have a workbook in which there are multiple worksheets.
I am validating the cells in a worksheet and populating
the results in another worksheet and like wise I populate
the results in others wrksheets based on the results from
the validation of the cells in a worksheet.

I get the following error "Runime Error 1004 Method Range
of Object Global Failed"

My code where I get this error is

Sheets("Sheet1").Select
Range(TotalCell).Select
ActiveCell.FormulaR1C1 = Total


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Runime Error 1004 Method Range of Object Global Failed


I changed the code like this.
Sheets("Card & eCommerce").Range("CBCP_NumberOfOpenNCRCell").Form ulaR1C1
= Total_Number_Of_CPCP_Open_NCR

I still get a diffetn erorr
Application defined or object defined error

Actually I am polpulating the data value to other excels from column 1
to column X based on the month.
If the month was 1 then it would be pasted on column 1 and so on.
My CBCP_NumberOfOpenNCRCell will change as per the month to different
column in the worksheets.
This is done for other company in others worjsheets in the same
worksbook.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Runime Error 1004 Method Range of Object Global Failed

Hi
does the defined name exit and how is your variable defined

--
Regards
Frank Kabel
Frankfurt, Germany

"Ganesh Mohan Nagarajan" schrieb im
Newsbeitrag ...

I changed the code like this.
Sheets("Card &

eCommerce").Range("CBCP_NumberOfOpenNCRCell").Form ulaR1C1
= Total_Number_Of_CPCP_Open_NCR

I still get a diffetn erorr
Application defined or object defined error

Actually I am polpulating the data value to other excels from column

1
to column X based on the month.
If the month was 1 then it would be pasted on column 1 and so on.
My CBCP_NumberOfOpenNCRCell will change as per the month to different
column in the worksheets.
This is done for other company in others worjsheets in the same
worksbook.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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
Charts.Add error '1004' Method 'Add' of object 'Sheets' failed Corey Charts and Charting in Excel 1 December 28th 06 02:15 PM
runtime error 1004 method range of object '_global failed valdesd Excel Discussion (Misc queries) 2 October 6th 05 07:26 PM
Method Range of object global failed Dennis Excel Programming 2 April 7th 04 03:27 PM
Error 1004: Method 'Cells' of object '_Global' failed LT Excel Programming 2 October 31st 03 04:47 PM
"Run-time error '1004'" Method 'Range' of object '_global' failed. haisat[_2_] Excel Programming 0 October 20th 03 12:13 PM


All times are GMT +1. The time now is 07:47 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"