* Login 
* FAQ    * Search

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: VBA programming question
PostPosted: Thu Apr 19, 2012 8:21 am 
Offline
Forum Administrator
User avatar

Joined: Tue Apr 20, 2004 7:12 am
Posts: 6754
Location: Michigan
Ok guys got a question and I hope someone has experience with VBA in Excel.

I'm working on a Time Sheet for work. Got the basics done, but need to make a macro that can simplify things. Namely have the range specified and the active cell shift back to start and down one row at the end.

Here's the layout, it's big so be warned.

And here is the code I have.

Code:
Sub Button_Click()
ActiveCell = Now()
ActiveCell.NumberFormat = "hh:mm:ss"
ActiveCell.Offset(0, 1).Select
End Sub

Code:
Range("C4:F8").Select


Anyone know how to put the range in so it works and have the Active cell shift move to the next row when it reaches the last column... I know I'm a total programming noob.

-Sparkfist

_________________
vskid wrote:
Nerd = likes school, does all their homework, dies if they don't get 100% on every assignment
Geek = likes technology, dies if the power goes out and his UPS dies too

I am a geek.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group