Solved

Using VBA in Excel, how do I set VB code to goto the first blank cell after a range?

Posted on 2013-01-30
8
376 Views
Last Modified: 2013-01-30
I need my VB code to find / goto the first blank cell after a range, so data can be copied there as the next set of records chosen by a user (a previous set already chosen, that is the previous range to find the next blank cell below).

Thank you!
0
Comment
Question by:AvantGuardDog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 10

Expert Comment

by:Anthony Berenguel
ID: 38836178
How are you referring to your range? Have you defined it as a range object?
0
 
LVL 43

Assisted Solution

by:Saqib Husain, Syed
Saqib Husain, Syed earned 250 total points
ID: 38836300
Something like

Range("A2").end(xldown).select
0
 
LVL 10

Accepted Solution

by:
Anthony Berenguel earned 250 total points
ID: 38836343
ssaqibh, I made a minor adjustment (to go to the first blank cell) to your example to meet the requirements of the user.

Range("A2").End(xlDown).Offset(1).Select

Open in new window

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 38836376
Very much appropriate....Thanks aebea...the credit goes to you

Saqib
0
 
LVL 10

Expert Comment

by:Anthony Berenguel
ID: 38836382
No, no. If anything it should be shared ;-)
0
 

Author Comment

by:AvantGuardDog
ID: 38836677
Thank you ssaqibh and aebea ! ssaqibh's solution combined with aebea's minor adjustment worked perfectly, like a charm.  Very much appreciated!
0
 
LVL 10

Expert Comment

by:Anthony Berenguel
ID: 38836681
Thank you for sharing the credit, AvantGuardDog. Also, i like the wordplay in your username ;-)
0
 

Author Comment

by:AvantGuardDog
ID: 38837418
You are welcome aebea :-) once again, thanks!

ssaqibh, thank you again also, both of your efforts are extremely helpful, and it is very much appreciated!
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question