-
WSJamie.Aston
AskWoody Loungerr u familiar with VBA? If so try the attached code, i use it to syncronize a Local folder with the same named folder on the LAN. Any comments on how to make the code better would be appreiciated.
Regards
Jambo -
WSJamie.Aston
AskWoody LoungerI’m no expert (that a sure thing) but y can’t you set up firewall software (E.g. Norton Internet Security 2003) on one of the machines that is failing as a test machine and set the firewall software to monitor all use of the specified port. Don’t know if it would work but it’s worth a try.
Jambo
-
WSJamie.Aston
AskWoody LoungerCheers Guys,
jkipk,
I -
WSJamie.Aston
AskWoody LoungerI only reseated the Graphics card when i said took it all apart. But i have 3 USB devices and a Network connection too, could these be sapping the power?
Jambo
-
WSJamie.Aston
AskWoody LoungerIf you have to pay for it i wouldn’t expect you to send it to me, i thought it was free. Nevermind, thanks anyway.
jambo
-
WSJamie.Aston
AskWoody LoungerYou guys rock, i found it under the VBA Editor in Excel, it was there all the time.
Cheers Guys
Jambo -
WSJamie.Aston
AskWoody LoungerI use
NextAvailableRow = mySheet.UsedRange.Rows.Count + 1
is there anything wrong with this?
Jambo
-
WSJamie.Aston
AskWoody Loungercould you email it to me at Jamie.Aston@NtlWorld.Com please. I’ve been looking for it on the net but ain’t had any luck yet.
Jambo
-
WSJamie.Aston
AskWoody LoungerCheer’s, i will start messing about with VBS and try to do what i’m doing. Is there a VBS editor like the one in VBA or VB? This would be much better as the auto complete would help a heck of alot.
Thanks
Jambo -
WSJamie.Aston
AskWoody LoungerOr you could use the DateAdd(interval, number, date) function in VB.
i.e. SixWeeksBefore = DateAdd(“ww”,-6,myDate)
Regards
Jambo -
WSJamie.Aston
AskWoody LoungerOr you could create a VB executable and schedule it for when you want. I’ve wrote the code below very quickly and havn’t had a chance to test it so apoligies if there are any mistakes. Feel free to pick holes in it too.
Function FileExists(Fname) As Boolean
‘different method from <FileExists = Dir(Fname) “”>
‘so not to conflict with dir in calling subroutine
Dim GA As LongOn Error GoTo NoFile
GA = GetAttr(Fname)
FileExists = True
Exit FunctionNoFile:
If Err.Number = 53 Or Err.Number = 68 Then
FileExists = False
Else
MsgBox Fname & Chr(13) & Err.Number & Chr(13) & Err.Description, , “File Exists Function”
End
End If
End FunctionSub Main()
‘Declare Variables
Dim OldFN as String, NewFN as String
Dim OldFP as String, NewFP as String‘Set FIle Paths
OldFP = “The Path To Move Files From”
NewFP = “The Path To Move Files To”‘Change To Drive Where Files To Be Moved From
ChDrive(Left(OldFP,1))
‘Change To Directory Where Files To Be Moved From
ChDir(OldFP)
OldFN = Dir(“*.*”)Do While OldFN “”
‘Set New FilePath and FileName
NewFN = NewFP & OldFN
‘If The FIleExists Then Delete It
If FileExists(NewFN) then Kill(NewFN)
‘Move File To New Location
Name OldFN As NewFN
‘Reset OldFilename For Next File
OldFN = Dir(“*.*”)
LoopEnd Sub
Regards
Jamie -
WSJamie.Aston
AskWoody LoungerOr you could create a VB executable and schedule it for when you want. I’ve wrote the code below very quickly and havn’t had a chance to test it so apoligies if there are any mistakes. Feel free to pick holes in it too.
Function FileExists(Fname) As Boolean
‘different method from <FileExists = Dir(Fname) “”>
‘so not to conflict with dir in calling subroutine
Dim GA As LongOn Error GoTo NoFile
GA = GetAttr(Fname)
FileExists = True
Exit FunctionNoFile:
If Err.Number = 53 Or Err.Number = 68 Then
FileExists = False
Else
MsgBox Fname & Chr(13) & Err.Number & Chr(13) & Err.Description, , “File Exists Function”
End
End If
End FunctionSub Main()
‘Declare Variables
Dim OldFN as String, NewFN as String
Dim OldFP as String, NewFP as String‘Set FIle Paths
OldFP = “The Path To Move Files From”
NewFP = “The Path To Move Files To”‘Change To Drive Where Files To Be Moved From
ChDrive(Left(OldFP,1))
‘Change To Directory Where Files To Be Moved From
ChDir(OldFP)
OldFN = Dir(“*.*”)Do While OldFN “”
‘Set New FilePath and FileName
NewFN = NewFP & OldFN
‘If The FIleExists Then Delete It
If FileExists(NewFN) then Kill(NewFN)
‘Move File To New Location
Name OldFN As NewFN
‘Reset OldFilename For Next File
OldFN = Dir(“*.*”)
LoopEnd Sub
Regards
Jamie -
WSJamie.Aston
AskWoody LoungerHi Al, Sorry to leech off ur thread but how did u intigrate GW 5.5 with Office. We use Excel & word 98 here and GW 5.5 and i constantly find myself sending out LOTS of gw’s because i can’t intigrate MS Office and GW.
thanks
Jambo -
WSJamie.Aston
AskWoody LoungerAlso if your viewing files by “Details” you just have to click the “Name” bar at the top and it’ll arrange them A-Z, click again and it’ll arrange them Z-A.
Jambo
-
WSJamie.Aston
AskWoody LoungerSorry guys, been away on hols for two weeks. I tried the API way and it looks way too complicated, and all machines the program needs to run on has WSH. How would i do it the WSH way, i’ve never came accross it or tried messing with it b4.
Thanks in Advance
Jambo
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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
-
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
4 minutes ago -
24H2 fixed??
by
CWBillow
2 hours, 8 minutes ago -
Uninstalr Updates
by
jv16
2 hours, 14 minutes ago -
Apple zero days for April
by
Susan Bradley
7 hours, 38 minutes ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
13 hours, 9 minutes ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
1 day ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
7 hours, 53 minutes ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
15 hours, 22 minutes ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
1 day, 9 hours ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
1 day, 12 hours ago -
0patch
by
WSjcgc50
13 hours, 27 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
1 day, 5 hours ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
1 day, 15 hours ago -
Problem opening image attachments
by
RobertG
1 day, 17 hours ago -
advice for setting up a new windows computer
by
routtco1001
2 days, 7 hours ago -
It’s Identity Theft Day!
by
Susan Bradley
1 day, 12 hours ago -
Android 15 require minimum 32GB of storage
by
Alex5723
2 days, 12 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
2 days, 12 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
2 days, 13 hours ago -
Firefox became sluggish
by
Rick Corbett
5 hours, 34 minutes ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
2 days, 17 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
2 days, 17 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
1 day, 14 hours ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
11 hours, 54 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
1 day, 15 hours ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
1 day, 16 hours ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
3 days, 8 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
2 days, 12 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
2 days, 22 hours ago -
23 and you
by
Max Stul Oppenheimer
3 days, 5 hours ago
Recent blog posts
Key Links
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.