-
WSaaaofpmch
AskWoody LoungerThanks Legare. This does exactly what I wanted the user to do. One last question, I might be wrong, but for this macro to work the sheet has to be existing. I have a macro that will be inserting this sheet how can I make this part of that macro or call it. Thanks.
-
WSaaaofpmch
AskWoody LoungerSorry for all the confusion guys, but I still don’t know which code to use. Basically, I am attaching the file for reference. I want the person to fill all cells until they reach D7(which is merge all the way to J7). If any text is enter in this cell (d7) I want the worksheet to format the row below and put a 2(subsequent number from above)in A2 and format the same as the row above. I hope this helps to clarify the issue. Thanks.
-
WSaaaofpmch
AskWoody LoungerThanks Hans.
-
WSaaaofpmch
AskWoody LoungerThanks Hans.
-
WSaaaofpmch
AskWoody LoungerThanks Rori, However this comands adds an extra worksheet. It does add the worksheet I want to at the end, but I also get an extra sheet. Here is the VB command. Any ideas where I went wrong?
Sub InsertSheet()
Dim wk As Worksheet
On Error Resume Next
Set wk = worksheets(“allotment”)‘If no error occurred, then worksheet already exists
If Err = 0 Then Exit Sub‘if error exist then go to 0 and exit sub
On Error GoTo 0Set sht = Sheets.Add(After:=Sheets(Sheets.Count))
‘If spreadsheet is built do the following
With worksheets.Add
.Name = “allotment”
.Range(“a6”) = “Date”
End with
End sub -
WSaaaofpmch
AskWoody LoungerThanks that works.
-
WSaaaofpmch
AskWoody LoungerThanks Hans.
-
WSaaaofpmch
AskWoody LoungerThanks Hans for the quick response.
-
WSaaaofpmch
AskWoody LoungerThanks Hans. Do you know if there is a way to get a history for an excel file of a user making changes. For example, I want find out the last person that made changes to a file and date.
-
WSaaaofpmch
AskWoody LoungerThanks Hans for all your help.
-
WSaaaofpmch
AskWoody LoungerWhat about doing a loop? I only want to create this worksheet one time, but I am afraid that the people using the spreadsheet may run the macro by mistake in which case I don’t want them to get an error message. For example if they press the macro. The VB will check to see if the “Allotment” worksheet is present if not then it will create it with all the other information on the macro.
-
WSaaaofpmch
AskWoody LoungerThanks HansV. That work, but now one more question. If I tried to run the macro again, I get an error. What other VB command do I need to include so in case someone runs the macro again it will not give them an error? Thanks.
-
WSaaaofpmch
AskWoody LoungerThanks LegareColeman that works.
-
WSaaaofpmch
AskWoody Loungerwhat happen is that the document was started as a table in a word documents and then it was brought over to excel to calculate some fields. I tried doing the best formatting, but I was just curious. Thanks for the reply though. I kknow if I do a merge, I would lose all the info on a cell.
![]() |
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
-
Thunderbird release notes for 128 esr have disappeared
by
EricB
2 hours ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
5 hours, 10 minutes ago -
Apple releases 18.5
by
Susan Bradley
5 hours, 29 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
6 hours, 36 minutes ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
7 hours, 13 minutes ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
14 hours, 10 minutes ago -
No HP software folders
by
fpefpe
14 hours, 55 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
7 hours, 7 minutes ago -
Stay connected anywhere
by
Peter Deegan
20 hours, 17 minutes ago -
Copilot, under the table
by
Will Fastie
11 hours, 30 minutes ago -
The Windows experience
by
Will Fastie
1 day, 2 hours ago -
A tale of two operating systems
by
Susan Bradley
17 hours, 28 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
1 day, 7 hours ago -
Where’s the cache today?
by
Up2you2
1 day, 23 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 15 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
16 hours, 17 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 23 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 16 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 16 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 18 hours ago -
MS Passkey
by
pmruzicka
1 day, 19 hours ago -
Can’t make Opera my default browser
by
bmeacham
3 days, 1 hour ago -
*Some settings are managed by your organization
by
rlowe44
2 days, 12 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
3 days ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 20 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
4 days, 5 hours ago -
AI slop
by
Susan Bradley
1 day, 23 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
4 days, 6 hours ago -
Two blank icons
by
CR2
1 day, 14 hours ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 16 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.