PC Review


Reply
Thread Tools Rate Thread

Autofill destination incrementing date by 1...don't want it to

 
 
Bud
Guest
Posts: n/a
 
      10th Jan 2009
Hello

How do I change my autofill destination formula so that it doesn't increment
the value by one.

I have the following code. In column B I have placed todays date in row2
column B.

I want that same exact date in all the rows through BR. BR is the amount of
rows I want filled.

I am using Autofill destination and it is incrementing the date by one each
time.

br = Cells(Rows.Count, "b").End(xlUp).Row
strDate = Format(Now, "ddmmmyyyy")

Cells(2, "a") = "=SWIMInput!A2" 'Employee
Cells(2, "b") = strDate 'Todays date
Cells(2, "g") = "=SWIMInput!B2" 'Task Name
Cells(2, "f") = "=SWIMInput!C2" 'WBSE
Cells(2, "i") = "=SWIMInput!D2" 'Project Name
Cells(2, "a").AutoFill Destination:=Range(Cells(2, "a"), Cells(br, "a"))
Cells(2, "b").AutoFill Destination:=Range(Cells(2, "b"), Cells(br, "b"))
Cells(2, "f").AutoFill Destination:=Range(Cells(2, "f"), Cells(br, "f"))
Cells(2, "g").AutoFill Destination:=Range(Cells(2, "g"), Cells(br, "g"))
Cells(2, "i").AutoFill Destination:=Range(Cells(2, "i"), Cells(br, "i"))



 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      10th Jan 2009
Hi,

Copy instead of autofill

Cells(2, "b").Copy Destination:=Range(Cells(2, "b"), Cells(br, "b"))

Mike

"Bud" wrote:

> Hello
>
> How do I change my autofill destination formula so that it doesn't increment
> the value by one.
>
> I have the following code. In column B I have placed todays date in row2
> column B.
>
> I want that same exact date in all the rows through BR. BR is the amount of
> rows I want filled.
>
> I am using Autofill destination and it is incrementing the date by one each
> time.
>
> br = Cells(Rows.Count, "b").End(xlUp).Row
> strDate = Format(Now, "ddmmmyyyy")
>
> Cells(2, "a") = "=SWIMInput!A2" 'Employee
> Cells(2, "b") = strDate 'Todays date
> Cells(2, "g") = "=SWIMInput!B2" 'Task Name
> Cells(2, "f") = "=SWIMInput!C2" 'WBSE
> Cells(2, "i") = "=SWIMInput!D2" 'Project Name
> Cells(2, "a").AutoFill Destination:=Range(Cells(2, "a"), Cells(br, "a"))
> Cells(2, "b").AutoFill Destination:=Range(Cells(2, "b"), Cells(br, "b"))
> Cells(2, "f").AutoFill Destination:=Range(Cells(2, "f"), Cells(br, "f"))
> Cells(2, "g").AutoFill Destination:=Range(Cells(2, "g"), Cells(br, "g"))
> Cells(2, "i").AutoFill Destination:=Range(Cells(2, "i"), Cells(br, "i"))
>
>
>

 
Reply With Quote
 
Bud
Guest
Posts: n/a
 
      10th Jan 2009
Thank You very much! This was most helpful!

"Mike H" wrote:

> Hi,
>
> Copy instead of autofill
>
> Cells(2, "b").Copy Destination:=Range(Cells(2, "b"), Cells(br, "b"))
>
> Mike
>
> "Bud" wrote:
>
> > Hello
> >
> > How do I change my autofill destination formula so that it doesn't increment
> > the value by one.
> >
> > I have the following code. In column B I have placed todays date in row2
> > column B.
> >
> > I want that same exact date in all the rows through BR. BR is the amount of
> > rows I want filled.
> >
> > I am using Autofill destination and it is incrementing the date by one each
> > time.
> >
> > br = Cells(Rows.Count, "b").End(xlUp).Row
> > strDate = Format(Now, "ddmmmyyyy")
> >
> > Cells(2, "a") = "=SWIMInput!A2" 'Employee
> > Cells(2, "b") = strDate 'Todays date
> > Cells(2, "g") = "=SWIMInput!B2" 'Task Name
> > Cells(2, "f") = "=SWIMInput!C2" 'WBSE
> > Cells(2, "i") = "=SWIMInput!D2" 'Project Name
> > Cells(2, "a").AutoFill Destination:=Range(Cells(2, "a"), Cells(br, "a"))
> > Cells(2, "b").AutoFill Destination:=Range(Cells(2, "b"), Cells(br, "b"))
> > Cells(2, "f").AutoFill Destination:=Range(Cells(2, "f"), Cells(br, "f"))
> > Cells(2, "g").AutoFill Destination:=Range(Cells(2, "g"), Cells(br, "g"))
> > Cells(2, "i").AutoFill Destination:=Range(Cells(2, "i"), Cells(br, "i"))
> >
> >
> >

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      10th Jan 2009
Your welcome and thanks for the feedback

"Bud" wrote:

> Thank You very much! This was most helpful!
>
> "Mike H" wrote:
>
> > Hi,
> >
> > Copy instead of autofill
> >
> > Cells(2, "b").Copy Destination:=Range(Cells(2, "b"), Cells(br, "b"))
> >
> > Mike
> >
> > "Bud" wrote:
> >
> > > Hello
> > >
> > > How do I change my autofill destination formula so that it doesn't increment
> > > the value by one.
> > >
> > > I have the following code. In column B I have placed todays date in row2
> > > column B.
> > >
> > > I want that same exact date in all the rows through BR. BR is the amount of
> > > rows I want filled.
> > >
> > > I am using Autofill destination and it is incrementing the date by one each
> > > time.
> > >
> > > br = Cells(Rows.Count, "b").End(xlUp).Row
> > > strDate = Format(Now, "ddmmmyyyy")
> > >
> > > Cells(2, "a") = "=SWIMInput!A2" 'Employee
> > > Cells(2, "b") = strDate 'Todays date
> > > Cells(2, "g") = "=SWIMInput!B2" 'Task Name
> > > Cells(2, "f") = "=SWIMInput!C2" 'WBSE
> > > Cells(2, "i") = "=SWIMInput!D2" 'Project Name
> > > Cells(2, "a").AutoFill Destination:=Range(Cells(2, "a"), Cells(br, "a"))
> > > Cells(2, "b").AutoFill Destination:=Range(Cells(2, "b"), Cells(br, "b"))
> > > Cells(2, "f").AutoFill Destination:=Range(Cells(2, "f"), Cells(br, "f"))
> > > Cells(2, "g").AutoFill Destination:=Range(Cells(2, "g"), Cells(br, "g"))
> > > Cells(2, "i").AutoFill Destination:=Range(Cells(2, "i"), Cells(br, "i"))
> > >
> > >
> > >

 
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
AutoFill with Reference incrementing BUT able to delete! Duane Microsoft Excel Worksheet Functions 2 11th Feb 2010 05:27 PM
Problem with autofill incrementing characters when copying Leonid Nikolayev Microsoft Excel Misc 2 29th Sep 2004 09:53 PM
Turning off incrementing in autofill lirael Microsoft Excel Misc 2 10th Sep 2004 03:16 AM
Selection.AutoFill Destination Matt P. Microsoft Excel Programming 0 30th Aug 2004 09:58 AM
Autofill Destination poppy Microsoft Excel Programming 5 2nd Aug 2004 02:03 PM


Features
 

Advertising
 

Newsgroups
 


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