-
WSgellwood
AskWoody LoungerI would start by just manually pasting the data into an Access table and then writing VBA code in Access which makes a table and populates it from the “pasted” table. Once that works, then it’s a matter of using ‘automation’ (or whatever its called these days) to run Access VBA code from Excel that does the same thing except the new table is populated from the array which you pass to Access. Have you tried something like this yet?
-
WSgellwood
AskWoody LoungerMay 26, 2011 at 2:33 pm in reply to: User level security – how to convert from Access 2010 to Access 2003? #1280870I see under “Access Options” I have the ability to change the Default file format for creating new databases. So, I will change this to “Access 2003”, create a new database and import all the objects from my “Access 2010” database.
I will post again here if this doesn’t work.
-
WSgellwood
AskWoody LoungerOctober 22, 2006 at 10:42 pm in reply to: How to get data from website to desktop? (Access 2003) #997374For anyone interested, here is the answer.
Working with the website developers, we decided that the website form would publish to a Comma-separated-values (.CSV) text file, which would be sitting at an ftp site. Each day at midnight, a new file (which has the date as part of the filename) is created. Then each day at 2 am, Access uses the Windows API and calls methods in WinInet.dll to go get the file from the previous day and download it to the local harddrive.
I’m still working on this, but the basic ftp download from wihtin Access is working.
I’ve attached the code.
-
WSgellwood
AskWoody LoungerThank you Hans. I’ve now successfully attached the file. Yes I did mean post 553,191 please make it editable and I will attach the code to it as well.
-
WSgellwood
AskWoody LoungerHi – the attached code will go to an ftp server, look for a file, and download it and parse it into an Access table. It can be called manually by a button click or by a timer.
The main routine is called DownloadCouponRequest which calls Windows API functions in wininet.dll.
p.s. I’m posting this because Frances Donahoe contacted me privately re a thread which now seems to be closed.
-
WSgellwood
AskWoody LoungerSeptember 8, 2006 at 5:33 am in reply to: Excel automation from Access (Access and Excel 2003 sp 2) #1027711Thank you Hans! and goodbye brick wall
Nothing I tried would work! I spent HOURS and it was all because I went
Dim rngRangeToSelect as Range BADBADBAD!
instead of
Dim rngRangeToSelect as Excel.Range
At last I can start making progress. Thank you again.
-
WSgellwood
AskWoody LoungerSeptember 7, 2006 at 5:15 am in reply to: Excel automation from Access (Access and Excel 2003 sp 2) #1027499Thank you Hans, especially for elegant “Set xlBook = xlApp.Workbooks.Open(strFilePath)” . Apologies the duplicate code – i sloppily edited more complicated code trying to illustrate my problem. What I *really* need
is an AutoFilter and some column widths formatted, but for the life of me I can’t do the simplest things like assign a range object
… will you look at this with your eagle eye? Everything is inside “With xlApp” so why doesn’t it work? I’ve tried lots of variations on the Set statement to set the range variable, but no joy at all.
.
.
With xlApp
.Visible = True
Set xlBook = .Workbooks.Open(strFilePath)
Set xlSheet = xlBook.ActiveSheet
xlSheet.Range(“A1”).Select
‘THE NEXT LINE GIVES “TYPE MISMATCH” AS THO TRYING TO ASSIGN A STRING TO A RANGE OBJECT
Set rngRangeToSelect = ActiveCell.CurrentRegion
End With ‘xlApp
.
. -
WSgellwood
AskWoody Lounger… and also there’s all of us who read the answers and are silently enlighteded as well! I add my thanks to yours.
-
WSgellwood
AskWoody LoungerThanks Hans – I’ll re-think how I’m doing this.
-
WSgellwood
AskWoody LoungerCharlotte and Wendell – Thank you so much for this discussion. Most informative.
-
WSgellwood
AskWoody LoungerThank you Chris – I’ve just spent an hour trying to figure this out.
-
WSgellwood
AskWoody LoungerYou’ll also need to create a procedure to change colours for the text of Total Exposure. You’ll need to do this everytime you change either Likelihood or Consequence PLUS everytime you move from one record to another. Since this code will have to go into 3 places, it’s better to create a separate sub routine or function and then call it from the Form’s Current event (which occurs when you move from one record to another), and the AfterUpdate events of Likelihood and Consequence.
You need to co into the Code behind the form and put this:
Private Sub Form_Current()
Call ChangeExposureColor
End SubPrivate Sub Likelihood_AfterUpdate()
Call ChangeExposureColor
End SubPrivate Sub Consequence_AfterUpdate()
Call ChangeExposureColor
End SubSub ChangeExposureColor()
Select Case Me.Exposure
Case 1 To 5
Me.Exposure.ForeColor = 8453888 ‘green
Case 6 To 10
Me.Exposure.ForeColor = 65535 ‘yellow
Case Is > 10
Me.Exposure.ForeColor = 255 ‘red
End Select
End Sub -
WSgellwood
AskWoody LoungerJanuary 20, 2006 at 9:22 pm in reply to: How to get data from website to desktop? (Access 2003) #995797Hi Scott, First – THANK YOU
I really like the code within your application because you’re using the Windows API directly. Your code is working for me, but now that I’m ready to start work, the specs have changed.
The ISP is now going to deposit a CSV or XML file for me each day at midnight (the file will have the date as part of the filename), so now I have to go get the file off the site instead of reading an Access db on the site. Once I’ve got the file, I’ll save it on a local hard drive, parse it and then update my Access app.
Does the Winsock API have a function like WinInet’s FtpGetFile function? Do you have any suggestions about the best way to grab a file off the site from within Access?
Gwenda -
WSgellwood
AskWoody LoungerNovember 12, 2005 at 11:43 pm in reply to: With Statements get split unnecessarily!! (Excel VBA (Macro Recording)) #984778Makes a lot of sense and is fascinating.
-
WSgellwood
AskWoody LoungerHi Chris – I found this interesting reading: ASP.NET & applicational domains (AppDomain) at http://www.codeproject.com/aspnet/aspwp.asp. I guess if you really wanted to delete this account you’d have to change the Machine.config file too so that ASP.NET doesn’t constantly try to create its worker process.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Test post
by
Susan Bradley
4 hours, 3 minutes ago -
Used Systems to delete Temp files Gone WRONG what does this mean?
by
Deo
3 hours, 8 minutes ago -
SSD shuts down on its own
by
CWBillow
7 minutes ago -
OneDrive File Sharing Changes
by
David Clark
7 hours, 55 minutes ago -
OneDrive File Sharing Changes
by
David Clark
9 hours, 59 minutes ago -
Win 10 Pro 22H2 to Win 11 Pro 23H2 Conversion Guide
by
doneager
4 hours, 46 minutes ago -
Today is world backup day
by
Alex5723
1 hour, 36 minutes ago -
Windows .exe on Mint
by
Slowpoke47
11 hours, 32 minutes ago -
Reviewing your licensing options
by
Susan Bradley
3 hours, 3 minutes ago -
Apple has been analyzing your photos since September 2024
by
B. Livingston
6 hours, 36 minutes ago -
What Windows 11 24H2 offers beyond bugs
by
Lance Whitney
1 hour, 53 minutes ago -
Making sense of Settings in Windows 11
by
Simon Bisson
3 hours, 58 minutes ago -
Windows 11 pro fails to log in after upgrading Win 10 pro to Win 11 pro 24h2
by
ben_sitaud
7 hours, 49 minutes ago -
23H2 / 24H2 / Local v. Microsoft Account.
by
CWBillow
5 hours, 35 minutes ago -
YouTube Ad Blocker Blocker
by
bbearren
5 hours, 46 minutes ago -
Obscure historical facts about Windows
by
Cybertooth
7 hours, 24 minutes ago -
Microsoft Backup
by
Linda2019
1 hour, 24 minutes ago -
What is the best notepad++ version for W7?
by
Picky
6 hours, 38 minutes ago -
What are right steps to move MS 365 Office+OneDrive files from PC to iMac?
by
glnz
1 day, 16 hours ago -
How to move existing MS 365 Office with OneDrive files from PC to new iMac
by
glnz
1 day, 16 hours ago -
How to move MS 365 files (some on OneDrive) from PC to iMac
by
glnz
2 days, 11 hours ago -
Microsoft adding Quick Machine Recovery to Windows 11
by
Alex5723
2 days, 11 hours ago -
Microsoft vs Passwords
by
Alex5723
1 day, 19 hours ago -
Windows 11 Insider Preview build 26200.5516 released to DEV
by
joep517
2 days, 15 hours ago -
Windows 11 Insider Preview build 26120.3653 (24H2) released to BETA
by
joep517
2 days, 15 hours ago -
Two March KB5053606 updates?
by
Adam
2 days, 8 hours ago -
MS Edge Not Updating to v134.0.3124.95 (rel. 27-Mar-2025)
by
lmacri
2 days, 9 hours ago -
Intel® Graphics/Sound Driver updates for 7th-10th Gen Intel® Core™ Processor
by
Alex5723
2 days, 11 hours ago -
Is there a comprehensve way to tranfer ALL current Edge Settings into a new Edge
by
Tex265
2 days, 10 hours ago -
Transferring ALL info/settings from current Firefox to new computer Firefox
by
Tex265
2 days, 10 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.