-
WSJoseluis
AskWoody LoungerThanks Hans. I have one problem with the macro above. If the last line has any info on it before the macro is run, it copies it which not what I had intended to do and the sum formula does not carry inserted cells. I still want the user to have the options of selecting facility type and activities in the inserted row. Any ideas or help. Thanks.
-
WSJoseluis
AskWoody LoungerThanks Hans again. That works.
-
WSJoseluis
AskWoody LoungerThanks Hans.
-
WSJoseluis
AskWoody LoungerThanks Hans.
-
WSJoseluis
AskWoody LoungerI see what you are saying. The only reason I was using two columns was one contain the product number the other the description for that product.
-
WSJoseluis
AskWoody LoungerSince we are in the topic, how come you can’t select more than one columm for the validation. I tried doing it base on the steps you guys gave, but if the validation has one or more columns it gives me an error message. I ended up with doing the concatenate function to have it work. Any ideas?
-
WSJoseluis
AskWoody LoungerThank you both.
-
WSJoseluis
AskWoody LoungerYes I am. I don’t have my password with me, so I ended up creating another account. By the way, I really want to thank you for all your help.
-
WSJoseluis
AskWoody LoungerHello Hans,
I was trying to use the code above to do what aaaofpmch wanted to do, but if there is a gap in the rows where there is an x, the columns do not get hidden. Any ideas as to why? For example, if I select row 2 column a,b,c,d,u, etc. The columns between d and u do not hide and there is a big gap in between them. Any help would be great. Thanks -
WSJoseluis
AskWoody LoungerThanks Hans that worked.
-
WSJoseluis
AskWoody LoungerThanks LegareColeman. I made the mistake of editing a line in the coding and that is why it didn’t work. By the way. The statement below did what I need to. Thanks again.
-
WSJoseluis
AskWoody LoungerYou are correct in your assumptions. The active file is the one that we are in when we do the getopenfilename method. I am sorry to be such a pest, but If the sheet “SCO Positions” is already created, I thought the ‘Delete sheet if already exists will take care of it, but when I run the macro it stops at ActiveSheet.Name = “SCO Positions”. Any ideas? Regarding the sum, all I wanted to do is to sum column F from cell f1 to where the data ends. Thanks for all your help.
-
WSJoseluis
AskWoody LoungerThanks Coleman for the code. Regarding your questions:
1. The positions-Master file for Nov 05-Mary(copy).xls will be use as a base and it will be copy to next month but rename Dec 05. My fear is that since the code referes to a particular window(“position….”) which has the file name, it will give them an error. Am I wrong to assume that?
2. The column I want to sum is F. I will like to put it two rows below the last data entry.Any Feedback would be great.
-
WSJoseluis
AskWoody LoungerThanks Hans it does what I need, but how about if I need to display all the columns for printing. Can we put it in the combobox?
-
WSJoseluis
AskWoody LoungerHans,
One last question. When there is no value in the formula (vlookup) #N/A appears. How can I have it so nothing appears if nothing is selected? 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
-
Firefox 137
by
Charlie
44 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
2 hours, 44 minutes ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
2 hours, 56 minutes ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
2 hours, 59 minutes ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
3 hours, 4 minutes ago -
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
6 hours, 30 minutes ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
12 hours, 32 minutes ago -
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
22 hours, 52 minutes ago -
Office apps read-only for family members
by
b
1 day, 1 hour ago -
Defunct domain for Microsoft account
by
CWBillow
22 hours, 20 minutes ago -
24H2??
by
CWBillow
12 hours, 31 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
6 hours, 46 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
6 hours, 59 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
3 hours, 21 minutes ago -
two pages side by side land scape
by
marc
2 days, 23 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
3 days, 1 hour ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
2 days, 4 hours ago -
Security Essentials or Defender?
by
MalcolmP
2 days, 6 hours ago -
April 2025 updates out
by
Susan Bradley
2 hours, 1 minute ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
2 days ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
1 day, 14 hours ago -
Creating an Index in Word 365
by
CWBillow
2 days, 16 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
1 day, 5 hours ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
3 days, 20 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 days, 23 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
4 days, 1 hour ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 days, 23 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
1 hour, 24 minutes ago -
I installed Windows 11 24H2
by
Will Fastie
1 day, 23 hours ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
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.