Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Creating cell ranges

How would I go about writing code to select a column of cells to work on but
let work as long as data is present to the right of it ? If c1 is blank stop
running,I would like to have an open range instead of H2 to H167, I would
like it to be H2 to the next cell that isnt blank! Is it possible? Any help
would be greatly appreciated, Neal.

Range("H2").Select
Selection.AutoFill Destination:=Range("H2:H167"), Type:=xlFillDefault
Range("H2:H167").Select
ActiveWindow.SmallScroll Down:=-159
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
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 Ranges Easily Guilherme Loretti Excel Discussion (Misc queries) 2 September 28th 07 01:11 PM
Creating drop down list for multiple cell ranges Aaron Saulisberry Excel Discussion (Misc queries) 2 May 1st 05 06:47 PM
Creating Non-Contiguous Cell Ranges [email protected] Excel Programming 0 September 6th 04 02:53 AM
Creating Non-Contiguous Cell Ranges [email protected] Excel Programming 1 September 6th 04 12:20 AM
Creating Ranges Rich Cooper Excel Programming 6 June 3rd 04 07:34 PM


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