Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on 

Record Microsoft Excel Macro

I'm trying to record a macro to simplify some data import steps.

I started Record Macro then did all the other stuff. The attached Word doc has the steps, I'm trying to cover steps 3 through 7 with a macro,

I do the steps, it returns the data to the spreadsheet, then gives the attached Macro Error.jpg

If I then go to the macro and say Run (to do it over), it gives the attached Compile Error.

What's wrong?

How do I fix it?
Marco-Error.jpg
Synch-Instructions.docx
Marco-compile-Error.jpg
Microsoft ExcelVBA

Avatar of undefined
Last Comment
Joe Howard
ASKER CERTIFIED SOLUTION
Avatar of Joe Howard
Joe Howard
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Richard Korts

ASKER

To MacroShadow

This is all generated by MS Query extracting the data from Quick Books; I cannot control that.
Avatar of Joe Howard
Joe Howard
Flag of United States of America image

No problem, just alter the code. Reducing the comma and line continuations. If you upload the code I'll show you exactly what to do.
Avatar of regmigrant
regmigrant
Flag of United Kingdom of Great Britain and Northern Ireland image

Richard - once you've created the query and followed MacroShadow's advice on getting it going you can save it so you won't hit the same problem every time, the first few steps of the notes will be replaced by the recorded query
Avatar of Richard Korts
Richard Korts
Flag of United States of America image

ASKER

Macroshadow,

I have not abandoned  this post, I have not had time to work on this lately because of other pressing isues.

I will show you the code.

Richard
Avatar of Tracy
Tracy
Flag of United States of America image

I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
Avatar of Joe Howard
Joe Howard
Flag of United States of America image

Comment #a41489774 #a41489774 is the answer.
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo