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 Excel and Query--copy workbook

Hello to All,

I'm using Query to pull a parts list to sheet 2 from sheet 1. Thi
works fine until I make a copy of the workbook. When I make a copy o
the workbook, the Query still draws from the original. Is there a wa
to easily change the query to pull from the copy instead of th
original?

Thanks for any help

Nathan Sargean

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Using Excel and Query--copy workbook

Two options:
1) In MSQuery, File menu is option "Table Definition" that
allows you to respecify your data source.

2) From VBA code, the QueryTable object has a Connection
property that specifies the data source - you could change
this via VBA.

K Dales

-----Original Message-----
Hello to All,

I'm using Query to pull a parts list to sheet 2 from

sheet 1. This
works fine until I make a copy of the workbook. When I

make a copy of
the workbook, the Query still draws from the original.

Is there a way
to easily change the query to pull from the copy instead

of the
original?

Thanks for any help

Nathan Sargeant


---
Message posted from http://www.ExcelForum.com/

.

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
Macro Copy Workbook Query carla 7 Excel Discussion (Misc queries) 2 July 31st 08 12:58 AM
Excel-how to link source workbook to copy of destination workbook D Lynn Excel Worksheet Functions 1 May 29th 08 05:36 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 1 November 29th 05 01:44 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM
Populating Excel Web Query across workbook claytorm Excel Discussion (Misc queries) 0 October 25th 05 10:24 PM


All times are GMT +1. The time now is 04:33 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"