ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   vba command (https://www.excelbanter.com/excel-programming/395449-vba-command.html)

paul[_17_]

vba command
 

can anyone help me write vba commands for these below

amy help would be grateful

a/ Place in the variable Y the number in the cell A6 of the currently
active worksheet (4 marks)

b/ Place in the cell A7 the text "Hello world"
c/ Place a message box on the screen giving the message contained in
the string variable, Prompt$ and asking for a yes, no or cancel reply

d/ Read the area designated by the string variable Area$ into a one
dimensional array called Input()
e/ Read the 5th column and 3rd row of the currently active spreadsheet
into the array element A(2,4)

f/ Read the value in the cell B7 from worksheet, sheet6 into the
variable, Step


barnabel

vba command
 
I can help answer homework problem b

"paul" wrote:


can anyone help me write vba commands for these below

amy help would be grateful

a/ Place in the variable Y the number in the cell A6 of the currently
active worksheet (4 marks)

b/ Place in the cell A7 the text "Hello world"

Range(Cells(1, 7), Cells(1, 7)) = Chr(72) + Chr(101) + Chr(108) + Chr(108) +
Chr(111) + Chr(32) + Chr(87) + Chr(111) + Chr(114) + Chr(108) + Chr(100)

c/ Place a message box on the screen giving the message contained in
the string variable, Prompt$ and asking for a yes, no or cancel reply

d/ Read the area designated by the string variable Area$ into a one
dimensional array called Input()
e/ Read the 5th column and 3rd row of the currently active spreadsheet
into the array element A(2,4)

f/ Read the value in the cell B7 from worksheet, sheet6 into the
variable, Step



Don Guillett

vba command
 
Homework?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"paul" wrote in message
ups.com...

can anyone help me write vba commands for these below

amy help would be grateful

a/ Place in the variable Y the number in the cell A6 of the currently
active worksheet (4 marks)

b/ Place in the cell A7 the text "Hello world"
c/ Place a message box on the screen giving the message contained in
the string variable, Prompt$ and asking for a yes, no or cancel reply

d/ Read the area designated by the string variable Area$ into a one
dimensional array called Input()
e/ Read the 5th column and 3rd row of the currently active spreadsheet
into the array element A(2,4)

f/ Read the value in the cell B7 from worksheet, sheet6 into the
variable, Step




All times are GMT +1. The time now is 01:27 PM.

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