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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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: 20
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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