Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Spreadsheet macro stopped working!

Hi,

I recently made an Excel spreadsheet for keeping track of my golf score.
The spreadsheet is quite simple. It consists of 4 sheets:

Scorecard, statistics, database and equations (for calculating some
specific).

I insert informations about the golf course I'm playing and how my score
was etc. I then hit a button "Save scorecard" that runs a macro. The
macro inserts specifik values from the scorecard into the database sheet
(which works like a charm). The macro also updates the "Statistics"
sheet with information about stroke number and points for par3, par4 and
par5 holes. This worked perfectly, until now!

If I click "Save scorecard" the database is updated, but the statistics
page is messed up.

The macro should just copy the scorecard matrix (M39:O48) and add the
values to the statistics matrix (AB3:AD12), and copy scorecard matrix
(P38:R48) and add the values to statistics matrix (AG3:AI13). However,
when hitting "Save scorecard" the matrices on the statistics sheet
suddenly contains information like this:

=0+(COUNTIF(AG1048553:AG1048574;5))

This should just read a number (0 in this case). Also many of the
entries are now listed as #### or #REF! Looking at the entry itself gets
you information like this:

=2+(COUNTIF(#REF!;4))

This entry from the example above should only read 2.

The macro that copies the matrices looks like this:

Sheets("Scorecard").Range("M39:O48").Copy
Sheets("Statistics").Range("AB3").PasteSpecial Operation:=xlAdd
Sheets("Scorecard").Range("P38:R48").Copy
Sheets("Statistics").Range("AG3").PasteSpecial Operation:=xlAdd


Any ideas on what's gone wrong here?

Anders
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Spreadsheet macro stopped working!

Sorry, forgot to say that it's Office 2007

Anders
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Spreadsheet macro stopped working!

No one with an idea?
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Spreadsheet macro stopped working!

When replying to your own post it would be best to include the original text
in your reply.

Or cite the message ID of your original post.


Gord Dibben MS Excel MVP

On Sat, 21 Nov 2009 09:45:35 +0100, Anders wrote:

No one with an idea?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Spreadsheet macro stopped working!

Trying again. Anyone with an idea???

Anders skrev:
Hi,

I recently made an Excel spreadsheet for keeping track of my golf score.
The spreadsheet is quite simple. It consists of 4 sheets:

Scorecard, statistics, database and equations (for calculating some
specific).

I insert informations about the golf course I'm playing and how my score
was etc. I then hit a button "Save scorecard" that runs a macro. The
macro inserts specifik values from the scorecard into the database sheet
(which works like a charm). The macro also updates the "Statistics"
sheet with information about stroke number and points for par3, par4 and
par5 holes. This worked perfectly, until now!

If I click "Save scorecard" the database is updated, but the statistics
page is messed up.

The macro should just copy the scorecard matrix (M39:O48) and add the
values to the statistics matrix (AB3:AD12), and copy scorecard matrix
(P38:R48) and add the values to statistics matrix (AG3:AI13). However,
when hitting "Save scorecard" the matrices on the statistics sheet
suddenly contains information like this:

=0+(COUNTIF(AG1048553:AG1048574;5))

This should just read a number (0 in this case). Also many of the
entries are now listed as #### or #REF! Looking at the entry itself gets
you information like this:

=2+(COUNTIF(#REF!;4))

This entry from the example above should only read 2.

The macro that copies the matrices looks like this:

Sheets("Scorecard").Range("M39:O48").Copy
Sheets("Statistics").Range("AB3").PasteSpecial Operation:=xlAdd
Sheets("Scorecard").Range("P38:R48").Copy
Sheets("Statistics").Range("AG3").PasteSpecial Operation:=xlAdd


Any ideas on what's gone wrong here?

Anders



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Spreadsheet macro stopped working!

You can send the workbook to my email address and I'll take a look.

gorddibbATshawDOTca change the obvious.


Gord Dibben MS Excel MVP

On Sun, 22 Nov 2009 08:54:17 +0100, Anders wrote:

Trying again. Anyone with an idea???

Anders skrev:
Hi,

I recently made an Excel spreadsheet for keeping track of my golf score.
The spreadsheet is quite simple. It consists of 4 sheets:

Scorecard, statistics, database and equations (for calculating some
specific).

I insert informations about the golf course I'm playing and how my score
was etc. I then hit a button "Save scorecard" that runs a macro. The
macro inserts specifik values from the scorecard into the database sheet
(which works like a charm). The macro also updates the "Statistics"
sheet with information about stroke number and points for par3, par4 and
par5 holes. This worked perfectly, until now!

If I click "Save scorecard" the database is updated, but the statistics
page is messed up.

The macro should just copy the scorecard matrix (M39:O48) and add the
values to the statistics matrix (AB3:AD12), and copy scorecard matrix
(P38:R48) and add the values to statistics matrix (AG3:AI13). However,
when hitting "Save scorecard" the matrices on the statistics sheet
suddenly contains information like this:

=0+(COUNTIF(AG1048553:AG1048574;5))

This should just read a number (0 in this case). Also many of the
entries are now listed as #### or #REF! Looking at the entry itself gets
you information like this:

=2+(COUNTIF(#REF!;4))

This entry from the example above should only read 2.

The macro that copies the matrices looks like this:

Sheets("Scorecard").Range("M39:O48").Copy
Sheets("Statistics").Range("AB3").PasteSpecial Operation:=xlAdd
Sheets("Scorecard").Range("P38:R48").Copy
Sheets("Statistics").Range("AG3").PasteSpecial Operation:=xlAdd


Any ideas on what's gone wrong here?

Anders


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
Macro stopped working Ed Davis[_2_] Excel Discussion (Misc queries) 5 October 7th 09 11:46 PM
macro stopped working after upgrade to 2007 mohavv Excel Discussion (Misc queries) 1 June 16th 09 01:38 AM
My spreadsheet SUM formulas stopped working. Is there any easy rea Lynn_in_NC Excel Discussion (Misc queries) 3 April 11th 09 09:55 AM
Why have my Excel Macro Shortcuts stopped working? Mac Excel Worksheet Functions 0 November 6th 05 12:42 AM
VB Stopped Working [email protected] Excel Worksheet Functions 1 April 28th 05 01:56 PM


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