Populating Specific Cells Using VBA
Posted
by Daniel
on Stack Overflow
See other posts from Stack Overflow
or by Daniel
Published on 2010-04-21T14:42:20Z
Indexed on
2010/04/21
14:43 UTC
Read the original article
Hit count: 401
I am using VBA to pull from a SQL table and it automatically populates cell E14. Not sure why it's that cell, but is there a way to specify which cell it pulls the data into?
Here's what I have right now:
strSQL = "SELECT distinct Source FROM dbo.Simulations WHERE SimulationID = 5
© Stack Overflow or respective owner