Solved

VBA coding in Excel

Posted on 2013-06-04
8
225 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
[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
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39219426
Just a wee bit late. You could have won it.
0
 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

710 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