Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Autofill Down When Text to Left is Not Blank

I am trying to find a way to autofill down, when there is data in the column
to the left. I tried a bunch of things, including the macro recorder, and
cant get a solution. The macro recorder gave me a result such as:
Selection.AutoFill Destination:=Range("C2:C9")

But my range will change all the time and thus I cant use this hard-code
reference.

Please offer a suggestion or two€¦



Regards,
Ryan---


--
RyGuy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Autofill Down When Text to Left is Not Blank

Dim LastRow as long
with activesheet
lastrow = .cells(.rows.count,"B").end(xlup).row
.range("C2").autofill destination:=.range("c2:C" & lastrow)
end with

ryguy7272 wrote:

I am trying to find a way to autofill down, when there is data in the column
to the left. I tried a bunch of things, including the macro recorder, and
cant get a solution. The macro recorder gave me a result such as:
Selection.AutoFill Destination:=Range("C2:C9")

But my range will change all the time and thus I cant use this hard-code
reference.

Please offer a suggestion or two€¦

Regards,
Ryan---

--
RyGuy


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Autofill Down When Text to Left is Not Blank

Awesome!! Thanks a bunch!!
Ryan---


--
RyGuy


"Dave Peterson" wrote:

Dim LastRow as long
with activesheet
lastrow = .cells(.rows.count,"B").end(xlup).row
.range("C2").autofill destination:=.range("c2:C" & lastrow)
end with

ryguy7272 wrote:

I am trying to find a way to autofill down, when there is data in the column
to the left. I tried a bunch of things, including the macro recorder, and
can€„˘t get a solution. The macro recorder gave me a result such as:
Selection.AutoFill Destination:=Range("C2:C9")

But my range will change all the time and thus I can€„˘t use this hard-code
reference.

Please offer a suggestion or two€¦

Regards,
Ryan---

--
RyGuy


--

Dave Peterson

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
stop a clicked on cell being left blank Nicole Answer Excel Worksheet Functions 2 September 6th 07 05:28 AM
Autofill until blank cell is reached uberathlete Excel Discussion (Misc queries) 7 November 4th 05 05:43 PM
counting from left to right and stopping when blank harpscardiff Excel Discussion (Misc queries) 6 August 19th 05 07:34 PM
Autofill data in specific blank cells Mr. G. Excel Worksheet Functions 0 April 22nd 05 09:41 PM


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