Solved

VBA coding in Excel

Posted on 2013-06-04
8
192 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

758 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

14 Experts available now in Live!

Get 1:1 Help Now