-
WSjpzinn
AskWoody LoungerThanks HTH. I’ll definitely give that a try tomorrow. One question though is that each time I run this, it is going to be a different file name where I want to paste stuff. The one I copy from will always be the same. Is there a way for me to get the name of the workbook where I am going to paste stuff via the VBA? That will always be the file that is open and from where I run the macro. I guess I’m looking for something like – ‘Set wkbDest = the current file that is open’ in place of your line of code that says, ‘ Set wkbDest = Application.Workbooks.Open(Filename:=”D:PATHFILENAME.EXT’
I think that might be my last hurdle unless it doesn’t copy formulas but only copies the values…I know I can’t use xlPasteValues when I need to use xlPasteFormulas. -
WSjpzinn
AskWoody LoungerWow, you guys took my original question to a completely different level. For my purposes, the macro in Personal Macros is a good solution. However, I have run into another snag to which you will probably know the solution.
Sometimes when I try to copy data from one file to the new one, I want to use PasteSpecial for formulas or column widths, etc. The problem is that I always get a run time error 1004 and a message saying the PasteSpecial method of the range object failed (or something to that effect). From what I’ve read, it may be because after I copy the material, instead of activating the file where I’m going to paste it, I close the one from which I’m copying (therefore going back to the place I’m going to paste it). Is that the problem? If so, do I need to just leave the file open and refer to the two files by their names?In psuedo code –
originalFile – copy range (A1:BU3)
close originalFile
Select A1:BU3 and PasteSpecialalways generates an error
-
WSjpzinn
AskWoody LoungerOK, thanks again. That should be easy enough.
-
WSjpzinn
AskWoody LoungerI guess I need a little more help. I have a xlsm file open and recorded a macro in it just to get my personal.xlsm file started but when I go to the path you suggested, I see a lot of other files there that have macros in them but I don’t see one there named personal or XLSTART. Do I need to create that file before trying to record a macro in it? When I go to record a macro, I choose to Store in Personal Macro Workbook. What am I missing?
-
WSjpzinn
AskWoody LoungerCool. So I can open the worksheet I download and run the macro right from there because it will be able to see the macro in that location? That will do the trick. Thanks so much…
-
WSjpzinn
AskWoody LoungerAugust 1, 2016 at 9:13 am in reply to: Dropdown list kind of like a ‘select’ dropdown in HTML #1572918Thanks so much. I figured out what I was doing wrong on the Mac and it now works as I expected. I’m using two columns and the first has a validation list on it so I choose the category with that dropdown and then there is a vlookup function in the second column that gets the ID based on whatever was chosen in the first column.
-
WSjpzinn
AskWoody LoungerJuly 30, 2016 at 10:13 pm in reply to: Dropdown list kind of like a ‘select’ dropdown in HTML #1572836Zeddy, It works on my PC at home but it isn’t really what I was looking for. I got it to work the way I want by using two columns but I was hoping to do it in one. Unfortunately, it works fine on a PC but I can’t get it to work on the Mac at work. I don’t know if there is a work-around or not. I’ve attached my solution so you can see what I’m after. If you click the arrow in column N, then choose a category, the ID will pop into column O. I wanted the ID to replace the category in N because I don’t need the category title, just the ID but I can make it work like this with two columns if I have to…
-
WSjpzinn
AskWoody LoungerJuly 29, 2016 at 11:17 am in reply to: Dropdown list kind of like a ‘select’ dropdown in HTML #1572290Thanks Zeddy, I’m at work where they have me working on a Mac and some of your features are not supported on a Mac so I’ll have to try it again when I get home this evening. Thanks. I’ll post here how it goes.
-
WSjpzinn
AskWoody LoungerMaud, the Amazon site is on sellercentral but it belongs to a business owner and is his inventory with his login information. What I have now works really well and saves me hours of time. I would be interested in knowing how to extract data right from a web page though…
-
WSjpzinn
AskWoody LoungerI did delete the boxes and there were also some checkboxes and comboboxes on the worksheet so I just deleted all the objects. I didn’t need an if TypeOf section since I deleted them all. Thanks though.
-
WSjpzinn
AskWoody LoungerI will give that a look. Thanks for your suggestion.
-
WSjpzinn
AskWoody LoungerYes, that is rather strange. Your file worked fine for me too. I only changed a little bit of your code as you can see. Perhaps I had a typo at first. Bottom line, it works now and saves me hours of time. Thanks for your help. J. P. Zinn
-
WSjpzinn
AskWoody LoungerI could just do an INSERT statement with the fields I need from there. The trouble is, there are several of those web pages for each age group and each region (Georgia (in my case), Southern, National). If I could automate the gathering of the data and pasting it into Excel, I could write a macro from there to create my INSERT statements. I’ll keep thinking about this. It isn’t something I have to do right now, just a long term project for my own sense of accomplishment. Thanks for your ideas.
-
WSjpzinn
AskWoody LoungerI finally got it to work. My code is very similar to the suggestion from Zeddy but there are some differences. Nonetheless, thanks to all who contributed. Apparently there are two types of textboxes that can be in Excel – one from the Drawing toolbar, and one from the control toolbox toolbar (these happened to be the latter). My solution is below:
Dim OLEObj As OLEObject ‘from the control toolbox toolbar
Dim DestCell As Range
Dim wks As Worksheet
Set wks = ActiveSheet
With wks
For Each OLEObj In .OLEObjects
If TypeOf OLEObj.Object Is msforms.TextBox Then
Set DestCell = OLEObj.TopLeftCell.Offset(-1, 0)
DestCell.Value = OLEObj.Object.Value
End If
Next OLEObj
End With -
WSjpzinn
AskWoody LoungerThat looks great but when I run it, I get a message saying, “Unable to get the TopLeftCell property of the OLEObject class”. I wonder if the textbox pasted from a web page is an OLEObject. When I look at the properties of the textbox from the developer tab in design mode, it says “HTMLText1 HTMLText” at the top in the combobox that contains the list of objects on the sheet.
I had not tried to paste the web information into Notepad+ but have since tried that and it does not include either the textbox or the value in it when I paste it there.
![]() |
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
-
Are manuals extinct?
by
Susan Bradley
52 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
2 hours, 41 minutes ago -
Network Issue
by
Casey H
9 hours, 13 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
14 hours, 41 minutes ago -
May 2025 Office non-Security updates
by
PKCano
15 hours, 7 minutes ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
17 hours, 2 minutes ago -
pages print on restart (Win 11 23H2)
by
cyraxote
16 hours, 18 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
19 hours, 14 minutes ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
19 hours, 16 minutes ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
1 day, 2 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
10 hours, 59 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
1 day, 13 hours ago -
How much I spent on the Mac mini
by
Will Fastie
13 hours, 23 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
8 hours, 34 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
1 day, 19 hours ago -
Setting up Windows 11
by
Susan Bradley
14 hours, 53 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
1 day, 15 hours ago -
Powershell version?
by
CWBillow
1 day, 16 hours ago -
SendTom Toys
by
CWBillow
3 hours, 2 minutes ago -
Add shortcut to taskbar?
by
CWBillow
1 day, 20 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
2 days, 12 hours ago -
How can I install Skype on Windows 7?
by
Help
2 days, 11 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
1 day, 18 hours ago -
We live in a simulation
by
Alex5723
3 days, 2 hours ago -
Netplwiz not working
by
RetiredGeek
2 days, 13 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
3 days, 15 hours ago -
Microsoft is killing Authenticator
by
Alex5723
16 hours, 53 minutes ago -
Downloads folder location
by
CWBillow
3 days, 21 hours ago -
Remove a User from Login screen
by
CWBillow
2 days, 17 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
3 days, 12 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.