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: 2,494
Default code with eomonth problems

i have eomonth formulas in b5:b16. they are formatted in month name MMMM
this code runs until it gets to october, the 10th month, and throws a 1004
error, so oct, nov and dec do not update. anyone know what the difference would
be?
c1 contains the name of the workbook

example formula the code creates: =Kelly.xls!Feb_Short


i = 5
For i = 5 To 16
Cells(i, 3).Formula = "=" & Range("c1") & ".xls!" & Format(Left(Cells(i, 2), 3),
_
"MMM") & "_Short"
Cells(i, 4).Formula = "=" & Range("c1") & ".xls!" & Format(Left(Cells(i, 2), 3),
_
"MMM") & "_Over"
Next

--


Gary



 
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'm Having Problems with EOMONTH Ronni T. Vasquez M. Excel Worksheet Functions 8 August 22nd 05 11:05 PM
I'm having problems with EOMONTH Ronni T. Vasquez M. Excel Worksheet Functions 2 August 22nd 05 04:42 PM
sorting code problems DKY[_15_] Excel Programming 1 September 24th 04 06:41 PM
Problems merging an excel file due to code or file problems? Cindy M -WordMVP- Excel Programming 0 September 14th 04 02:58 PM
VBA Code problems! Simon Lloyd[_463_] Excel Programming 5 May 24th 04 10:21 PM


All times are GMT +1. The time now is 11:06 PM.

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"