Hi,
sorry me again.
One other thing I can't find in the manual is how to write a date into a cell or reading it for that matter.
I've managed the writing and reading of values and text into and out of cells.
writing a date into a cell
writing a date into a cell
Regards
Princy557
Princy557
-
- SoftMaker Team
- Posts: 3
- Joined: Mon Dec 30, 2019 4:01 pm
Re: writing a date into a cell
An example of writing current date to A1 cell and reading the A1 cell as date:
Dim pm as Object
Set pm = CreateObject("PlanMaker.Application")
pm.Application.Visible = True
pm.Workbooks.Add
pm.ActiveSheet.Range("A1:A1").Item(1, 1).Value = Date
dateFromCell = pm.ActiveSheet.Range("A1:A1").Item(1, 1).Value
MsgBox "dateFromCell is " & dateFromCell
Set pm = Nothing
Dim pm as Object
Set pm = CreateObject("PlanMaker.Application")
pm.Application.Visible = True
pm.Workbooks.Add
pm.ActiveSheet.Range("A1:A1").Item(1, 1).Value = Date
dateFromCell = pm.ActiveSheet.Range("A1:A1").Item(1, 1).Value
MsgBox "dateFromCell is " & dateFromCell
Set pm = Nothing
Re: writing a date into a cell
Thanks Valeri
I will have a go at this a little later today,
Regards Princy557
I will have a go at this a little later today,
Regards Princy557
Regards
Princy557
Princy557