VBA editing PARTNUMBER in Content Center

VBA editing PARTNUMBER in Content Center

capparottoQQZAF
Enthusiast Enthusiast
188 Views
1 Reply
Message 1 of 2

VBA editing PARTNUMBER in Content Center

capparottoQQZAF
Enthusiast
Enthusiast

Hi experts,

I'm trying to change a PARTNUMBER in my CC library in VBA,

See the code below:

-----------------------------------------

Dim index As Double

Dim PARTNUMBER As String
index = 0

For w = 1 To Family.TableRows.Count
PARTNUMBER = "New" + CStr(index)

MsgBox (Family.TableRows(w).Item(2).Value)
Family.TableRows.Item(w).Item(2).Value = PARTNUMBER
MsgBox (Family.TableRows(w).Item(2).Value)
index = index + 1

Next

----------------------------------------

The messages box from VBA are correct.

First message : Old1

Second message: New1

but when I open the Contet Center I find again The PARTNUMBER= Old1

 

Could you help me?

Thanks

 

 

0 Likes
Accepted solutions (1)
189 Views
1 Reply
Reply (1)
Message 2 of 2

capparottoQQZAF
Enthusiast
Enthusiast
Accepted solution

I forget Family.Save

Now all is working

0 Likes