The problem statement, all variables and given/known data Hello! I would be grateful for your help. I've tried many many times to record a mixed reference macro on my mac, and it doesn't record a thing. No problems with recording separate macros with relative or absolute reference. Problems description: I have few sheets with tables of the same format, but the amount of data in colums is different, thus I need a macro that would have both relative and absolute references.
Relevant equations I do every step exactly as they have to be done, following this instruction from 10:44 to 21:48 Let me repeat: when I separately record macros with relative or absolute references, these guys work. The attempt at a solution After following all steps, I check what is being recorded (the code) and it shows this (relative nothing, no steps, no records): Sub Macro25 ' ' Macro25 Macro ' newmacro ' ' Keyboard Shortcut: Option+Cmd+q ' End Sub Thank you! You can record macros, but that just allows very basic things. If you want to do more complex things, you'll have to write the macro yourself (or at least modify existing recorded code).
There are tons of tutorials how to write macros.you see, this video shows truly basic macro, and these steps work in any Excel except for my one on Mac. Shall I do something differently to make sure it works on my one too?
I am using Microsoft Excel for Mac 2011, version 14.2.3, and trying to record some simple macros to consolidate/move data. Under the developer tab, when I hit the record button, it appears that I can record and proceed with my key strokes for the actions I want to perform.
I am not talking about profound issues; I just need to record the same thing shown in the video.
Every year I take an existing Excel Workbook and delete the 2014 worksheets to clean up for 2015. I make a few new sheets for January 4th, 5th and 6th to get it started for 2015 and then save as Trim Log 2015 and done. The Macros work on my PC but they don't work on any other PC. I can't figure out what the problem is.
Also, I have to keep it in Excel 97-2003 format as if I save it as Excel Macro Enabled Workbook for 2013, the Macros still do not work and come up with an error that says 'Dataitems' already exists. Any clue why it would work on mine but not two other PC's?
(one on 2013 and the other 2010)? CatatonicBug wrote: If you don't use the 'Macro-enabled workbook' format, the macros are saved on your local PC, not in the workbook, so any other PC that tries to open it won't have the macros to work from. Saved it as MacroEnabled and now buttons work but it now says THE NAME DATAITEMS ALREADY EXISTS. When I try a new sheet.that is specific to the code in this Macros but don't have a clue (as of yet) how to fix it.
Side note, I have a ton of Excel 97-2003 worksheets with Macros that I save in that format and they still work fine.weird. Michael kaler wrote: It sounds like it is trying to create a named range called DATAITEMS and is failing because it is already there.
Can you SS the exact error message? Have you tried debugging and seeing what line it is happening on?
This 'DATAITEMS' error only happens when I resave an old sheet with a new name.doing this for the 2015 data and preserving the Macros. The code for this sheet hasn't changed in years but here it is: It is the New Sheet Macro that is doing this but included the first two subroutines. VB.net Sub TrimFormat ' Macro to sort colors and add subtotals - AMF ' Insert weight formulae Dim iTblRow As Integer Dim iGSumRow As Integer ' Upper case Job & Coil Number Range ( 'A10' ). Select Range ( Selection, Selection.
End ( xlDown )). Select Call ChangeCase Range ( 'D10' ). Select Range ( Selection, Selection. End ( xlDown )). Select Call ChangeCase ' Insert weight formulae Range ( 'H10' ). Select ActiveCell.
FormulaR1C1 = '=RC-3. IF(RC2='24',3.72,IF(RC2='26',2.82,1.98)). SUM(RC-2:RC-1) / 43' ' 2.82 #/ft for 43' ' ActiveCell.FormulaR1C1 = '=IF(RC2='24',3.72,IF(RC2='26',2.82,1.98)).RC6' ' 24:3.72; 26:2.82; 29:1.98 (GA:#/ft) for 43' wide panels Range ( 'H10' ). Select Selection. NumberFormat = '#,##0.0' ' If Range('H10').End(xlDown).Row sSheetName And Worksheets ( iSheet ). Name 'Data' Then Worksheets ( iSheet ). Delete End If Next iSheet Application.
DisplayAlerts = True ' save under new month name sPath = ' NAS-02 Bradburyxfer Trim Logs ' ActiveWorkbook. SaveAs Filename: = sPath & 'Trim Log - ' & MonthName ( Month ( sSheetName )), FileFormat: = xlExcel7 End If End Sub. Garak0410 wrote: Another note.I took a copy from 2013 (the year) that was in Excel 97-2003 format.did nothing to it but save as Macro Enabled and named it Log 2015. Tried it on my PC, again, Macro Buttons work. Tried it on the PC this sheet is primarily used from, Macro Buttons do not work. So got two weird issues here.
More info again.if I do the same as above but do NOT save it as Macro Enabled and keep it as 97-2003, the Macro Buttons will work but will then not carry over to the new sheet as they always do. My resolution was to become an Excel/VBA Master as most of our stuff is on that but doesn't help me now.LOL.