-
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. 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
-
IPV6 Issue Win10 22H2 August Update
by
Win7and10
8 minutes ago -
Windows 11 Insider Preview build 23550 released to DEV
by
joep517
20 minutes ago -
Windows 11 Build 22621.2361 (22H2) released to Release Preview
by
joep517
21 minutes ago -
Lately I’ve been getting qr code spam attacks
by
Susan Bradley
3 hours, 55 minutes ago -
ghacks Wants Edge – FF Browser Update to View – hack/redirect
by
CraigS26
1 hour, 6 minutes ago -
iOS 17 : If your new iPhone gets stuck on the Apple logo when you transfer…
by
Alex5723
11 hours, 39 minutes ago -
Apple zero days out – September 2023
by
Susan Bradley
6 hours, 26 minutes ago -
No shortcuts to files on Taskbar in Win11
by
KingGeorgeN
3 hours, 17 minutes ago -
“New” Google Sites vs Network Solutions: domain resolution
by
Towson_Steve
12 hours, 46 minutes ago -
Topic: Privacy Report on Modern Cars
by
oldfry
16 hours, 27 minutes ago -
Microsoft’s massive Windows 11 update, featuring Copilot AI, begins rolling out
by
Alex5723
13 hours, 11 minutes ago -
MailStore Home updates
by
Alex5723
1 day, 13 hours ago -
T-Mobile users say they see other people’s account information
by
Alex5723
2 days ago -
Retirement of Exchange Web Services in Exchange Online
by
Alex5723
2 days, 13 hours ago -
What Remote Desktop credentials do I use to access a MS Account computer
by
JP
1 day, 2 hours ago -
Office 2003 Compatibility with One Drive in Windows 11
by
langsjw
2 days, 23 hours ago -
Has KB5030219 been pulled for Windows 11 Pro for Workstations?
by
jharri46
2 hours, 43 minutes ago -
By default encryption on Apple
by
Susan Bradley
2 days, 17 hours ago -
KB5029331 Macrium/Reflect
by
fpefpe
2 days, 18 hours ago -
Windows 10 Build 19045.3513 (22H2) to Release Preview Channel
by
joep517
3 days, 5 hours ago -
Microsoft worker accidentally exposes 38TB of sensitive data in GitHub blunder
by
Nibbled To Death By Ducks
2 days, 15 hours ago -
Change CPU/Mainboard without reinstallation of OS and Apps – Win10
by
schmersa
2 days, 20 hours ago -
Mouse slows to crawl if Edge in focus
by
bryash
4 days, 1 hour ago -
Windows and Surface chief Panos Panay is leaving Microsoft
by
Alex5723
3 days, 14 hours ago -
Essential Office Portable
by
Microfix
4 days, 3 hours ago -
Essential Office: Disable Spell Check
by
Bob Blum
4 days, 2 hours ago -
Apple 2030
by
Will Fastie
2 days, 1 hour ago -
Wi-Fi 7? Why not!
by
B. Livingston
12 hours, 44 minutes ago -
Second city — the AI view from Washington
by
Max Stul Oppenheimer
4 days, 11 hours ago -
Zeroing in on zero days
by
Susan Bradley
2 hours, 24 minutes 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-2023 by AskWoody Tech LLC. All Rights Reserved.