-
• #1827
Or just use Alt + F11.
-
• #1828
Excel for 365.
Is that the desktop or browser version? -
• #1829
That will be desktop. Browser version doesn't have macros, it's got that new scripting language under Automate.
-
• #1830
The developer menu isn't in my ribbon
-
• #1831
Show the Developer tab
Yes, I know how to do it. I was just saying that, if you've already got VBA in your file, you don't need the developer tab to view the code. If I were starting a new project from scratch then, yes, I might add it to the ribbon.
And it's desktop.
-
• #1832
👍
-
• #1833
This sounds like something I see at work if I download an xlsm file. To get round it, I right click on the file and go to 'properties'. In the 'attributes' section on the general tab, there's a 'security' section and a tick box on the right that's labelled something like 'unblock'. I tick the box and click 'ok'. Then I can run the macros.
To view the macros in the file after this, open the file, go to 'view' and 'macros'.
This plus quickly hitting alt+f11 seems to have worked.
- right click
- properties
- general tab
- security: Unblock
- apply
- right click
-
• #1834
You may have to post your code here.
-
• #1835
Ha!
Or were you referring to my edited comment about why module 1 and 2 are identical because I didn't double click and actually open them?
-
• #1836
Ah, I see.
Yeah, I think your original comment said something like "why this no work?". And I've yet to develop telepathic excel skills. It's not planned for roll out to our organisation until 2025. -
• #1837
For reasons I need to export only certain columns from a sheet and save that down as a .CSV file. This needs to be done via a macro button. Yes indeed.
Is this possible?
-
• #1838
Obvious would be to open a new workbook, copy the relevant columns into it and then save as CSV. Should be straightforward but there's always that extra bit of effort trying to fix it for some annoying edge case that you hadn't anticipated.
-
• #1839
And if there are dates in it, just quit and go home.
-
• #1840
Power query. don't open a csv in excel.
-
• #1841
There are dates. In fact it's all about the dates.
Can power query increment all the dates in a csv by a given amount?
-
• #1842
Yeah, import, add new column looking at original column and apply thing to it.
-
• #1843
Another one. In A1 I have 12345, I want cell B1 to have the formula =12355+C1
C1 can be whatever number.In other words how do I get the value in A1 into the formula, not just a reference to cell A1.
I've tried various combinations of text, value, &, encasing it in "" etc
-
• #1844
="="&valuetotext(A1)&C1 kind of works well enough for my needs
-
• #1845
I say my needs, none of this was my idea
-
• #1846
What are you trying to achieve here?
-
• #1847
Replace dates in a cell with their numeric value+a value from another cell.
-
• #1848
You don;t need valuetotext() here - this will convert it to a string already
=""&A1&"+C1 "
-
• #1849
Rather, replace dates in a cell with a formula like =42736+C1
-
• #1850
Yes, I've probably overengineered it now. But I'm getting the right result so all good
The developer menu isn't in my ribbon, but I can get into the VBA window through the view>macros>edit options. Using Excel for Microsoft 365.