-
WSgeneword
AskWoody LoungerHans, Thanks. I’ll give it a try.
-
WSgeneword
AskWoody LoungerHans, You are correct. It’s purpose is to link back to the Employee table and the “alias” was my way of making a copy to which to refer back. I don’t know how to use the same table twice, so this was my solution. It’s just a copy of the Employee table.
-
WSgeneword
AskWoody LoungerHans, I thought I’d send you the structure of the database that I fnally got to work with your help. Maybe someone else will benefit from my lesson and as a way of saying “thank you”.
-
WSgeneword
AskWoody LoungerHans,
Thanks for this. BTW, on a completely other note….I was tasked yesterday with creating a module that finds a cell and if the cell below it is the same (a duplicate), it should delete the row below it. I didn’t think I could do it, but I created the module and it worked. I am so excited and it’s all because of the great advice and help I’ve received here at the lounge. THANK YOU ALL
-
WSgeneword
AskWoody LoungerThank you Rudi. I’ve passed this on to the user.
-
WSgeneword
AskWoody LoungerHans,
Both.
-
WSgeneword
AskWoody LoungerSteve, Hats off to you, my man.
This worked like a charm. It looks quite complicated and I will try to understand it.
Thank you all for your patience and TGIF, as well.
Pass along the thanks to Hans also. Being a trainer and in technology, I know it’s frustrating when a user can’t communicate properly.
-
WSgeneword
AskWoody LoungerSteve,
I attached a file that depicts a “before” and “after” to help demonstrate what I’m trying to accomplish. Sorry for the confusion. I’m working on deciphering (for my own learning) and putting your code into my personal.xls file to run.
-
WSgeneword
AskWoody LoungerHans and Steve, There is a structure: Market and Advertiser are in the same column, with advertiser under market. I want to create 2 new columns: one for the advertiser (moving it from the column on the left and bringing it up one row) and another column for the date. Now the money and salesperson need to come up to put all the fields in the same row. After that, I need to delete the blank rows.
I appreciate your trying to sort out my thinking process and willingness to help me. I’m sorry that I’m not being as clear as I need to be. Any guidance would be appreciated.
-
WSgeneword
AskWoody LoungerHans, Sorry. It’s late and I must be having several brain farts. Here’s the file.
-
WSgeneword
AskWoody LoungerHans,
Thanks for taking the time. As you can see from my post above, I show the code of the loop. Attached is a sample of the spreadsheet. Basically, the advertiser needs to be on the same row as the Market, copy the date down, and then put the money and salesperson on the same line as the other data for the record.
-
WSgeneword
AskWoody LoungerHans,
After reviewing my methodolgy, I found that I began in the wrong place. The loop is as follows:
Range(“A4”).Select
Selection.Cut Destination:=Range(“B3”)
Rows(“4:5”).Select
Selection.Delete Shift:=xlUp
Range(“A5”).Select
Selection.Cut Destination:=Range(“B4”)
Rows(“5:6”).Select
Selection.Delete Shift:=xlUp
Range(“A6”).Select
Selection.Cut Destination:=Range(“B5”)
Range(“B5”).SelectBasically what I am doing is moving contents of a cell to the right (-1) and above (-1) the current cell and then deleting 2 rows where data was, but is now blank.
-
WSgeneword
AskWoody LoungerHans,
Yeah. Next i should have been on the next line. When I got it in the email, Next i was on the same line right after the last line that reads: Rows…..Delete Shift:=xlUp
Anyway, I put it on the next line and now it runs, however, I’m losing all of the data.
Could you explain the “For i ” instruction and the Rows (i & “:” &(i+1).Delete Shift:=xlUp
If this doesn’t work, I’ll send you the whole macro and small spreadsheet as a last resort.
-
WSgeneword
AskWoody LoungerHans,
The last line appears in red and I get a message when I run it that it has a syntax error.
-
WSgeneword
AskWoody LoungerQuite right, Hans. I always forget that Zed is a number
.
As for D2:E2, you can ignore. This is part of another (one-time) sequence. The loop begins when the pattern develops.
Thank you.
![]() |
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
-
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 hour, 44 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 hours ago -
The story of Windows Longhorn
by
Cybertooth
3 hours, 30 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
4 hours, 59 minutes ago -
Are manuals extinct?
by
Susan Bradley
5 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
14 hours, 7 minutes ago -
Network Issue
by
Casey H
1 hour, 12 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
1 day, 2 hours ago -
May 2025 Office non-Security updates
by
PKCano
1 day, 2 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
1 day, 4 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
5 hours, 21 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
1 day, 6 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
1 day, 6 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
1 day, 14 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
6 hours, 25 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
2 days, 1 hour ago -
How much I spent on the Mac mini
by
Will Fastie
1 day ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
4 hours, 26 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
2 days, 7 hours ago -
Setting up Windows 11
by
Susan Bradley
1 day, 2 hours ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
2 days, 2 hours ago -
Powershell version?
by
CWBillow
2 days, 3 hours ago -
SendTom Toys
by
CWBillow
14 hours, 27 minutes ago -
Add shortcut to taskbar?
by
CWBillow
2 days, 7 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
2 days, 23 hours ago -
How can I install Skype on Windows 7?
by
Help
2 days, 22 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
2 days, 5 hours ago -
We live in a simulation
by
Alex5723
3 days, 14 hours ago -
Netplwiz not working
by
RetiredGeek
3 days ago -
Windows 11 24H2 is broadly available
by
Alex5723
4 days, 2 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.