-
WSArcturus16a
AskWoody LoungerLegare,
The macro executes from a button on the active sheet.
If I modify your code to remove the trailing backslash, the file is named 2001_02.xls under the G:Daily Operating ReportTable Games folder. Otherwise, the code still bombs at “ActiveWorkbook.SaveAs (sFName)” even with the message box.
The error message “file could not be accessed” indicates possible problems with 1) folder does not exist, 2) folder not read-only, 3) There are not illegal char in filename and 4) path not longer than 218 char.
-
WSArcturus16a
AskWoody LoungerLegare,
At first I tried
=CONCATENATE(RIGHT(AP23,2),IF(AP19<10,CONCATENATE(0,AP19),AP19),IF(AQ21<10,CONCATENATE(0,AQ21),AQ21),"Tables")
but when that didn't work, I changed it to "dly_TG_rpt" as a test.
I'm trying to achieve a date format with text in a filename, like "yymmddTables.xls". The if() should handle a date less than ten and add a leading zero. With this format the files should sort very nicely in our directory. (We save everything forever).
Thx again for your time spent with this one. -
WSArcturus16a
AskWoody LoungerLegare,
Thanks for all the time you’ve spent on this. Sorry it took so long to get back to you. Here’s the code. The macro copies a sheet to a new file, converts the formulas to values and the saves the file with the default filename email_Dly_TG_Rpt.xls (commented out here).Sub Extract_Dly_TG_rpt_for_email()
‘
‘ Extract_Dly_TG_rpt_for_email Macro
‘ Macro recorded 4/17/00 by Bob Buckley-CP Fin Plan
‘‘
ActiveSheet.Previous.Select
Sheets(“Daily Table Games Report”).Select
Sheets(“Daily Table Games Report”).Copy
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range(“A1”).Select
Selection.End(xlToRight).Select
Selection.End(xlToRight).Select
Range(“L2”).Select
Application.CutCopyMode = False
ChDir “G:Daily Operating ReportTable Games2001_02”
‘ ActiveWorkbook.SaveAs FileName:= _
‘ “G:Daily Operating ReportTable Games!_email_Dly_TG_Rpt.xls”, FileFormat:= _
‘ xlNormal, Password:=””, WriteResPassword:=””, ReadOnlyRecommended:= _
‘ False, CreateBackup:=FalseDim sFName As String
sFName = “G:Daily Operating ReportTable Games2001_02” & Range(“Ap18”)
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs (sFName)
Application.DisplayAlerts = TrueEnd Sub
-
WSArcturus16a
AskWoody LoungerLegare,
THX for such a timely response. I still need your help so don’t leave just yet. I inserted your code into an existing macro, which simply saves the new sheet to a default name. I placed your code just below the instruction to change directory:
ChDir “G:Daily Operating ReportTable Games2001_02”.
I substituted the full path (including closing backslash) and populated the cell reference with a formula to concatenate a date abbreviation. But the code halts at the SaveAs (with or without DisplayAlerts) and produces an error message. I know that the folder exists, and that it is not read only. The filename does not contain illegal characters and the file/path is less than 218 characters.
Any suggestions? -
WSArcturus16a
AskWoody LoungerIs Zone Alarm useful for pc’s with merely a 56k modem? Seems like much of the discussion (here and elsewhere) is around cable and DSL.
-
WSArcturus16a
AskWoody LoungerTo: Rory
I just tried the ScreenPointer = 11, but get an error message. I moved ScreenPointer to the start of the macro BEFORE Application.DisplayAlerts = False and Application.ScreenUpdating = False. I get an “object required” error and the ScreenPointer = 11 is highlighted in the VBEditor. What do you suggest I should try next. -
WSArcturus16a
AskWoody LoungerTo: gwhitfield
This looks like what I should be using instead of poking around from one row to the next, switching ranges left and right. The macro takes a standardized report and trims it 15 different ways to be mailed to various departments. Occassionally, additional row(s) are added (or subtracted), causing a rewrite to the macro. I’ll experiment with rngFrom/rngTo once I get this mod checked out. Bet it is faster, too. Thx. -
WSArcturus16a
AskWoody LoungerThanks ScreenUpdating was just what I needed. Would you provide an example of how to use StatusBar? I am looking to alert a user that a macro is running in the background.
-
WSArcturus16a
AskWoody LoungerThey are windows. The macro I’ve recorded steps through copy-paste values, deletion/hiding of rows, print range selection, previews, page-break previews, normal views and so on.
I’ve already added DisplayAlerts=False so the user isn’t required to hit Enter 15 (or so) times to overwrite all the files created by the macro.
I have no experience with Dialog boxes and none have been included here. Eventually, I would like to have one here informing the user, but that’s not as important yet as turning the display off.
![]() |
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
-
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
6 hours, 15 minutes ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
7 hours, 41 minutes ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
6 hours, 51 minutes ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
17 hours ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
18 hours, 6 minutes ago -
Disengage Bitlocker
by
CWBillow
8 hours, 4 minutes ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
20 hours, 5 minutes ago -
New Win 11 Pro Geekom Setup questions
by
Deo
4 hours, 46 minutes ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
1 day, 3 hours ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
1 day, 3 hours ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
1 day, 7 hours ago -
New PC transfer program recommendations?
by
DaveBoston
2 hours, 39 minutes ago -
Windows 11 Insider Preview Build 22631.5545 (23H2) released to Release Preview
by
joep517
1 day, 11 hours ago -
Windows 10 Build 19045.6029 (22H2) to Release Preview Channel
by
joep517
1 day, 11 hours ago -
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
23 hours, 42 minutes ago -
The end of Windows 10 is approaching, consider Linux and LibreOffice
by
Alex5723
3 hours, 45 minutes ago -
Extended Windows Built-in Disk Cleanup Utility
by
bbearren
12 hours, 39 minutes ago -
Win 11 24H2 June 2025 Update breaks WIFI
by
dportenlanger
2 days, 6 hours ago -
Update from WinPro 10 v. 1511 on T460p?
by
CatoRenasci
1 day, 4 hours ago -
System Restore and Updates Paused
by
veteran
2 days, 8 hours ago -
Windows 10/11 clock app
by
Kathy Stevens
1 day, 19 hours ago -
Turn off right-click draw
by
Charles Billow
2 days, 12 hours ago -
Introducing ChromeOS M137 to The Stable Channel
by
Alex5723
2 days, 15 hours ago -
Brian Wilson (The Beach Boys) R.I.P
by
Alex5723
14 minutes ago -
Master patch listing for June 10, 2025
by
Susan Bradley
2 days, 17 hours ago -
Suggestions for New All in One Printer and a Photo Printer Windows 10
by
Win7and10
1 day, 20 hours ago -
Purchasing New Printer. Uninstall old Printer Software First?
by
Win7and10
2 days, 23 hours ago -
KB5060842 Issue (Minor)
by
AC641
1 day, 11 hours ago -
EchoLeak : Zero Click M365 Copilot leak sensitive information
by
Alex5723
3 days, 6 hours ago -
24H2 may not be offered June updates
by
Susan Bradley
1 day, 22 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.