ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   vfp - excel programming (https://www.excelbanter.com/excel-programming/298944-vfp-excel-programming.html)

No Name

vfp - excel programming
 
Hi,

I try to crate excel validation method in VFP but I can't
do it. Anyone who can convert the following VB syntax to
VFP syntax

With Range("e5").validation
.Add Type:=xlValidateWholeNumber,
AlterStyle:=xlValidAlertStop,
Operator:=xlBetween,
Formula1:="5",
Formula2:="10"
.InputTitle = "Integers"
.ErrorTitle = "Integers"
.InputMessage = "Enter an integer from five to ten"
.ErrorMessage = "You must enter a number from 1 to 10"
End With

Thank you


No Name

vfp - excel programming
 
But how to I type the whole commands in Visual Foxpro
syntax ? The example is Visual Basic syntax.

-----Original Message-----
Try inserting .delete prior to the .add

With Range("e5").validation
.Delete
.Add Type:=xlValidateWholeNumber,

----- wrote: ---

--

Hi,

I try to crate excel validation method in VFP but I

can't
do it. Anyone who can convert the following VB

syntax to
VFP syntax

With Range("e5").validation
.Add Type:=xlValidateWholeNumber,
AlterStyle:=xlValidAlertStop,
Operator:=xlBetween,
Formula1:="5",
Formula2:="10"
.InputTitle = "Integers"
.ErrorTitle = "Integers"
.InputMessage = "Enter an integer from five to

ten"
.ErrorMessage = "You must enter a number from 1

to 10"
End With

Thank you


.


Chip Pearson

vfp - excel programming
 
You might have better luck asking the question in a FoxPro
newsgroup.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

wrote in message
...
But how to I type the whole commands in Visual Foxpro
syntax ? The example is Visual Basic syntax.

-----Original Message-----
Try inserting .delete prior to the .add

With Range("e5").validation
.Delete
.Add Type:=xlValidateWholeNumber,

----- wrote: ---

--

Hi,

I try to crate excel validation method in VFP but I

can't
do it. Anyone who can convert the following VB

syntax to
VFP syntax

With Range("e5").validation
.Add Type:=xlValidateWholeNumber,
AlterStyle:=xlValidAlertStop,
Operator:=xlBetween,
Formula1:="5",
Formula2:="10"
.InputTitle = "Integers"
.ErrorTitle = "Integers"
.InputMessage = "Enter an integer from five to

ten"
.ErrorMessage = "You must enter a number from 1

to 10"
End With

Thank you


.





All times are GMT +1. The time now is 05:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com