PC Review


Reply
Thread Tools Rate Thread

Automate Formula script

 
 
Jeremy
Guest
Posts: n/a
 
      25th Nov 2009
I am looking for a way to use script to say if there is data in A place
=B1+C1 in D of the same row.


 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      25th Nov 2009
Sub formularizer()
For Each r In Intersect(ActiveSheet.UsedRange, Range("A:A"))
If IsEmpty(r) Then
Else
n = r.Row
r.Offset(0, 3).Formula = "=B" & n & "+C" & n
End If
Next
End Sub

--
Gary''s Student - gsnu200909
 
Reply With Quote
 
Jeremy
Guest
Posts: n/a
 
      25th Nov 2009
Would this go in the sheet code?

These are the actual formulas I am using
=A55-WEEKDAY(A55,2)+1
=A55-DAY(A55)+1

Thank you
"Gary''s Student" wrote:

> Sub formularizer()
> For Each r In Intersect(ActiveSheet.UsedRange, Range("A:A"))
> If IsEmpty(r) Then
> Else
> n = r.Row
> r.Offset(0, 3).Formula = "=B" & n & "+C" & n
> End If
> Next
> End Sub
>
> --
> Gary''s Student - gsnu200909

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      25th Nov 2009
For your initial query.

Range("D110").Formula = "=IF(A1<>"""",B1+C1,"""")"

If this post helps click Yes
---------------
Jacob Skaria


"Jeremy" wrote:

> Would this go in the sheet code?
>
> These are the actual formulas I am using
> =A55-WEEKDAY(A55,2)+1
> =A55-DAY(A55)+1
>
> Thank you
> "Gary''s Student" wrote:
>
> > Sub formularizer()
> > For Each r In Intersect(ActiveSheet.UsedRange, Range("A:A"))
> > If IsEmpty(r) Then
> > Else
> > n = r.Row
> > r.Offset(0, 3).Formula = "=B" & n & "+C" & n
> > End If
> > Next
> > End Sub
> >
> > --
> > Gary''s Student - gsnu200909

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to automate network VPN connection =?Utf-8?B?S3Jpc2huYW4=?= Windows XP Configuration 0 8th Feb 2006 04:29 PM
(OT) - Script to automate internet connection ? antoine Freeware 5 2nd Oct 2005 09:09 PM
Script to Automate Windows larrydalooza Microsoft Windows 2000 1 25th Nov 2004 03:04 PM
automate script invoke on shut down chrizio Microsoft Windows 2000 Applications 2 13th Sep 2003 11:47 PM
Script/Macro to automate conversion from PPT to PS Marc Tanguy Microsoft Powerpoint 5 3rd Sep 2003 08:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:58 AM.