Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default VBA code to copy named range in closed workbook

Thank you for your help here! As you probably figured out, I'm not
that great at actual coding, but BOY can I pretend to code using
macros! *sigh*...

I have very slightly modified the code above, replacing the sCellref
value "people" with a named range name and the file and path names to
point to my files.

I keep getting an error messag that the source or object is read only
when running the script. I have also noticed that the rDest never
seems to get a value assigned to it..the script gets through the
script to the line:
Set rsCon = CreateObject("ADODB.Connection")
but then seems to error out on the next line:
rsCon.Open strConnect
and jumps to the errExit line, which then gives the above mentioned
read only error.

Thank you again for your help!
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
Help...Code to copy sheet from closed workbook [email protected] Excel Discussion (Misc queries) 1 March 28th 07 08:52 PM
Workbook named range not seen by ADO when workbook closed Tim Lund[_2_] Excel Programming 2 March 16th 07 08:59 AM
ADO - closed workbook - Named range MattShoreson[_16_] Excel Programming 2 August 31st 05 10:37 AM
referencing a named range from a closed workbook Gixxer_J_97[_2_] Excel Programming 4 April 8th 05 08:45 PM


All times are GMT +1. The time now is 09:39 AM.

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

About Us

"It's about Microsoft Excel"