Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Import Data button

Hi

I have a userform and would like to put an Import Data Button, what's the
code behind the button, I've been looking and recorded a macro to get it,
with no luck.
What I'm trying to create is click the button which opens
C:\Documents and Settings\Dave\My Documents\My Webs\Tests

I then choose the file and import.

This would be a time saver.

Thanks in advance

Dave



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Import Data button

Use getopenfilename to get filename. A pop up window will appear to let you
select the file.
FileName = Application.GetOpenFilename("Excel Files (*.xls), *.xls")


Post your macro if you need aditional help.
"DaveM" wrote:

Hi

I have a userform and would like to put an Import Data Button, what's the
code behind the button, I've been looking and recorded a macro to get it,
with no luck.
What I'm trying to create is click the button which opens
C:\Documents and Settings\Dave\My Documents\My Webs\Tests

I then choose the file and import.

This would be a time saver.

Thanks in advance

Dave




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
Where is the Data Import Excel button in Excel 2007 Joe L Excel Discussion (Misc queries) 6 March 9th 10 01:00 PM
Import data button issue Erin J Excel Discussion (Misc queries) 0 March 19th 09 03:44 PM
How to Start Excel in Text Import Wizard for data import rlelvis Setting up and Configuration of Excel 0 July 10th 08 08:40 PM
PLEASE!! How can I un-grey the 'Data-Import External Data-Import Data' option ??? kirkm[_6_] Excel Programming 13 August 8th 06 10:01 AM
Import a data using a command button Mally Excel Programming 1 March 28th 05 12:43 AM


All times are GMT +1. The time now is 07:08 PM.

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"