Third dimension problem

Hello, well recently I have been working with my grandfather whom was an engineer. We want to try to use the excel vba as a way to plot 2-5 dimension we have got the 2 dimensions working by exporting the data to a spreadsheet with the activeCell(x, y) = a command. Is there any certain command line that would allow us to get three independent variables to show up on the spreadsheet? Btw we are using this as a scientific approach not business wise. Help would be very fortunate right now, thanks!