Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is the code I have:
' Grab the database name Dim strDb As Range Set strDb = Worksheets("Dashboard").Range("C2") Dim strDBString As String Set strDBString = strDb.Text The range is assigned without a problem; however, extracting the actual text value seems never to work. Can anyone clarify exactly how this should happen? My underlying motivation is to pull a cell value in VBA, and then use that in a SQL query within VBA as well. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Keeps grabbing more than one cell/column | Excel Worksheet Functions | |||
Grabbing Formula Information from Another Cell | Excel Discussion (Misc queries) | |||
Grabbing data from a specific cell | Excel Worksheet Functions | |||
Grabbing text from just part of a cell | Excel Programming | |||
Grabbing the last Non-empty cell in a range | Excel Discussion (Misc queries) |