-
WSrory
AskWoody LoungerThe first part puts up a message but does not exit the routine, so the duplicate check is then done again anyway. It also monitors columns A:G even though many of them are irrelevant to the duplicate check.
I think it would be useful to have – in words, not code – an explanation of exactly what should happen.
-
WSrory
AskWoody LoungerHere’s a simple example, based on your workbook layout that colours each bar to the same as each cell’s fill colour:
Code:Dim dataRange As Range Dim n As Long Set dataRange = Range("A2:A5") For n = 1 To dataRange.Cells.Count ActiveSheet.ChartObjects(1).Chart.SeriesCollection(1).Points(n).Format.Fill.ForeColor.RGB = _ dataRange.Cells(n).Interior.Color Next n
-
WSrory
AskWoody LoungerIt looks to me as though the first two sections are essentially doing the same thing – i.e. checking for duplicates – so there isn’t much point in doing it twice.
-
WSrory
AskWoody LoungerIf you wish for each sales person to have a different color then the graph needs to be set up where each sales person is a series.
You can have different colours for individual points in a bar chart, so you don’t have to use separate series.
-
WSrory
AskWoody LoungerI must be missing something here as I don’t actually see the problem. If you simply change the formatting rules that currently make the cell green so that they don’t apply a fill but change the font instead, you don’t have to worry about the cell fill.
-
WSrory
AskWoody LoungerWhat data source are you extracting from?
-
WSrory
AskWoody LoungerCheck the location specified in the Save section of Options. It appears to be invalid.
-
WSrory
AskWoody LoungerYou need a couple of additional coercions. First you need N() – or something equivalent – to force an array of values to be returned. Second you need to coerce the True/False to 1/0. So something like this should work:
=SUM(–(0N(INDIRECT(“A”&(31+25*(ROW(1:15)-1))))))
-
WSrory
AskWoody LoungerIf the cells are either blank or have a number, using COUNT would be simpler (unless they can contain 0 and you don’t want to count those).
Otherwise, you could use OFFSET:
=SUMPRODUCT(–(0N(OFFSET(A30,25*(ROW(1:15)-1)+1,0))))
-
WSrory
AskWoody LoungerSame problem. An ADODB.Field doesn’t have a Size property. You need to declare it as DAO.Field
-
WSrory
AskWoody LoungerJanuary 30, 2017 at 8:13 am in reply to: Find First Formula In a Range that Evaluates to a Number #1590065If you add an additional INDEX to Maudibe’s approach, this doesn’t require array-entry:
=INDEX(B3:B7,MATCH(1,INDEX(N(B3:B7+0>3),),0))
-
WSrory
AskWoody LoungerI’d say your problem is that you haven’t specified the Recordset type and your ADO reference precedes your DAO one. An ADO recordset doesn’t have an Edit method. Declare your rst variable as DAO.Recordset
-
WSrory
AskWoody LoungerYou could perhaps use this version of your original:
Code:Sub ExportCSVFINAL() Dim wbkExport As Workbook Dim shtToExport As Worksheet Worksheets("TextFile").Activate fname = Cells(1, 15).Value Set shtToExport = ThisWorkbook.Worksheets("MarrReformatted") 'Sheet to export as CSV Set wbkExport = Application.Workbooks.Add shtToExport.Copy Before:=wbkExport.Worksheets(wbkExport.Worksheets.Count) 'check if file exists If Dir(fname) vbNullString Then ' prompt to overwrite If MsgBox(Prompt:="File already exists. Do you want to overwrite?", _ Buttons:=vbYesNo + vbQuestion, Title:="Overwrite file?") = vbNo Then ' exit if no Exit Sub Else ' delete the file if yes Kill fname End If End If wbkExport.SaveAs Filename:=fname, FileFormat:=xlCSV wbkExport.Close SaveChanges:=True End Sub
-
WSrory
AskWoody LoungerJanuary 16, 2017 at 7:22 am in reply to: EXCEL.EXE*32 remains running after closing Excel 2013 every other time #1588969I would guess it’s some code that is running automatically, either in an add-in or in your personal macro workbook. If you hold Ctrl down while opening Excel and answer Yes to open it in safe mode, then close it down, do you still see the process left running?
-
WSrory
AskWoody LoungerIf you want to add macro buttons to a toolbar, you can either add them to the Ribbon or to the Quick Access Toolbar (QAT) that sits either just above or just below the ribbon. You can customise both through the Excel Options dialog (File – Options)
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Image for Windows TBwinRE image not enough space on target location
by
bobolink
2 hours, 20 minutes ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
3 hours, 4 minutes ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
1 hour, 57 minutes ago -
Multiple Partitions?
by
CWBillow
11 hours, 17 minutes ago -
World Passkey Day 2025
by
Alex5723
10 hours, 40 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
1 day, 1 hour ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
13 hours, 31 minutes ago -
Cached credentials is not a new bug
by
Susan Bradley
1 day, 6 hours ago -
Win11 24H4 Slow!
by
Bob Bible
1 day, 6 hours ago -
Microsoft hiking XBox prices starting today due to Trump’s tariffs
by
Alex5723
1 day, 3 hours ago -
Asus adds “movement sensor” to their Graphics cards
by
n0ads
1 day, 8 hours ago -
‘Minority Report’ coming to NYC
by
Alex5723
1 day, 5 hours ago -
Apple notifies new victims of spyware attacks across the world
by
Alex5723
1 day, 17 hours ago -
Tracking content block list GONE in Firefox 138
by
Bob99
1 day, 16 hours ago -
How do I migrate Password Managers
by
Rush2112
1 day ago -
Orb : how fast is my Internet connection
by
Alex5723
1 day, 2 hours ago -
Solid color background slows Windows 7 login
by
Alex5723
2 days, 5 hours ago -
Windows 11, version 24H2 might not download via Windows Server Updates Services
by
Alex5723
2 days, 3 hours ago -
Security fixes for Firefox
by
Susan Bradley
1 day, 4 hours ago -
Notice on termination of services of LG Mobile Phone Software Updates
by
Alex5723
2 days, 15 hours ago -
Update your Apple Devices Wormable Zero-Click Remote Code Execution in AirPlay..
by
Alex5723
3 days, 1 hour ago -
Amazon denies it had plans to be clear about consumer tariff costs
by
Alex5723
2 days, 15 hours ago -
Return of the brain dead FF sidebar
by
EricB
2 days, 3 hours ago -
Windows Settings Managed by your Organization
by
WSDavidO61
1 day, 6 hours ago -
Securing Laptop for Trustee Administrattor
by
PeachesP
8 hours, 11 minutes ago -
The local account tax
by
Susan Bradley
2 days, 4 hours ago -
Recall is back with KB5055627(OS Build 26100.3915) Preview
by
Alex5723
3 days, 14 hours ago -
Digital TV Antenna Recommendation
by
Win7and10
3 days, 6 hours ago -
Server 2019 Domain Controllers broken by updates
by
MP Support
4 days, 1 hour ago -
Google won’t remove 3rd party cookies in Chrome as promised
by
Alex5723
4 days, 3 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 | 31 |
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.