Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jer jer is offline
external usenet poster
 
Posts: 1
Default looping ... date formula ...

Jim, Thank much ... works like a charm...
have a great day!!!
jer

-----Original Message-----
You might try replacing the part of your code that enters

the formula with
this:

With Cell
.Offset(0, -3).Value = "=Date(Year(" & .Offset(-1, -

3).Address _
& "),Month(" & .Offset(-1, -3).Address _
& ") +1, Day(" & .Offset(-1, -3).Address & "))"
End With

Your code enters everything to the right of the "=" as

literal text.
Literal VBA code like "cell.Offset(-1, -3))" has no

meaning in a worksheet
cell. You have to enter what that code evaluates to.

--
Jim Rech
Excel MVP


.

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
creating a looping formula between different spreadsheets Jon Buonocore New Users to Excel 0 March 28th 06 04:29 AM
looping with formula inside a.ekster Excel Programming 1 October 27th 03 03:30 AM
looping formula - r1c1 problem - Con't MDC[_2_] Excel Programming 0 October 22nd 03 11:42 PM
looping formula - r1c1 problem MDC[_2_] Excel Programming 2 October 22nd 03 11:13 PM
looping Ranking formula - R[1]C[1] MDC[_2_] Excel Programming 2 October 22nd 03 04:56 AM


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