I have tried to get an excel forum to help here but they got shy when the vba code was in Access and not in the excel worksheet.
with this code below I am defining a cell in excel
Then with this i go back to it to enter things later on
This works fine from my computer but on others it does not goto the named cell.
The problem that I can see is after the "add Name" has run there is a difference in my excel sheet and the one on other computer. The difference is this
Mine the "refers to:" from insert>name>define
On other computers it looks like this
Which does not work.
So I am guessing there is something wrong with this
What do people think?
with this code below I am defining a cell in excel
Code:
objShtdata.Names.Add Name:="" & strcellname & "", RefersToR1C1:="='CP Tables'!R" & iRowc & "C1"
Code:
objXL.Goto objShtdata.Range("" & strcellname & "").Select
The problem that I can see is after the "add Name" has run there is a difference in my excel sheet and the one on other computer. The difference is this
Mine the "refers to:" from insert>name>define
Code:
='CP Tables'!$A$1
Code:
='CP Tables'!R1C1
So I am guessing there is something wrong with this
Code:
objShtdata.Names.Add Name:="" & strcellname & "", RefersToR1C1:="='CP Tables'!R" & iRowc & "C1"