Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Importing Data from a pre-existing spreadsheet

I would like to be able to create an .xls document on my computer that
does 1 of 2 things (both would achieve the same result, i just dont
know which one would be better, or how to do either)

GOAL: get data from a spreadsheet (that is saved on the company
server) and have it populate in a combo box (on a userform) on the xls
document that is saved on my computer.

method 1) create a macro that opens up the external xls data, copies
it to the local spreadsheet and then closes the external spreadsheet.

method 2) create some sort of a lookup function that dynamically pulls
from that external xls document without the need to do a crazy import
macro.

That "external xls document" is a file that gets changed automatically
(daily) from an outside company and they just dump the xls file on our
server for our reference. this xls document contains about 15 columns
and anywhere from 150 to 300 rows on any given day.

I want to be able to have the combo box in my userform (on the xls
file saved on my computer) dynamically display the contents of column
A from the xls file located on the server.

Is this possible with out too much brain damage??
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Importing Data from a pre-existing spreadsheet

I think I would use the crazy option #1. It seems easier and more robust.

The first thing I'd do is open the receiving file
Turn on the macro recorder
Open the sending file
copy and past the data
close the sending file
Stop the macro recorder

Then your userform will have the data it needs to populate the controls you
have.

You could assign this macro to a button from the Forms Toolbar so that you could
run it on demand -- or even rename the macro to Auto_Open and have it run each
time you open your receiving workbook.

(If the receiving file is opened multiple times per day, then the auto_open may
be redundant.)

Todd Helmick wrote:

I would like to be able to create an .xls document on my computer that
does 1 of 2 things (both would achieve the same result, i just dont
know which one would be better, or how to do either)

GOAL: get data from a spreadsheet (that is saved on the company
server) and have it populate in a combo box (on a userform) on the xls
document that is saved on my computer.

method 1) create a macro that opens up the external xls data, copies
it to the local spreadsheet and then closes the external spreadsheet.

method 2) create some sort of a lookup function that dynamically pulls
from that external xls document without the need to do a crazy import
macro.

That "external xls document" is a file that gets changed automatically
(daily) from an outside company and they just dump the xls file on our
server for our reference. this xls document contains about 15 columns
and anywhere from 150 to 300 rows on any given day.

I want to be able to have the combo box in my userform (on the xls
file saved on my computer) dynamically display the contents of column
A from the xls file located on the server.

Is this possible with out too much brain damage??


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Importing Data from a pre-existing spreadsheet

ps. When you open that sending file, open it in readonly mode. Then you won't
have to worry about the file being in use by others.

Dave Peterson wrote:

I think I would use the crazy option #1. It seems easier and more robust.

The first thing I'd do is open the receiving file
Turn on the macro recorder
Open the sending file
copy and past the data
close the sending file
Stop the macro recorder

Then your userform will have the data it needs to populate the controls you
have.

You could assign this macro to a button from the Forms Toolbar so that you could
run it on demand -- or even rename the macro to Auto_Open and have it run each
time you open your receiving workbook.

(If the receiving file is opened multiple times per day, then the auto_open may
be redundant.)

Todd Helmick wrote:

I would like to be able to create an .xls document on my computer that
does 1 of 2 things (both would achieve the same result, i just dont
know which one would be better, or how to do either)

GOAL: get data from a spreadsheet (that is saved on the company
server) and have it populate in a combo box (on a userform) on the xls
document that is saved on my computer.

method 1) create a macro that opens up the external xls data, copies
it to the local spreadsheet and then closes the external spreadsheet.

method 2) create some sort of a lookup function that dynamically pulls
from that external xls document without the need to do a crazy import
macro.

That "external xls document" is a file that gets changed automatically
(daily) from an outside company and they just dump the xls file on our
server for our reference. this xls document contains about 15 columns
and anywhere from 150 to 300 rows on any given day.

I want to be able to have the combo box in my userform (on the xls
file saved on my computer) dynamically display the contents of column
A from the xls file located on the server.

Is this possible with out too much brain damage??


--

Dave Peterson


--

Dave Peterson
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
How can I organize/transfer existing data into a new spreadsheet? PaddyR Excel Discussion (Misc queries) 1 November 13th 08 03:27 AM
Importing data into existing worksheet Engels New Users to Excel 1 January 5th 07 01:54 PM
Importing Data into Existing Pivot Tables ? jman559 Excel Discussion (Misc queries) 0 December 7th 05 07:05 PM
Importing data into an existing workbook Bob Reynolds Excel Worksheet Functions 2 April 15th 05 03:43 PM
getting data from cells in wrksheet & importing in existing works drg34 Excel Discussion (Misc queries) 1 March 23rd 05 09:14 AM


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