A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Finding Next Blank Cell



 
 
Thread Tools Display Modes
  #1  
Old June 13th, 2004, 09:11 AM
JaiD
external usenet poster
 
Posts: n/a
Default Finding Next Blank Cell

Hi,

Hopefully you can suggest how I can adabt my VBA Excel Sheet,

I have created a userform to input my work on and after i have entered
the details on the form i need it to enter it into my excel spreedsheet
at the next available blank cell, problem is as i have formulas in the
right hand side of the row it picks them up and counts the cell as not
being blank and trys to find the next one i just want it to ignore the
right hand row.

Here's what I'm using:

Worksheets("Sheet1").Activate
Range("A5").Select
If Range("A5").Value = " " Then
Range("A5").Activate
Else
Range("A5").CurrentRegion.Select
ActiveCell.Offset(Selection.Rows.Count, 0).Activate
End If

Any suggestion would be great as pulling my hair out.


---
Message posted from http://www.ExcelForum.com/

  #2  
Old June 13th, 2004, 10:18 AM
Bob Phillips
external usenet poster
 
Posts: n/a
Default Finding Next Blank Cell

see response in programming.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"JaiD " wrote in message
...
Hi,

Hopefully you can suggest how I can adabt my VBA Excel Sheet,

I have created a userform to input my work on and after i have entered
the details on the form i need it to enter it into my excel spreedsheet
at the next available blank cell, problem is as i have formulas in the
right hand side of the row it picks them up and counts the cell as not
being blank and trys to find the next one i just want it to ignore the
right hand row.

Here's what I'm using:

Worksheets("Sheet1").Activate
Range("A5").Select
If Range("A5").Value = " " Then
Range("A5").Activate
Else
Range("A5").CurrentRegion.Select
ActiveCell.Offset(Selection.Rows.Count, 0).Activate
End If

Any suggestion would be great as pulling my hair out.


---
Message posted from http://www.ExcelForum.com/



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:11 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.