Help on using VB Editor for MS Excel Office 365 version 1902

louiepaulobaron

New Member
Joined
Aug 29, 2019
Messages
2
Good day to all,

This is my first post in this forum...:) I am a novice Excel user and I am trying to learn the ropes in becoming a good Excel VB programmer someday.

My question is, it seems that my Visual Basic for Applications has changed. I am trying to record a macro and the the interface looks like this.

BFK4FCC.png
[/IMG]

As you can see, whenever I try to press F8, it returns an error :( I am just familiar with the old interface. Any help / guidance would be appreciated.

Thanks,

Pao
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Vba hasn't changed, the code is wrong.

There are a small number of actions that don't work when you record them then try to run the macro afterwards, this could be one of them.

edit:-

The Range.Datafields property suggests pivottables, but without knowing more of what you were doing when recording the code, there is not much advice we can give.
 
Last edited:
Upvote 0
Try saving the sheet as an .xlsm file first & then record the macro.
 
Upvote 0
Does that make a difference then, Fluff?

I've not ever encountered an issue running code on an unsaved workbook.

The only time I can remember having a similar problem was something obscure like recording a Ctrl f search to match formats. Whatever it was wouldn't work regardless of what I did.
 
Upvote 0
I don't think it should make any difference, but I have seen quite a few posts with recorded code like the OP has shown, so just thought it was worth a try.

@louiepaulobaron
Something else to check, do you have any add-ins installed?
 
Last edited:
Upvote 0
Think I might be using the macro recoreder with a few pivottables over the weekend to see what comes up. The lines, "Bold. = ???" look wrong in vba terms :eeek:
 
Upvote 0
Yeah, those lines definitely don't look right.

By the way, welcome back :)
It's nice to see you on here again.
 
Upvote 0
Thank you both for replying to my inquiry. I don't have any add-ins installed. I will also try saving the file first in .xlsm format. By default, my files are saved as .xlsx

pck45vr.png
[/IMG]
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,193
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top