-
WSawckie
AskWoody LoungerWell, yes I know that ….. I kind of want to go backwards in the process. I want to copy the cells and then paste the sum.
It may not make sense why I would want to do this, and I’d love to show my spreadsheet, but I can’t because it is sales information.
-
WSawckie
AskWoody LoungerThank you so much for telling me it worked for you. That helped me solve my issue. The problem was that some of the items in column A were in Uppercase & some in lowercase. (I didn’t realize the code would evaluate it literaly) Once I changed all the data to uppercase I reran the code and had no problem.
Thank you so much Hans, for looking at this for me!
-
WSawckie
AskWoody LoungerThank you so much for telling me it worked for you. That helped me solve my issue. The problem was that some of the items in column A were in Uppercase & some in lowercase. (I didn’t realize the code would evaluate it literaly) Once I changed all the data to uppercase I reran the code and had no problem.
Thank you so much Hans, for looking at this for me!
-
WSawckie
AskWoody LoungerThat’s interesting. I wasn’t aware of that. That was the default that was in the options (I didn’t actually change it myself)
I appreciate the info!
-Leslie
-
WSawckie
AskWoody LoungerThank you! Now I know about a new function!
I sure do appreciate it..
-
WSawckie
AskWoody LoungerThe things you learn everyday
I added the On Error Resume Next before the For Line……
Sub TBCO_FormatHCDetailSheets()
Application.StatusBar = “Creating Head Coach Detail”
Sheets(“Smith Pipe”).Select
Dim ws As Worksheet
On Error Resume Next
For Each ws In Worksheets(Array(“Smith Pipe”, “Smith Fcst”, “Cole Pipe”, “Cole Fcst”, “Flock Pipe”, “Flock Fcst”))
ws.Activate
With ActiveSheetEnd With
Next wsEnd Sub
What is happening now is that I have the following worksheets on this batch – Smith Fcst, Smith Pipe, Flock Fcst, Flock Pipe. What happens is that it performs all the code on the Smith Fcst worksheet, but then completely ends the subroutine and moves on to the next subroutine. So it’s not really moving on to the next worksheet.
What do you think is happening?
(I don’t have to worry about the user changing the name of the worksheets, as the worksheets are created automatically right before this sub is performed with no available user intervention – Well I’m sure there probably is a way for user intervention, but believe me – my 2 coworkers who are using this will just yell for me if there is an issue
-
WSawckie
AskWoody LoungerI am posting an example. Usually the Report Sheet has 4 different sections using a variety of either column L or M on the FDD Consolidator tab.
One thing to note, when I tried this with CountA it gave me back 385 (the number of rows I went down)
I cannot use a Pivot Table to accomplish what i need to accomplish. You would have been able to see that If I hadn’t deleted the rest of the report.
-
WSawckie
AskWoody LoungerWell, I’m going to have to practice on this one!
I have:
=COUNT(IF((‘FDD Consolidator’!$W$2:$W$448=$A$3&$A5&S$3)*(‘FDD Consolidator’!$C$2:$C$448=$A$1),’FDD Consolidator’!$C$2:$C$448)) (With Ctrl-Shift-Enter)
And I should have a result of 2 for that cell, but it is returning 0. My only other option is to add columns to my FDD Consolidator sheet, which is what I was trying to avoid.
Thanks for the help and the links. I’m going to have to work on this one to find out what I am doing wrong!
-
WSawckie
AskWoody LoungerFound it!
Didn’t search hard enough on the web before I posted=MID(A2,FIND(” “,A2,1)+1,LEN(A2))
-
WSawckie
AskWoody LoungerFebruary 11, 2003 at 11:37 pm in reply to: Moving specific data from one worksheet to another (Excel 97 – VBA) #652775Legare,
That’s really cool, I like how the sheets are created based upon the name in column A. I was able to find a solution using the Advanced Filter (Except for one of my Macros’s where it is causing Excel to crash… Doesn’t make sense to me. 2 of my module’s work fine with the code, but my third module crashes with it)
Thank you…
-
WSawckie
AskWoody LoungerFebruary 11, 2003 at 7:40 pm in reply to: Moving specific data from one worksheet to another (Excel 97 – VBA) #652663I just had to follow up to say Wow! I just ran my full report, and it used to take 4 minutes to run.
Now it only takes 15 seconds!
You guys are the best! I wouldn’t have been able to even start on this project without all the help you have given me here and in the Excel forum…
-
WSawckie
AskWoody LoungerFebruary 11, 2003 at 7:32 pm in reply to: Moving specific data from one worksheet to another (Excel 97 – VBA) #652658Andrew! I could kiss you
I put the Criteria in the proper worksheets during my first part of my code (Run via a Menu Command – I run one part, check for data accuracy and then run the rest)
In the second portion I put in this sub
Sub FiltertoSheets()
Sheets(“Adams Pipe”).Select
Dim ws As Worksheet
For Each ws In Worksheets(Array(“Adams Pipe”, “Adams Fcst”, “Jones Pipe”, “Jones Fcst”, “Doe Pipe”, “Doe Fcst”))
ws.Activate
With ActiveSheetSheets(“FDD Consolidator”).Columns(“A:AA”).AdvancedFilter Action:= _
xlFilterCopy, CriteriaRange:=Range(“A1:B2”), CopyToRange:=Range(“A4”), _
Unique:=FalseEnd With
Next ws
End SubThank you! Thank you! Thank you! Thank you!
-
WSawckie
AskWoody LoungerFebruary 11, 2003 at 7:02 pm in reply to: Moving specific data from one worksheet to another (Excel 97 – VBA) #652656I think that may just work.. I’ll look into it and let you all know If I succed!
-
WSawckie
AskWoody LoungerFebruary 11, 2003 at 4:33 pm in reply to: Moving specific data from one worksheet to another (Excel 97 – VBA) #652612Thanks for the reply, but I have to do this in VBA.
This portion of my code is a small portion of a larger piece. It works right now, but it’s sloooow. I just figured I was doing it the wrong way, ’cause I’m new at this.
-
WSawckie
AskWoody LoungerFebruary 11, 2003 at 3:11 am in reply to: Moving specific data from one worksheet to another (Excel 97 – VBA) #652494Hi Legare,
Yes the code can sort the worksheet before the copy. There is a header row at the top of the sheet (row 1).
Thanks!
![]() |
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
-
MS Passkey
by
pmruzicka
5 hours, 3 minutes ago -
Can’t make Opera my default browser
by
bmeacham
6 hours, 58 minutes ago -
*Some settings are managed by your organization
by
rlowe44
4 hours, 51 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
5 hours, 52 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
1 day, 1 hour ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 10 hours ago -
AI slop
by
Susan Bradley
40 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 11 hours ago -
Two blank icons
by
CR2
13 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 20 hours ago -
End of 10
by
Alex5723
1 day, 23 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
21 hours, 20 minutes ago -
test post
by
gtd12345
2 days, 5 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 19 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 11 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 9 hours ago -
Upgrading from Win 10
by
WSjcgc50
21 hours, 30 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day, 1 hour ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 days, 1 hour ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 13 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days, 3 hours ago -
Are manuals extinct?
by
Susan Bradley
3 hours, 47 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 12 hours ago -
Network Issue
by
Casey H
2 days, 23 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
4 days ago -
May 2025 Office non-Security updates
by
PKCano
4 days ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
4 days, 2 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
3 days, 3 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
4 days, 5 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
4 days, 5 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.