-
WSArcturus16a
AskWoody LoungerThanks Zeddy! That was the fix I needed.
-
WSArcturus16a
AskWoody LoungerMaudibe & Paul,
I tried something like that long ago, perhaps it was in Lotus. I used a sequence of dashes and pipes and parsed out the data that way. Looked like this: ——–|—-|————|— and I saved column titles along with the parse line. Formatting the text to a monospace font like Courier helped, too.
I even reverted to trying that here. I’m just not steady enough to double-click those dang vertical lines to remove without adding a new one here or there and then having to double-click that one, too. And trying to drag them is, well it’s a drag. Maybe I need a more precise mouse (if they even exist). But Rory’s solution works great. -
WSArcturus16a
AskWoody LoungerThanks Rory. I got busy with other tasks so I didn’t get to try your solution until just now. It appears to be shifted one character but I’m sure that my bad. Anyway, fixing it will help me better understand the code (I hope).
I would have liked to supply a sample report for others to test but the clients names listed in the report would have had to be scrambled and that would’ve taken way too long.
-
WSArcturus16a
AskWoody LoungerWow! Lots of choices. I’ll use these ideas as a starting point. Thanks to all for you replies.
-
WSArcturus16a
AskWoody LoungerThank JWoods. I’m going over there Monday. I’ll run the steps of your post then.
-
WSArcturus16a
AskWoody LoungerJWoods & Browni – What do your references to “the pc is running Vista” mean to me? I don’t know if there is an original Vista disk (but probably not). Does this invalidate JWoods suggested three steps?
-
WSArcturus16a
AskWoody LoungerThanks Zeddy. I was overthinking the problem. Again.
-
WSArcturus16a
AskWoody LoungerJanuary 23, 2015 at 6:34 pm in reply to: Insert Time Calculation into Pivot Table and Cell Format for Time Incl Days (XL07) #1486260Here’s my follow-up:
I went back to my source data, a Crystal query that addresses one of our businesses’s primary databases. In the query I added two fields (both calculations) so that I wouldn’t have to modify a spreadsheet each month. One field divides the TransID by itself to generate a transaction counter. The other new field I call Duration (DayFraction) which divides the system’s duration maintained as seconds by 86400). Then in a pivot table I insert a formula =’Duration (DayFraction)’/’Transaction Count’, which when properly formatted displays the
time in the pivot table work as expected. -
WSArcturus16a
AskWoody LoungerJanuary 21, 2015 at 2:13 pm in reply to: Insert Time Calculation into Pivot Table and Cell Format for Time Incl Days (XL07) #1485685Got it. I’ve done that before. I was just hoping that I had been missing a function/formula shortcut. Thanks Rory.
-
WSArcturus16a
AskWoody LoungerExcel alerted me to the extra space in the formula so I knew right away how to fix it. Thanks to you Maudibe for the all-in-one solution.
RG Thanks for explaing about the testing around the edges. I already try that a little but never knew a name for it.
Now I can replace this formula in B3: =LARGE(B11:B40,15) with this B3: {=LARGE(IF(YEAR(A11:A70)=2013,B11:B70,””),15)}
which allows me to select the entire range to evaluate without first having to determine the “2013” range manually.You guys are great! Thanks again.
-
WSArcturus16a
AskWoody LoungerThanks for the solutions. I tried all of them. In the end I’ll use Maudibe’s solution for expediency, but I want to try to use RetiredGeek’s and Rory’s in in the future. Maybe something to loop back if the user cancels.
-
WSArcturus16a
AskWoody LoungerThat’s It! Perfect. Thanks Mr. Geek.
I modified the Filename so that this code can be inserted into any workbook. All a user needs to do (I think) is to change the Sheets Array at the beginning of the macro.
Sub SelectedSheetsToPDF()
Sheets(Array(“Regular_Hours”, “Regular_Dollars”, “OT_Hours”, “OT_Dollars”, _
“Regular_Hrs_by_Job”, “OT_Hrs_by_Job”)).SelectDim strXLName As String, strPDFName As String, intPos As Integer
strXLName = ActiveWorkbook.FullName
intPos = InStr(1, strXLName, “.”)
strPDFName = Left(strXLName, intPos) & “pdf”ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=strPDFName, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=False, _
IgnorePrintAreas:=True, _
OpenAfterPublish:=TrueEnd Sub
-
WSArcturus16a
AskWoody LoungerA selection of sheets. Originally, I posted
Sheets(Array(“Sum Regular Hours”, “Sum Regular Dollars”, “Sum OT Hours”, “Sum OT Dollars”)).Select
but have modified the sheet names to exclude the spaces since I know that sometimes causes a problem
Sheets(Array(“Regular_Hours”, “Regular_Dollars”, “OT_Hours”, “OT_Dollars”, _
“Regular_Hrs_by_Job”, “OT_Hrs_by_Job”)).Select -
WSArcturus16a
AskWoody LoungerNo. That didn’t help. The PDF ignores the preselected print ranges and appears to use only A1:A5.
-
WSArcturus16a
AskWoody LoungerThat’d be one more reason for me to upgrade Jeremy. I’m on XL 2007 SP3.
I’ll find out soon enough. I just bought a new pc for home use last week and will add MS Office 2013.
What I’m trying to do is to summarize the daily results (Clock-Ins and Outs from our Time & Attendance system). Once summarized i want to paste the summary results into another workbook to act as a database. I’ve done this before with “helper” columns of formulas (like ISBLANK), but I just had to ask just in case I missed something.
Ya never know what ya don’t know.
![]() |
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
-
Outlook 365 classic has exhausted all shared resources (Awaiting moderation)
by
drmark
11 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
11 hours, 11 minutes ago -
Office gets current release
by
Susan Bradley
15 hours, 54 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
1 day, 8 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
16 hours, 58 minutes ago -
Stop the OneDrive defaults
by
CWBillow
1 day, 9 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
1 day, 19 hours ago -
X Suspends Encrypted DMs
by
Alex5723
1 day, 21 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
1 day, 21 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
1 day, 22 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
1 day, 22 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
1 day, 11 hours ago -
Enabling Secureboot
by
ITguy
1 day, 18 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
2 days, 6 hours ago -
No more rounded corners??
by
CWBillow
2 days, 2 hours ago -
Android 15 and IPV6
by
Win7and10
1 day, 16 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
2 days, 19 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
2 days, 21 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
2 days, 16 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
3 days, 5 hours ago -
May preview updates
by
Susan Bradley
2 days, 16 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
2 days, 8 hours ago -
Just got this pop-up page while browsing
by
Alex5723
2 days, 21 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
2 days, 18 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
1 day, 20 hours ago -
At last – installation of 24H2
by
Botswana12
3 days, 20 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
18 hours, 27 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
4 days, 8 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
2 days, 7 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
4 days, 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.