Solved

VBA coding in Excel

Posted on 2013-06-04
8
202 Views
Last Modified: 2013-06-05
I need some code that will insert today's date in each row in Column H if there is a value in that row in Column G. Thanks.
0
Comment
Question by:carlosab
  • 4
  • 3
8 Comments
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 39219381
If column H has all values and not formulas then you can try

Range("G:G").SpecialCells(xlCellTypeConstants).Offset(, 1).Value = Date
0
 

Author Closing Comment

by:carlosab
ID: 39219411
Awesome. Thanks.
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39219417
Less typing! ;) ...

[G:G].SpecialCells(2).Offset(, 1) = Now

Seriously, though, impressive response ssaqibh! :)
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39219426
Just a wee bit late. You could have won it.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39219451
Better late than pregnant.
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39219506
I wonder what is going to happen at your pace :)
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39221444
A "(Comment deleted by Moderator)" message, probably.
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39221567
:D
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

914 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now