Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using ADO to INSERT Named Range Values into DB

Is there a way that I can insert the contents of a named range within
Excel into a SQL Server database using ADO?

  #2   Report Post  
Posted to microsoft.public.excel.programming
al al is offline
external usenet poster
 
Posts: 363
Default Using ADO to INSERT Named Range Values into DB

Assuming you already know how to insert values into a sql server table,
you would simply have to refer to the value property of the range name.

In this example, test is a global range name; department is a field within a
sql server table.

..Fields("department") = Range("test").Value
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Named Range Into a Cell Tondos Excel Worksheet Functions 2 February 27th 09 06:29 PM
Sum values in columns based on values in named range Mikael Andersson Excel Worksheet Functions 10 November 12th 08 09:37 AM
Named range changes values Carole O Excel Discussion (Misc queries) 4 April 24th 07 07:49 PM
INSERT into named range using ADO Tim Payne Excel Programming 3 January 28th 05 09:26 AM
Insert named range problem FinChase Excel Programming 11 November 15th 04 07:21 PM


All times are GMT +1. The time now is 06:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"