GET.CELL problem in Macro enabled.xlsm file

Ils

New Member
Joined
Nov 19, 2021
Messages
3
Hi:

Can someone help on the below problem

I need to count each number in green and pink background color, I used the "define name" & "get.cell" yesterday, it worked well. But when I open the file today, all the "defined names" disappeared, I think it's because of the file I saved as "Excel workbook" but not "macro enabled workbook", so I saved another file with "macro enabled workbook", then the problem comes: the get.cell can't return the correct value, always tells 0

I tried both 38 and 63 for the first parameter in get.cell, could someone help to take a look on the sample mini-sheet I uploaded and tell what mistake there is & how to correct it?

Sample mini-sheet:
sample.xlsm
N
16
Sheet1



Thanks a lot
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Ils

New Member
Joined
Nov 19, 2021
Messages
3
There is something wrong with the mini-sheet I uploaded, so I upload an image with the formula

In the image:
column C-E is the cell I want to count color
row 9-31 is the defined name
column G-I is the "getcolor" which always show "0"
 

Attachments

  • sample.png
    sample.png
    142.1 KB · Views: 11

DJunqueira

New Member
Joined
Dec 8, 2018
Messages
7
Office Version
  1. 365
Platform
  1. Windows
GET.CELL is kind of problematic, you need to "wake up" it every time you try to use it. Select the cell and press F2.
 

Ils

New Member
Joined
Nov 19, 2021
Messages
3
GET.CELL is kind of problematic, you need to "wake up" it every time you try to use it. Select the cell and press F2.
I also noticed the need of "wake up" earlier today, thank you but it's not caused by this.
The get.cell works well in "workbook" but doesn't wok in "macro enabled workbook", I don't know why
 

Forum statistics

Threads
1,176,311
Messages
5,902,422
Members
434,975
Latest member
snoski

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
Top