LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #13   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default I require some help with a section of the following code.

wrote:
Good morning Rick,

The range that is copied by copyToSummary is Worksheets("CRANE WT
SUMMARY").Range("A3:G39"). It's the first argument to the function. I'm
not sure why you are getting an out of range error. On what line does
this error occur? If it is in copyToSummary, what is the value for the
month that is being passed to the function (last parameter)? If it is
0, then you need to remove the '-1' in the following two lines:

a = ((month - 1) Mod across) * cols 'remove -1
d = (Fix((month - 1) / across)) * rows 'remove -1

so that it looks like so:

a = ((month) Mod across) * cols
d = (Fix((month) / across)) * rows

I'm sorry if it turns out that this was the problem. I assumed the
month values were from 1-12, not 0-11. If the problem persists, please
post back.

Regards,
Steve
www.swiss-ins.com

I'm sorry about that, that's probably the formatting that got screwed
up when I posted the code. You've got to remove the line break after

[quoted text clipped - 21 lines]
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1

Hi Steve just a short note to let you know i got my code working due to yours
and others
much appreciated help. i could not correct the error for the private sub you
gave. So i took your basic concept and code and with some hard work got it to
do what i wanted it to do.
Thanks again for your help and assisstance,
rick Mason

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200612/1

 
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
I require code to run a macro dependant on the date Marie Bayes Excel Discussion (Misc queries) 7 January 15th 07 03:48 PM
I REQUIRE SOME HELP WITH CODE tracks via OfficeKB.com Excel Programming 2 November 10th 06 09:01 PM
require macro or code for purchase order to do the following: jatman Excel Worksheet Functions 0 August 11th 06 06:02 AM
Really slow code (just this one section) KR Excel Programming 2 April 21st 06 09:09 PM
Require extra funtionality - existing code included Hilton Excel Programming 0 October 7th 04 02:57 PM


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