-
WSjharrisiii
AskWoody LoungerIt sounds like the NIC reset your connection settings.
Try this:
Control Panel / Internet Options
Connections Tab
Manually sort out the issue or use the Connection Wizard.HTH
-
WSjharrisiii
AskWoody LoungerTry this:
Control Panel / Modems
Is the modem there?
yes Check the Diagnostics tab for port assignment. Try to use the manual modem install in the fax software.
no Add Modem buttonHTH
-
WSjharrisiii
AskWoody LoungerYou may be able to backtrack to the code source by looking at the active tasks with Ctl-Alt-Del when your firewall pops. Just a wild guess, but if I wanted to steal your machine, I would start a task that would use standard Windows services to call home.
HTH
-
WSjharrisiii
AskWoody LoungerBy chance, did the problems occur just prior to or on an hour mark?
I have seen a network save operation crash with a swarm of disk I/O. Sometime this locks the file until the operating system recovers. Check for any scheduled but long forgotten autorun network tasks like defrag, backup, etc. that triggered your problem. On a network, you live and die with server ops.
-
WSjharrisiii
AskWoody LoungerFinished section of code to Set Directory with msgBox
With thanks to all
And a special hats off to Legare Coleman, who provided most of the code.
'Instruct user to GoTo target directory Msg = "On the next screen" & (Chr(10)) & (Chr(10)) & _ " Browse to the Line Card Directory" & _(Chr(10)) & _ "Then click the OPEN Button" & (Chr(10)) & (Chr(10)) & _ "Are you ready to continue ?" Style = vbOKCancel + vbInformation + vbDefaultButton2 Title = "Capture Data From Line Cards" Response = MsgBox(Msg, Style, Title) If Response = vbCancel Then 'Skip the process GoTo EndSub End If ' ' '============= Heavy Lifing Section =============== ' 'Get current Worksheet Name. This is the sheet that collects the consolidated data IamWorkingHere = ActiveWorkbook.Name ' 'Get Directory name from msgBox string Dim iLast As Integer strPathAndFile = Application.GetOpenFilename For I = Len(strPathAndFile) To 0 Step -1 If Mid(strPathAndFile, I, 1) = "" Then iLast = I Exit For End If Next I strPath = Left(strPathAndFile, iLast) strFName = Dir(strPath & "*.xls", vbNormal) 'Cycle through all files in the target directory While strFName "" Set oWB = Workbooks.Open(strPath & strFName) 'Feedback to user - "Progress Bar" Application.StatusBar = "Please be patient, _ Processing file# " & NextRow & " " & strFName On Error Resume Next 'Turn Off Screen updates Application.ScreenUpdating = False
‘
‘
‘Lots of boring code goes here
‘
‘NextRow is counter of data rows pasted into IamWorkingHere worksheet.
strFName is the current file that is being processed
The combination is quite impressive in action.Hope this helps someone in a future project.
-
WSjharrisiii
AskWoody LoungerThis is an Excel97 code fragment that may give you some ideas.
“Picture 1” is the Excel shape object. In my case there was only one shape object; a picture.Sub PictureResizeAndCopy()
On Error GoTo NoPicture
ActiveSheet.Shapes(“Picture 1”).Select
Selection.ShapeRange.ScaleHeight 0.5, True change picture size
Selection.ShapeRange.ScaleWidth 0.5, True
Selection.Copy
||||||<———– Put the destination sheet code here
Application.Goto Reference:=”R1C1″ This is destination position of logo
ActiveSheet.PasteNoPicture:
End Sub
HTH
-
WSjharrisiii
AskWoody LoungerIn the project I am working on, the user has a series of files in a separate directory that will be processed for data extraction.
Through the msgBox, the user points to the first file in the target directory (not the current directory) to start the data extraction.
ActiveWorkbook.name, etc. does indeed Not get what I want because the msgBox return string is the FullName of a non-active workbook file.
This code is what I was looking for.
Thanks again to all.
“Here, you are measured not by what you keep, but what you give”
-
WSjharrisiii
AskWoody LoungerThese two macros will put the sheet name in B1 and set the worksheet to print as one page.
Sub GetTabName()
Range(“B1”) = ActiveSheet.Name
End Sub
Sub OnePagePrint()
With ActiveSheet.PageSetup
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
End SubDrop Down Lists aren’t too hard.
Look in Help | index | drop-down lists, | data validation
Hope this helps.
-
WSjharrisiii
AskWoody Lounger[indent]
Steven Roman Writing Excel Macros, cheap, easy to read and thin! –Sam
[/indent]
Thanks,
Amazon actually has a used copy
-
WSjharrisiii
AskWoody LoungerThanks for the tip.
The well is so deep and my dipper so small.
Do you have a favorite resource for Excel VBA programming?
-
WSjharrisiii
AskWoody LoungerHere is a fragment of the final code.
Thanks to all.
‘GoTo Diamonds Section
Range(“A7”).Select -
WSjharrisiii
AskWoody LoungerThanks for the beautiful piece of code but my description of the data wasn’t very good.
Sample sheet attached.
After looking at your code
the answer jumped out
Dim xy1 as Range
Find Label1
Set xy1 = Label1
xy1.Offset(0,1) Do work on Data1
xy1.Offset(0,3) Do work on Data2
etc.Thanks for the inspiration.
Sometimes the simplest solutions are the hardest to see. -
WSjharrisiii
AskWoody LoungerActive cell is changed after I grab the first data field because I copy and paste the data field into a new row. I need some way of getting back to the “marching ants” cell to Offset to the next data field.
ActiveCell.Offset(0, 1).Select Offsets from pasted cell, not cell with “marching ants”
There are 1,290 Sheets, each with five general groups of information that loosely follow this format.
.row
.row
Label1 Data1 Label2 Data2 Label3 Data3
Label4 Data4 Label5 Data5
.row
.row ‘Inconsistant number of rows between groups
.row
Next Data Group
.row
etc… for five groupsThe consolidation result is a new row that looks like this:
Data1 Data2 Data3 Data4 Data5….Data34
which gets copied to a consolidating worksheet.
Some other way to do this?
-
WSjharrisiii
AskWoody LoungerA bit of tinkering got me what I needed for the ItemPicture resize, copy, and paste.
Sub PictureResizeAndCopy()
‘
‘ PictureResizeAndCopy Macro
‘
‘
On Error GoTo NoPicture
ActiveSheet.Shapes(“Picture 1”).Select
Selection.ShapeRange.ScaleHeight 0.05, True
Selection.ShapeRange.ScaleWidth 0.05, True
Selection.Copy
Windows(“LineSheetData.xls”).Activate
Application.Goto Reference:=”R1C1″
ActiveSheet.Paste
NoPicture:
End SubSuccess is just a thousand iterations away…
-
WSjharrisiii
AskWoody LoungerRe:copying them all at once…
The target cells are now laid out to look good as a printed form and are checkerboarded all over the InventoryWorksheet page.I was so fixated on looping through the files that I overlooked on last obvious problem.
Each InventoryWorksheet has an ItemPicture. This also has to come across to the CompilationWorksheet. And to further twist the knife, I would like to set the SizeProperty to 5% before I copy it making it LineHeight tall.
Ifexist(secret.code), print, else kill.me
![]() |
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
-
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
19 seconds ago -
May 2025 updates are out
by
Susan Bradley
25 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
3 hours, 32 minutes ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
3 hours, 33 minutes ago -
Drivers suggested via Windows Update
by
Tex265
3 hours, 24 minutes ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
1 hour, 8 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
10 hours, 24 minutes ago -
Apple releases 18.5
by
Susan Bradley
4 hours, 49 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
11 hours, 50 minutes ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
12 hours, 27 minutes ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
1 hour, 20 minutes ago -
No HP software folders
by
fpefpe
20 hours, 9 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
4 hours, 6 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 day, 1 hour ago -
Copilot, under the table
by
Will Fastie
16 hours, 45 minutes ago -
The Windows experience
by
Will Fastie
1 day, 7 hours ago -
A tale of two operating systems
by
Susan Bradley
22 hours, 42 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
1 day, 13 hours ago -
Where’s the cache today?
by
Up2you2
2 days, 4 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 21 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
21 hours, 31 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
29 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 21 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 21 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 23 hours ago -
MS Passkey
by
pmruzicka
2 days, 1 hour ago -
Can’t make Opera my default browser
by
bmeacham
3 days, 6 hours ago -
*Some settings are managed by your organization
by
rlowe44
2 days, 17 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
3 days, 5 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
4 days, 1 hour 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.