473,404 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

use vba xls for ms access

Dear all,
I want to link a file from the folder use vb as attach xls to ms access, if anyone can help.
Hyperlink Directory Contents.xls
Thank you,
Rahman
Attached Files
File Type: xls Hyperlink Directory Contents.xls (34.0 KB, 309 views)
File Type: zip Hyperlink Directory Contents.zip (12.3 KB, 65 views)
Nov 20 '15 #1
8 2202
zmbd
5,501 Expert Mod 4TB
rahmansaputra

Do you mean VB or VBA?
These are related environments; however, they handle Access in very different ways; thus, the terms are not really interchangeable.

++
If you want to avoid some of the VBA, one can use the Excel file by linking to the worksheet using the External Data ribbon tab and the Excel import/link option. I typically avoid importing the data using this method as there are often problems with data-type missing entries etc... Instead I'll use the linked table method.
The other issue with this is if the workbook changes names or locations.

There are several threads related to handling data between Excel and Access and ; however, I do want to be clear about which programming environment you are using before we get started.


+++
Please understand, many of us cannot or will not d/l un-requested attachments.
In my case, such d/l are prohibited by my ITSec staff.. A practical example as to why can be found here http://bytes.com/topic/access/answer...l-ms-products. this unfortunate Member opened a file from a trusted source that resulted in all sorts of issues!

Thus, it is preferable to have the problem clearly described in the posting text, with code and data examples (properly formatted using the [CODE/] formatting tool), and occasionally, only if needed, a screen shot/image attached using the [Advanced] post editor :)
+++
Nov 20 '15 #2
NeoPa
32,556 Expert Mod 16PB
Just so you can understand why there is very little in the way of help here, I have no idea what it is you're asking for. Without a question that can be understood there can be no helpful answer. Maybe others can understand it better than I, but I do have some experience.
Nov 20 '15 #3
hvsummer
215 128KB
do you want to link table into access with specify path from a folder picker ? ==

ok, let deal with it
I'll give you a generator code for pick up xls file from folder and link-table into access, at Access/vba insight sections

Edit: here we go, you can find my vba code to import with some additional option here
https://bytes.com/topic/access/insig...fo-more-option
Nov 22 '15 #4
zmbd
5,501 Expert Mod 4TB
Let's wait for rahmansaputra's response to our questions here before we dive in...
Nov 22 '15 #5
hvsummer
215 128KB
@zmbd : well, I just by this change post my import/Link code to insight section too, don't worry. We're still waiting for him to give more detail.

I think I know what he want.. he want to use vba code inside Excel file in Access, just not sure if he want to import those code from excel or want to run it as application from access.

may be he want access to read the hyperlinks inside excel file and import those files that hyperlink lead to.
Nov 22 '15 #6
zmbd
5,501 Expert Mod 4TB
yes I understand; however, instead of guessing, which can lead to others posting with suggestions and guesses based upon other peoples guesses and suggestions in a do..loop... it's often better to wait for the reply.
Nov 22 '15 #7
Thank you to all of you,
I mean, I want to use VBA in xls can be used in ms access. How to do?
Nov 23 '15 #8
hvsummer
215 128KB
There are 2 way to run vba inside excel (as I know):
1st, you can open that excel file and runcode with vba in access
2nd, you can rewrite code with extra application object.

can you post your vba code here ? (inside [code] [/CODE.])
Nov 23 '15 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
1
by: Dave | last post by:
Hello NG, Regarding access-declarations and member using-declarations as used to change the access level of an inherited base member... Two things need to be considered when determining an...
13
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
2
by: eitsubashkumars | last post by:
I have configured remote access VPN with local pool in ASA firewall however im accessing all the resources(my private network such as servers ) through Asa firewall after getting connected the VPN...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.